%define plugin vdrrip %define name vdr-plugin-%plugin %define version 0.3.0 %define rel 7 %bcond_with plf %if %with plf %define distsuffix plf %endif Summary: VDR plugin: A MPlayer using movie encoder Name: %name Version: %version Release: %mkrel %rel Group: Video License: GPL # an interesting use of a domain... URL: http://www.a-land.de/ Source: http://www.a-land.de/vdr-%plugin-%version.tgz # e-tobi script Source1: vdrripsplit.sh # initscript Source2: vdrrip.init Source3: vdrrip.sysconfig Patch0: vdrrip-0.3.0-paths.patch # (anssi) This seems to be the easiest way to do detaching... Patch8: vdrrip-0.3.0-queue-bg.patch # (anssi) Link against dvdread instead of dvdnav, as dvdnav is not needed # and does not contain the needed headers as of 11/2007 Patch9: vdrrip-dvdnav2dvdread.patch # #35140 Patch10: vdrrip-dvdread-inttypes.patch Patch12: vdrrip-0.3.0-i18n-1.6.patch # e-tobi patches Patch1: 02_maketempdir.dpatch Patch2: 03_greppid2.dpatch Patch3: 05_fix-dvdparameter.dpatch Patch4: 06_fix-ogm-ac3-vdrsync-dev.dpatch Patch5: 07_preserve-queue-owner.dpatch Patch6: 11_fix-identify-aspect.dpatch Patch7: 91_vdrrip+dvd-0.3.0-1.3.7.dpatch Patch11: 95_fix_crop.dpatch BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: vdr-devel >= 1.6.0 %if %with plf BuildRequires: libdvdread-devel %endif Requires: vdr-abi = %vdr_abi # The plugin really requires these itself as well Requires: mplayer Requires: mencoder Suggests: vdrrip %description Vdrrip is a plugin to encode the vdr recordings into several formats. You likely want to also install the vdrrip package which contains the queue handler script. %if %with plf This package is in PLF because this build contains support for DVD ripping which may be prohibited by local laws. %endif %package -n %plugin Summary: Queue handler of vdrrip Group: Video Requires(preun): rpm-helper Requires(post): rpm-helper Requires: mplayer Requires: mencoder Suggests: ogmtools Suggests: vdrsync Suggests: mkvtoolnix Suggests: ffmpeg %description -n %plugin The queue handler for VDR vdrrip plugin. It does the actual encoding. For encoding ogm files you also need the packages ogmtools and vdrsync. For encoding matroska files you need the packages mkvtoolnix and vdrsync. For encoding ogm or matroska files with mp3 or ogg vorbis audio you also need the package ffmpeg. %prep %setup -q -n %plugin-%version %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %vdr_plugin_prep chmod -x TODO COPYING README FAQ HISTORY perl -pi -e 's,scriptdir=.*$,scriptdir="%{_sysconfdir}/%{plugin}",' scripts/queuehandler.sh grep scriptdir= scripts/queuehandler.sh %vdr_plugin_params_begin %plugin # You likely want to also install the vdrrip package which # contains the queue handler script which does the actual encoding. # # use alternative mplayer instead of the default one var=MPLAYER param="-p MPLAYER" # use alternative mencoder instead of the default one var=MENCODER param="-e MENCODER" %if %with plf # use alternative DVD device instead of /dev/dvd var=DVD_DEVICE param="-d DVD_DEVICE" %endif %vdr_plugin_params_end %build # see #35140 VDR_PLUGIN_FLAGS="%vdr_plugin_flags -D__STDC_LIMIT_MACROS" %vdr_plugin_build \ %if %with plf VDRRIP_DVD=1 %endif %install rm -rf %{buildroot} %vdr_plugin_install install -d -m755 %{buildroot}%{_bindir} install -m755 scripts/queuehandler.sh %{buildroot}%{_bindir} install -m755 %SOURCE1 %{buildroot}%{_bindir} install -d -m755 %{buildroot}%{_sysconfdir}/%{plugin} install -m644 scripts/queuehandler.sh.conf %{buildroot}%{_sysconfdir}/%{plugin} install -d -m755 %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/sysconfig install -m755 %SOURCE2 %{buildroot}%{_initrddir}/%{plugin} install -m644 %SOURCE3 %{buildroot}%{_sysconfdir}/sysconfig/%{plugin} %clean rm -rf %{buildroot} %post %vdr_plugin_post %plugin %post -n %plugin %_post_service %plugin %preun -n %plugin %_preun_service %plugin %postun %vdr_plugin_postun %plugin %files -f %plugin.vdr %defattr(-,root,root) %doc README HISTORY FAQ TODO COPYING scripts/sleephalt.sh scripts/vdrshutdown.sh %files -n %plugin %{_bindir}/vdrripsplit.sh %{_bindir}/queuehandler.sh %dir %{_sysconfdir}/%{plugin} %config(noreplace) %{_sysconfdir}/%{plugin}/queuehandler.sh.conf %{_initrddir}/%{plugin} %config(noreplace) %{_sysconfdir}/sysconfig/%{plugin} %changelog * Sat Apr 26 2008 Anssi Hannula <anssi@mandriva.org> 0.3.0-6mdv2009.0 + Revision: 197739 - add vdr_plugin_prep - bump buildrequires on vdr-devel - adapt to gettext i18n of VDR 1.6 (semi-automatic patch) - fix cropping (P11 from e-tobi) - plugin package suggests vdrrip - vdrrip package suggests encoding tools for all codecs - drop never-installed urpmi readme file * Fri Jan 04 2008 Anssi Hannula <anssi@mandriva.org> 0.3.0-5mdv2008.1 + Revision: 145252 - rebuild for new vdr - adapt for changed vdr optflags scheme + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed Nov 14 2007 Anssi Hannula <anssi@mandriva.org> 0.3.0-4mdv2008.1 + Revision: 108696 - include inttypes.h before dvdread (#35140) * Tue Nov 06 2007 Anssi Hannula <anssi@mandriva.org> 0.3.0-3mdv2008.1 + Revision: 106428 - link against dvdread instead of dvdnav as that is what is actually used * Mon Oct 29 2007 Anssi Hannula <anssi@mandriva.org> 0.3.0-2mdv2008.1 + Revision: 103235 - rebuild for new vdr * Fri Jul 20 2007 Anssi Hannula <anssi@mandriva.org> 0.3.0-1mdv2008.0 + Revision: 53776 - initial Mandriva release