Blame vdr-epgfixer.spec

1de6a7
%global pname   epgfixer
1de6a7
%global __provides_exclude_from ^%{vdr_plugindir}/
1de6a7
1de6a7
Name:           vdr-%{pname}
1de6a7
Version:        0.3.1
1de6a7
Release:        1%{?dist}
1de6a7
Summary:        VDR plugin for doing extra fixing of EPG data
1de6a7
1de6a7
License:        GPLv2+
1de6a7
URL:            https://projects.vdr-developer.org/projects/plg-epgfixer
1de6a7
Source0:        https://projects.vdr-developer.org/attachments/download/1138/%{name}-%{version}.tgz
1de6a7
Source1:        %{name}.conf
1de6a7
# https://projects.vdr-developer.org/git/vdr-plugin-epgfixer.git/commit/?id=2b099cc01701e784fa5b1c53f38fd592b0b3ae42
1de6a7
Patch0:         0001-Fix-replacing-at-the-end-of-string-when-using-s-.-Fi.patch
1de6a7
# https://projects.vdr-developer.org/git/vdr-plugin-epgfixer.git/commit/?id=16d0db40d37706c79c7e911aebcdd344200a4725
1de6a7
Patch1:         0001-Fix-LoadConfigFile-return-value-on-success.patch
1de6a7
1de6a7
BuildRequires:  vdr-devel >= 1.7.26
1de6a7
BuildRequires:  pcre-devel
1de6a7
Requires:       vdr(abi)%{?_isa} = %{vdr_apiversion}
1de6a7
1de6a7
%description
1de6a7
Epgfixer is a VDR plugin for doing extra fixing of EPG data. Features
1de6a7
include modifying EPG data using regular expressions, character set
1de6a7
conversions, blacklists, cloning EPG data, removing HTML tags, and
1de6a7
editing all settings through setup menu.
1de6a7
1de6a7
1de6a7
%prep
1de6a7
%setup -q -n %{pname}-%{version}
1de6a7
%patch0 -p1
1de6a7
%patch1 -p1
1de6a7
1de6a7
1de6a7
%build
1de6a7
make %{?_smp_mflags} LIBDIR=. LOCALEDIR=./locale VDRDIR=%{_libdir}/vdr
1de6a7
1de6a7
1de6a7
%install
1de6a7
1de6a7
install -dm 755 $RPM_BUILD_ROOT%{vdr_plugindir}
1de6a7
install -pm 755 libvdr-%{pname}.so.%{vdr_apiversion} \
1de6a7
    $RPM_BUILD_ROOT%{vdr_plugindir}
1de6a7
install -dm 755 $RPM_BUILD_ROOT%{vdr_configdir}/plugins/%{pname}
1de6a7
install -pm 644 epgfixer/{blacklist,charset,epgclone,regexp}.conf \
1de6a7
    $RPM_BUILD_ROOT%{vdr_configdir}/plugins/%{pname}
1de6a7
1de6a7
install -Dpm 644 %{SOURCE1} \
1de6a7
    $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
1de6a7
1de6a7
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/locale
1de6a7
cp -pR locale/* $RPM_BUILD_ROOT%{_datadir}/locale
1de6a7
%find_lang %{name}
1de6a7
1de6a7
1de6a7
%files -f %{name}.lang
1de6a7
%license COPYING
1de6a7
%doc HISTORY README
1de6a7
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf
1de6a7
%{vdr_plugindir}/libvdr-%{pname}*.so.%{vdr_apiversion}
1de6a7
%defattr(-,%{vdr_user},root,-)
1de6a7
%config(noreplace) %{vdr_configdir}/plugins/%{pname}/
1de6a7
%defattr(-,root,root,-)
1de6a7
1de6a7
1de6a7
%changelog
1de6a7
* Fri Jan  1 2016 Ville Skyttä <ville.skytta@iki.fi> - 0.3.1-1
1de6a7
- First Fedora build