%global plugin_name dvbapi Name: vdr-dvbapi Version: 2.2.6 Release: 1%{?dist} Summary: VDR dvbapi License: GPLv2+ URL: https://github.com/manio/vdr-plugin-dvbapi Source: https://github.com/manio/vdr-plugin-dvbapi/archive/refs/tags/%{version}.tar.gz Requires: vdr(abi)%{?_isa} = %{vdr_apiversion} Conflicts: vdr-vnsiserver3 BuildRequires: make BuildRequires: gcc-c++ BuildRequires: vdr-devel >= 1.5.9 %description VDR dvbapi. %prep %setup -q -n vdr-plugin-dvbapi-%{version} %build make %{?_smp_mflags} CFLAGS="-fPIC %optflags" CXXFLAGS="-fPIC %{optflags}" %install %make_install install -dm 755 %{buildroot}%{vdr_configdir}/plugins/%{plugin_name} %find_lang %{name} %files -f %{name}.lang %doc COPYING %doc HISTORY %doc README %{vdr_plugindir}/libvdr-%{plugin_name}.so.%{vdr_apiversion} %changelog