Blob Blame History Raw
%global pname   epgfixer
%global __provides_exclude_from ^%{vdr_plugindir}/

Name:           vdr-%{pname}
Version:        0.3.1
Release:        1%{?dist}
Summary:        VDR plugin for doing extra fixing of EPG data

License:        GPLv2+
Source1:        %{name}.conf
Patch0:         0001-Fix-replacing-at-the-end-of-string-when-using-s-.-Fi.patch
Patch1:         0001-Fix-LoadConfigFile-return-value-on-success.patch

BuildRequires:  vdr-devel >= 1.7.26
BuildRequires:  pcre-devel
Requires:       vdr(abi)%{?_isa} = %{vdr_apiversion}

Epgfixer is a VDR plugin for doing extra fixing of EPG data. Features
include modifying EPG data using regular expressions, character set
conversions, blacklists, cloning EPG data, removing HTML tags, and
editing all settings through setup menu.

%setup -q -n %{pname}-%{version}
%patch0 -p1
%patch1 -p1

make %{?_smp_mflags} LIBDIR=. LOCALEDIR=./locale VDRDIR=%{_libdir}/vdr


install -dm 755 $RPM_BUILD_ROOT%{vdr_plugindir}
install -pm 755 libvdr-%{pname}.so.%{vdr_apiversion} \
install -dm 755 $RPM_BUILD_ROOT%{vdr_configdir}/plugins/%{pname}
install -pm 644 epgfixer/{blacklist,charset,epgclone,regexp}.conf \

install -Dpm 644 %{SOURCE1} \

install -dm 755 $RPM_BUILD_ROOT%{_datadir}/locale
cp -pR locale/* $RPM_BUILD_ROOT%{_datadir}/locale
%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
%config(noreplace) %{vdr_configdir}/plugins/%{pname}/

* Fri Jan  1 2016 Ville Skyttä <> - 0.3.1-1
- First Fedora build