File vdr-plugin-skinenigmang.spec of Package vdr-plugin-skinenigmang
#
# spec file for package vdr-plugin-skinenigmang
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, 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/
#
%define pluginname skinenigmang
%define pluginversion 0.1.2
%define git_date 20180501
Name: vdr-plugin-%{pluginname}
Version: %{pluginversion}~git%{git_date}
Release: 0
Summary: "EnigmaNG" is a standalone skin for VDR based on the "Enigma" text2skin addon
License: GPL-2.0-or-later
Group: Hardware/TV
Url: http://andreas.vdr-developer.org/enigmang/index.html
Source0: vdr-%{pluginname}-%{pluginversion}.tar.bz2
Source1: skinenigmang-logos-xpm-hi-20070702.tar.bz2
Patch1001: 0001-Fixed-disappearing-symbols-in-channel-info-osd-if-si.patch
Patch1002: 0002-Fixed-typo-Closes-956.patch
Patch1003: 0003-Use-preincrement-to-advance-iterators.-Patch-by-Vill.patch
Patch1004: 0004-Remove-obsolete-fontdir-option-dropped-in-0.1.0-.-Pa.patch
Patch1005: 0005-Add-support-for-building-with-GraphicsMagick-instead.patch
Patch1006: 0006-Added-setup-options-to-set-width-of-signal-informati.patch
Patch1007: 0007-Updated.patch
Patch1008: 0008-Updated-Submitted-by-Ville-Skytt.patch
Patch1009: 0009-Fixed-Main-menu-info-area-with-VDR-1.7.28.patch
Patch1010: 0010-Added-Display-free-video-disk-space-in-main-and-reco.patch
Patch1011: 0011-Clarify-license-sync-with-http-www.gnu.org-licenses-.patch
Patch1012: 0012-Pass-package-name-and-package-version-to-xgettext-us.patch
Patch1013: 0013-Spelling-fixes.patch
Patch1014: 0014-Added-support-for-color-button-reordering-in-VDR-1.7.patch
Patch1015: 0015-Display-Category-Genre-Contents-in-channel-OSD-Submi.patch
Patch1016: 0016-Changed-how-a-event-s-category-is-displayed-now-appe.patch
Patch1017: 0017-Compile-under-VDR-2.3.1.patch
Patch1018: 0018-Updated.patch
Patch1019: 0019-Fixed-GCC-error-of-undefined-min.patch
BuildRequires: freetype2-devel
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}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
"EnigmaNG" is a standalone skin for VDR based on the "Enigma" text2skin addon.
%prep
%setup -q -T -D -b 0 -a 1 -n %{pluginname}-%{pluginversion}
%autopatch -p 1
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
%{vdr_make}
%install
install -d %{buildroot}%{_libdir}/vdr
install libvdr-skinenigmang.so.%{vdr_apiversion} %{buildroot}%{_libdir}/vdr/
install -d %{buildroot}%{vdr_localedir}
cp -a locale/* %{buildroot}%{vdr_localedir}/
%{vdr_find_locale}
install -d %{buildroot}%{vdr_sysconfdir}/themes
install -d %{buildroot}%{vdr_sysconfdir}/plugins/skinenigmang
install -d %{buildroot}%{_datadir}/vdr/plugins/skinenigmang/logos
cp -df themes/*.theme %{buildroot}%{vdr_sysconfdir}/themes
cp -R symbols %{buildroot}%{_datadir}/vdr/plugins/skinenigmang
cp -R skinenigmang/flags %{buildroot}%{_datadir}/vdr/plugins/skinenigmang
cp -R skinenigmang/icons %{buildroot}%{_datadir}/vdr/plugins/skinenigmang
ln -s %{_datadir}/vdr/plugins/skinenigmang/flags %{buildroot}%{vdr_sysconfdir}/plugins/skinenigmang
ln -s %{_datadir}/vdr/plugins/skinenigmang/symbols %{buildroot}%{vdr_sysconfdir}/plugins/skinenigmang
ln -s %{_datadir}/vdr/plugins/skinenigmang/icons %{buildroot}%{vdr_sysconfdir}/plugins/skinenigmang
ln -s %{_datadir}/vdr/plugins/skinenigmang/logos %{buildroot}%{vdr_sysconfdir}/plugins/skinenigmang
%files -f vdrlocale.files
%defattr(-,root,root)
%{_libdir}/vdr/*
%attr(-,vdr,root) %config %{vdr_sysconfdir}/themes/*
%{_datadir}/vdr/plugins/skinenigmang/*
%{vdr_dirs}
%attr(-,vdr,root) %dir %{vdr_sysconfdir}
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/themes
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/plugins/skinenigmang
%attr(-,vdr,root) %config(noreplace) %{vdr_sysconfdir}/plugins/skinenigmang/*
%dir %{_datadir}/vdr/plugins
%dir %{_datadir}/vdr/plugins/skinenigmang
%dir %{_datadir}/vdr/plugins/skinenigmang/*
%dir %{_datadir}/vdr/plugins/skinenigmang/icons/*
%dir %{_datadir}/vdr/plugins/skinenigmang/symbols/*
%doc HISTORY README
%license COPYING
%changelog