File vdr-plugin-epgsearch.spec of Package vdr-plugin-epgsearch
#
# spec file for package vdr-plugin-epgsearch
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define pluginversion 1.0.1.beta5
%define pluginname epgsearch
%define pluginurl http://winni.vdr-developer.org/epgsearch/downloads/beta/vdr-epgsearch-%{pluginversion}.tgz
#
%define plugindir %pluginname-%pluginversion
%define plugintarball vdr-%pluginname-%pluginversion.tgz
#
%define pkgversion %pluginversion
Name: vdr-plugin-epgsearch
Version: %pkgversion
Release: 0
Source: %plugintarball
Patch0: %pluginname-1.0.1.beta5-fix-bashisms.patch
Patch1: epgsearch-vdr-2.2.patch
Patch2: epgsearch-gcc6.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: VDR %pluginname plugin
License: GPL-2.0+
Group: Hardware/TV
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: vdr-devel
PreReq: vdr(abi) = %{vdr_apiversion}
Url: %pluginurl
# only needed for packages that used the old naming scheme
Obsoletes: vdr-%pluginname < %pkgversion
# used to be in vdr-plugins
Provides: vdr-plugins:/usr/share/doc/packages/vdr/plugins/%{pluginname}
Conflicts: vdr-plugins <= 0.5
%description
%vdrname %pluginname plugin
%prep
%setup -q -n %plugindir
%patch0 -p1
%patch1 -p1
%patch2 -p1
chmod 644 scripts/*
rm -f scripts/*~
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%find_lang vdr-%pluginname
%clean
rm -rf "${RPM_BUILD_ROOT}"
%files -f vdr-%pluginname.lang
%defattr(-,root,root)
%doc COPYING HISTORY HISTORY.DE MANUAL README README.DE README.Translators
%doc conf scripts
%{vdr_libdir}/*
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/plugins
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/plugins/epgsearch
%attr(-,vdr,root) %config(noreplace) %{vdr_sysconfdir}/plugins/epgsearch/*
%{_bindir}/createcats
%doc /usr/share/man/de/man*/*
%doc /usr/share/man/man*/*
%changelog