1 %include /usr/lib/rpm/macros.perl
2 Summary: EpgDownloader is a written in perl, plugin based programme guide converter
7 Group: Applications/Multimedia
8 Source0: http://dl.sourceforge.net/epgdownloader/%{name}-%{version}.tgz
9 # Source0-md5: 8aeff68a55fb659422fc2cdf53fef144
10 URL: http://epgdownloader.sourceforge.net
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 %define _noautoreq 'perl(include::.*)' 'perl(plugins::.*)' 'perl(paths)'
16 %define _sysconfdir /etc/%{name}
17 %define _pkglibdir /usr/share/%{name}
20 EpgDownloader is a written in perl, plugin based programme guide
21 converter. With derivered plugins you can for example download tv
22 schedule from website and export it to xmltv or VDR's epg.data format
30 rm -rf $RPM_BUILD_ROOT
31 # create directories if necessary
32 install -d $RPM_BUILD_ROOT{%_pkglibdir/{include,plugins},%_sysconfdir}
34 install channels.xml $RPM_BUILD_ROOT%_sysconfdir
35 install config.xml $RPM_BUILD_ROOT%_sysconfdir
37 ln -s %_sysconfdir/config.xml $RPM_BUILD_ROOT%_pkglibdir/
38 ln -s %_sysconfdir/channels.xml $RPM_BUILD_ROOT%_pkglibdir/
40 install epgdownloader.pl $RPM_BUILD_ROOT%_pkglibdir
41 install run.sh $RPM_BUILD_ROOT%_pkglibdir
42 install paths.pm $RPM_BUILD_ROOT%_pkglibdir
44 cp -a plugins $RPM_BUILD_ROOT%_pkglibdir
45 cp -a include $RPM_BUILD_ROOT%_pkglibdir
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %_pkglibdir/channels.xml
53 %_pkglibdir/config.xml
54 %config(noreplace) %verify(not md5 mtime size) %_sysconfdir/channels.xml
55 %config(noreplace) %verify(not md5 mtime size) %_sysconfdir/config.xml
58 %dir %_pkglibdir/include
59 %_pkglibdir/include/*.pm
61 %attr(755,root,root) %_pkglibdir/epgdownloader.pl
62 %attr(755,root,root) %_pkglibdir/run.sh
65 %doc ChangeLog NEWS README TODO