File vdr-plugin-tvscraper.spec of Package vdr-plugin-tvscraper
#
# spec file for package vdr-plugin-tvscraper
#
# 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 tvscraper
%define pluginversion 0.2.0
Name: vdr-plugin-%{pluginname}
Version: %{pluginversion}
Release: 0
Summary: TVScraper collects metadata for all available EPG events
License: GPL-2.0-only
Group: Hardware/TV
Url: http://projects.vdr-developer.org/projects/plg-tvscraper
Source0: vdr-%{pluginname}-%{pluginversion}.tgz
Patch1: 0001-Add-compatibility-for-VDR-API-2.3.1.patch
BuildRequires: gcc-c++
BuildRequires: libcurl-devel
BuildRequires: libjansson-devel
BuildRequires: libxml2-devel
BuildRequires: pkg-config
BuildRequires: sqlite3-devel
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
TVScraper runs in the background and collects metadata (posters,
banners, fanart, actor thumbs and roles, descriptions) for all
available EPG events on selectable channels and for recordings.
Additionally the plugin provides the collected metadata via the VDR
service interface to other plugins which deal with EPG information.
TVScraper uses the thetvdb.com API for collecting series metadata and
themoviedb.org API for movies. Check the websites of both services for
the terms of use.
%prep
%autosetup -n %{pluginname}-%{pluginversion} -p 1
%build
# use msgmerge wrapper
export PATH=%{_datadir}/vdr:$PATH
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%{vdr_find_locale}
%files -f vdrlocale.files
%defattr(-,root,root)
%{_libdir}/vdr/*
%{vdr_dirs}
%attr(-,vdr,root) %dir %{vdr_sysconfdir}/plugins/tvscraper
%attr(-,vdr,root) %config %{vdr_sysconfdir}/plugins/tvscraper/override.conf
%doc HISTORY README
%license COPYING
%changelog