File vdr-plugin-satip.spec of Package vdr-plugin-satip
#
# spec file for package vdr-plugin-satip
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014-2017 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/
#
## ugly, but should work.
## note that SLES12 has neither pugixml nor tinyxml, so it does not need to be considered here
%if (0%{?suse_version} > 1310 && 0%{?suse_version} != 1320)
%define have_pugixml 1
%else
%define have_pugixml 0
%endif
Name: vdr-plugin-satip
Version: 2.2.4
Release: 0
Summary: SAT>IP Input Plugin for the Video Disc Recorder VDR
License: GPL-2.0
Group: Productivity/Multimedia/Other
Url: http://www.saunalahti.fi/~rahrenbe/vdr/satip/
Source0: http://www.saunalahti.fi/~rahrenbe/vdr/satip/files/vdr-satip-%{version}.tgz
Patch0: satip-2.2.4-add-cctype-include.diff
BuildRequires: gcc-c++
BuildRequires: pkg-config
%if %have_pugixml
BuildRequires: pugixml-devel
%else
BuildRequires: tinyxml-devel
%endif
BuildRequires: vdr-devel >= 2.0.0
BuildRequires: pkgconfig(libcurl) >= 7.36.0
Requires(pre): %{vdr_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the SAT>IP input plugin for the video disc recorder VDR.
This plugin integrates SAT>IP network devices seamlessly into VDR.
You can use any SAT>IP channel like any other normal DVB channel for
live viewing, recording, etc. The plugin also features full section
filtering capabilities which allow for example EIT information to be
extracted from the incoming stream.
%prep
%setup -q -n satip-%{version}
%patch0 -p1
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
%if ! %have_pugixml
XMLTOOL="SATIP_USE_TINYXML=1"
%endif
make %{?_smp_mflags} $XMLTOOL
%install
make install DESTDIR=%{buildroot}
# locale files
%vdr_find_locale
%files -f vdrlocale.files
%defattr(-,root,root)
%doc COPYING HISTORY README
%{vdr_libdir}/libvdr*
%changelog