File vdr-plugin-tvguide.spec of Package vdr-plugin-tvguide
#
# spec file for package vdr-plugin-tvguide
#
# Copyright (c) 2020 SUSE LLC
#
# 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 tvguide
Name: vdr-plugin-%{pluginname}
Version: 1.3.9
Release: 0
Summary: Customizable 2D EPG viewer plugin
License: GPL-2.0-or-later
URL: https://gitlab.com/kamel5/tvguide
# download with "osc service disabledrun"
Source0: https://gitlab.com/kamel5/tvguide/-/archive/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
BuildRequires: libxml2-devel
BuildRequires: pkg-config
BuildRequires: vdr-devel
BuildRequires: pkgconfig(GraphicsMagick++)
# Requires(pre) is not enough, as it does not work on updates
Requires: vdr(abi) = %{vdr_apiversion}
%description
"TvGuide" is a highly customizable 2D EPG viewer plugin
%prep
# m(
%autosetup -p 1 -n %{pluginname}-v%{version}-9cc17d87bd3d2f18825122d3ffb79425cc17817f
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?_smp_mflags} IMAGELIB=graphicsmagick
%install
make DESTDIR=%{buildroot} install
%{vdr_find_locale}
%fdupes %{buildroot}
%files -f vdrlocale.files
%defattr(-,root,root)
%{_libdir}/vdr/*
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/themes
%attr(-,vdr,root) %config %{vdr_sysconfdir}/themes/*
%{vdr_dirs}
%dir %{_datadir}/vdr/plugins
%dir %{_datadir}/vdr/plugins/tvguide
%dir %{_datadir}/vdr/plugins/tvguide/icons
%{_datadir}/vdr/plugins/tvguide/icons/*
%license COPYING
%doc HISTORY README
%changelog