File vdr-plugin-radio.spec of Package vdr-plugin-radio
#
# spec file for package vdr-plugin-radio
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 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 https://bugs.opensuse.org/
#
Name: vdr-plugin-radio
Version: 1.1.0
Release: 0
Summary: RDS und Hintergrundbild für Radiosender
License: GPL-2.0-only
Url: http://www.vdr-wiki.de/wiki/index.php/Radio-plugin
Source0: https://projects.vdr-developer.org/git/%{name}.git/snapshot/%{name}-%{version}.tar.bz2
Patch0: vdr-plugin-radio-1.1.0-vdr27.diff
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: vdr-devel
# Requires(pre) is not enough, as it does not work on updates
Requires: vdr(abi) = %{vdr_apiversion}
%description
This Plugin display an background image while the vdr is switcht to radio channels and shows RDA-data if available.
%prep
%autosetup -p1
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%{vdr_find_locale}
install -d %{buildroot}%{_sysconfdir}/vdr/plugins/radio
cp -R config/mpegstill/* %{buildroot}%{_sysconfdir}/vdr/plugins/radio
cp -R config/scripts/* %{buildroot}%{_sysconfdir}/vdr/plugins/radio
%files -f vdrlocale.files
%defattr(-,root,root)
%{_libdir}/vdr/*
%config %attr(-,vdr,root) %{_sysconfdir}/vdr/plugins/radio/*
%{vdr_dirs}
%attr(-,vdr,root) %dir %{_sysconfdir}/vdr/plugins/radio
%doc HISTORY README
%license COPYING
%changelog