Name: freevo Version: 1.7.7 Release: alt0.1.M40.2 Summary: Freevo License: GPL Group: Graphics Url: http://freevo.sourceforge.net/ Packager: Vitaly Lipatov Source: http://dl.sf.net/%name/%name-%version.tar.bz2 Source1: redhat-boot_config Patch0: freevo-1.7.7-alt-locale.patch Patch1: freevo-1.7.5-alt-vpodcast.patch BuildArch: noarch ########################################################################## %define _contribdir %_datadir/freevo/contrib %setup_python_module %name # manually removed: pybliographic # Automatically added by buildreq on Sat May 26 2007 (-bi) BuildRequires: kbd python-module-BeautifulSoup python-module-elementtree python-module-imaging python-module-kaa-imlib2 python-module-kaa-metadata python-module-Numeric python-module-pygame python-module-PyXML python-module-setuptools python-module-twisted-web rpm-build-mono BuildRequires: python-module-imaging-devel %description Freevo is a Linux application that turns a PC with a TV capture card and/or TV-out into a standalone multimedia jukebox/VCR. It builds on other applications such as xine, mplayer, tvtime and mencoder to play and record video and audio. Available rpmbuild rebuild options : --without: us_defaults use_sysapps compile_obj %package boot Summary: Files to enable a standalone Freevo system (started from initscript) Group: Graphics Requires: %name %description boot Freevo is a Linux application that turns a PC with a TV capture card and/or TV-out into a standalone multimedia jukebox/VCR. It builds on other applications such as mplayer and mencoder to play and record video and audio. Note: This installs the initscripts necessary for a standalone Freevo system. %package maxi Summary: Maxi package for Freevo MediaCenter Group: Graphics Requires: %name Requires: %name-boot Requires: vlc-maxi xine-ui mplayer mplayer-i18n-ru mencoder tvtime lsdvd libjpeg-utils lame flac cdparanoia vorbis-tools util-linux fonts-ttf-dejavu %add_python_req_skip audio image video misc animation childapp config directory event gui fxditem menu item osd playlist plugin plugins pygphoto pyosd rc skin tv util view_favorites commdetectcore encodingcore rssperiodic helpers www json %py_requires mm elementtree #Requires: python-module-kaa-imlib2 python-module-kaa-metadata %description maxi This is a package that contain dependences to required packages. And it replace standart Vera fonts to Unicode DejaVu fonts. %prep %setup -q %patch0 -p1 %patch1 -p1 %build find . -name CVS | xargs rm -rf find . -name ".cvsignore" |xargs rm -f find . -name "*.pyc" |xargs rm -f find . -name "*.pyo" |xargs rm -f find . -name "*.py" |xargs chmod 644 env CFLAGS="$RPM_OPT_FLAGS" python setup.py build python setup.py build i18n %install python setup.py install \ --root=%buildroot mkdir -p %buildroot%_sysconfdir/freevo # The following is needed to let RPM know that the files should be backed up touch %buildroot%_sysconfdir/freevo/freevo.conf %__install -m 644 local_conf.py.example %buildroot%_sysconfdir/freevo/local_conf.py # boot scripts mkdir -p %buildroot%_sysconfdir/rc.d/init.d mkdir -p %buildroot%_bindir install -m 755 boot/freevo %buildroot%_sysconfdir/rc.d/init.d #install -m 755 boot/freevo_dep %buildroot%_sysconfdir/rc.d/init.d install -m 755 boot/recordserver %buildroot%_initrddir/freevo_recordserver install -m 755 boot/webserver %buildroot%_initrddir/freevo_webserver install -m 755 boot/recordserver_init %buildroot%_bindir/freevo_recordserver_init install -m 755 boot/webserver_init %buildroot%_bindir/freevo_webserver_init install -m 644 -D %SOURCE1 %buildroot%_sysconfdir/freevo/boot_config mkdir -p %buildroot%_logdir/freevo mkdir -p %buildroot%_cachedir/freevo mkdir -p %buildroot%_cachedir/freevo/{thumbnails,audio} mkdir -p %buildroot%_cachedir/xmltv/logos chmod 777 %buildroot%_cachedir/{freevo,freevo/thumbnails,freevo/audio,xmltv,xmltv/logos} chmod 777 %buildroot%_logdir/freevo mkdir -p %buildroot%_contribdir/lirc cp -av contrib/lirc %buildroot%_contribdir %find_lang %name rm -f %buildroot%_datadir/locale/*/LC_MESSAGES/freevo.po %files -f %name.lang %_docdir/%name-%version %_bindir/* %dir %_sysconfdir/freevo %config %_sysconfdir/freevo/freevo.conf %config %_sysconfdir/freevo/local_conf.py %attr(775,root,audio) %_logdir/freevo %attr(775,root,audio) %dir %_cachedir/freevo %attr(775,root,audio) %dir %_cachedir/freevo/audio %attr(775,root,audio) %dir %_cachedir/freevo/thumbnails %attr(775,root,audio) %dir %_cachedir/xmltv %attr(775,root,audio) %dir %_cachedir/xmltv/logos %_datadir/%name %python_sitelibdir/%modulename %files boot %_initrddir/* %_bindir/freevo_* %config %_sysconfdir/freevo/boot_config %files maxi %post boot # Add the service, but don't automatically invoke it # user has to enable it via ntsysv if [ -x /sbin/chkconfig ]; then chkconfig --add freevo chkconfig --level 234 freevo off # chkconfig --add freevo_dep chkconfig --add freevo_recordserver chkconfig --level 234 freevo_recordserver off chkconfig --add freevo_webserver chkconfig --level 234 freevo_webserver off fi #depmod -a %preun boot if [ "$1" = 0 ] ; then if [ -x /sbin/chkconfig ]; then chkconfig --del freevo # chkconfig --del freevo_dep chkconfig --del freevo_recordserver chkconfig --del freevo_webserver fi fi %post maxi # This is a hack :( dejavu=`find /usr/share/fonts/ -name 'DejaVu*ttf' | head -1` srcdir=`dirname $dejavu` dstdir="%_datadir/freevo/fonts" mkdir -p $dstdir/Vera mv $dstdir/Vera*ttf $dstdir/Vera cp $srcdir/DejaVuCondensedSans.ttf $dstdir/Vera.ttf cp $srcdir/DejaVuSansOblique.ttf $dstdir/VeraBI.ttf cp $srcdir/DejaVuSans.ttf $dstdir/VeraBd.ttf cp $srcdir/DejaVuCondensedSansOblique.ttf $dstdir/VeraIt.ttf cp $srcdir/DejaVuMonoSansBoldOblique.ttf $dstdir/VeraMoBI.ttf cp $srcdir/DejaVuMonoSansBold.ttf $dstdir/VeraMoBd.ttf cp $srcdir/DejaVuMonoSansOblique.ttf $dstdir/VeraMoIt.ttf cp $srcdir/DejaVuMonoSans.ttf $dstdir/VeraMono.ttf cp $srcdir/DejaVuSerif.ttf $dstdir/VeraSe.ttf cp $srcdir/DejaVuSerifBold.ttf $dstdir/VeraSeBd.ttf %changelog * Mon May 19 2008 Marat Khairullin 1.7.7-alt0.1.M40.2 - added new patch to freevo.po * Sat May 17 2008 Marat Khairullin 1.7.7-alt0.1.M40.1 - new version - removed my patch to freevo.po * Fri May 16 2008 Marat Khairullin 1.7.5-alt1.1.M40.5 - add patch to vposcast.py for properly fetching youtube url * Thu May 08 2008 Marat Khairullin 1.7.5-alt1.1.M40.4 - Create new subpackage 'maxi'. - fixed freevo.po patch * Mon May 05 2008 Marat Khairullin 1.7.5-alt1.1.M40.3 - add patch that fix i18n/ru/LC_MESSAGES/freevo.po file - add command to spec to rebuild i18n/*.mo files * Mon Apr 14 2008 Marat Khairullin 1.7.5-alt1.1.M40.2 - backport to branch40: add: add_python_req_skip helpers www py_requires mm kaa-imlib2 kaa-metadata Requires: vlc-maxi xine-ui mplayer mplayer-i18n-ru mencoder tvtime lsdvd libjpeg-utils lame flac cdparanoia vorbis-tools util-linux * Tue Jan 29 2008 Grigory Batalov 1.7.5-alt1.1 - Rebuilt with python-2.5. * Thu Jan 03 2008 Vitaly Lipatov 1.7.5-alt1 - new version 1.7.5 (with rpmrb script) * Thu Sep 20 2007 Vitaly Lipatov 1.7.3-alt1 - new version 1.7.3 (with rpmrb script) * Sun Jun 03 2007 Vitaly Lipatov 1.7.2-alt1 - new version 1.7.2 (with rpmrb script) - add requires python-module-elementtree python-module-twisted (fix bug #11959) * Sat May 26 2007 Vitaly Lipatov 1.7.1-alt1 - new version 1.7.1 (with rpmrb script) * Tue Dec 26 2006 Vitaly Lipatov 1.6.1-alt0.1 - new version 1.6.1 (with rpmrb script) - add python-module-Numeric requires (fix bug #10518) * Wed Nov 22 2006 Vitaly Lipatov 1.6.0-alt0.1 - new version 1.6.0 (with rpmrb script) * Fri Nov 18 2005 Vitaly Lipatov 1.5.4-alt0.1 - new version * Fri Nov 18 2005 Vitaly Lipatov 1.5.2-alt0.2 - new version * Mon Jul 19 2004 TC Wan - Built 1.5.0 final * Fri Jul 2 2004 TC Wan - Added docs subdir for package cleanup, fixed contrib dir build warnings * Tue Jun 29 2004 TC Wan - Added python-numeric dependency, backup freevo.conf just before creating new default copy * Fri Jun 18 2004 TC Wan - Updated for 1.5 * Fri Dec 19 2003 TC Wan - Updated for 1.4.1 * Sat Nov 22 2003 TC Wan - Updated for 1.4 final * Tue Nov 11 2003 TC Wan - Updated for 1.4-rc4 * Tue Nov 4 2003 TC Wan - Updated for 1.4-rc3 (name change) * Sat Oct 25 2003 TC Wan - Updated for 1.4-rc2 * Wed Oct 8 2003 TC Wan - Fixed boot scripts for RH 9, disabled freevo_dep since it's obsolete (?) * Fri Sep 26 2003 TC Wan - Removed testfiles from build since it's no longer part of the package Cleaned up conditional flags * Thu Sep 18 2003 TC Wan - Added supporting directories and files to package * Fri Sep 5 2003 TC Wan - Initial SPEC file for python site-packages installation