%global commit 7231362092882b007ca3b3fa8f7dd941f08bbeb8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20140511 Name: vdr-scraper2vdr Version: 0.1.2 Release: 3.%{gitdate}git%{shortcommit}%{?dist} Summary: A client plugin which provides scraped metadata from EPGD to other plugins Group: Applications/Multimedia License: GPL+ URL: http://projects.vdr-developer.org/projects/plg-scraper2vdr Source0: http://projects.vdr-developer.org/git/vdr-plugin-scraper2vdr.git/snapshot/vdr-plugin-scraper2vdr-%{commit}.tar.bz2 Source1: %{name}.conf # upstream patch for parallel build Patch0: http://projects.vdr-developer.org/attachments/1702/scraper2vdr-smpbuildfix.patch BuildRequires: libuuid-devel BuildRequires: ImageMagick-c++-devel BuildRequires: mariadb-devel BuildRequires: libcurl-devel BuildRequires: imlib2-devel BuildRequires: vdr-devel >= 1.7.34 Requires: vdr(abi)%{?_isa} = %{vdr_apiversion} %description Scraper2vdr acts as client and provides scraped metadata for tvshows and movies from epgd to other plugins via its service interface. The plugin cares about caching the images locally and also cleans up the images if not longer needed. epgd itself 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 %setup -qn vdr-plugin-scraper2vdr-%{commit} %patch0 -p0 iconv -f iso-8859-1 -t utf-8 README > README.utf8 ; mv README.utf8 README export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" %build make %{?_smp_mflags} all %install make install DESTDIR=%{buildroot} # fix the perm chmod 0755 %{buildroot}/%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion} install -Dpm 644 %{SOURCE1} \ %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/scraper2vdr.conf %find_lang %{name} %files -f %{name}.lang %doc COPYING HISTORY* README* %{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion} %config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/scraper2vdr.conf %changelog * Sun May 11 2014 Martin Gansser - 0.1.2-3.20140511git7231362 - rebuild for new git release * Sun May 11 2014 Martin Gansser - 0.1.2-2.20140510gitea862b3 - added patch to build parallel again * Sat May 10 2014 Martin Gansser - 0.1.2-1.20140510gitea862b3 - rebuild for new git release - added Fedora %%optflags for CFLAGS and CXXFLAGS - Add BR libcurl-devel - Add BR imlib2-devel * Sat May 03 2014 Martin Gansser - 0.1.1-6.20140428git30008b3 - fixed description - replaced RPM_BUILD_ROOT macro through %%{buildroot} * Fri May 02 2014 Martin Gansser - 0.1.1-5.20140428git30008b3 - Fix patch path - Fix bogus date in %%changelog - Fix comments * Thu May 01 2014 Martin Gansser - 0.1.1-4.20140428git30008b3 - added permission fix to solve unstripped-binary-or-object warning * Mon Apr 28 2014 Martin Gansser - 0.1.1-3.20140428git30008b3 - rebuild for new git release * Mon Apr 28 2014 Martin Gansser - 0.1.0-2.20140427gitc538d35 - added conf file * Sun Apr 27 2014 Martin Gansser - 0.1.0-1.20140427gitc538d35 - rebuild for initial release