%global debug_package %{nil} %global ver 2.24.05 %global rev 11814 Name: oscam Version: %{ver}.%{rev} Release: 1%{?dist} Summary: Open Source Conditional Access Module software Group: Applications/Multimedia License: GPLv3 URL: https://github.com/oscam-emu/oscam-patched Source0: %{name}-patched-%{rev}.tar.gz Source1: %{name}.service Patch0: oscam-makefile-fix.patch BuildRequires: gcc-c++ BuildRequires: make BuildRequires: systemd %description OSCam is an Open Source Conditional Access Module software. %prep %setup -q -n %{name}-patched-%{rev} %patch0 -p1 %build make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %install install -d -m 755 $RPM_BUILD_ROOT%{_bindir} install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} install -d -m 755 $RPM_BUILD_ROOT%{_unitdir} install -p -m 755 Distribution/oscam $RPM_BUILD_ROOT%{_bindir} install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %doc COPYING README.build README.config README.dvbapi_protocol %{_bindir}/oscam %{_unitdir}/%{name}.service %dir %{_sysconfdir}/%{name} %changelog