X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freevo.spec;h=331745f1d3207c7cbc7dc85119b3a6d282f8ddf4;hb=56961b053eabe543cd820f6464a146d99dfb5c49;hp=d9004e629fb7d18fca3ca47b3108ae65726f3d20;hpb=8eee44a74ff8aa2952f5f37f7b64995a9da1ef6c;p=packages%2Ffreevo.git diff --git a/freevo.spec b/freevo.spec index d9004e6..331745f 100644 --- a/freevo.spec +++ b/freevo.spec @@ -1,30 +1,43 @@ Summary: Freevo - open-source home theatre PC platform -Summary(pl): Freevo - zestaw kina domowego oparty na platformie PC i otwartych ¼ród³ach +Summary(pl.UTF-8): Freevo - zestaw kina domowego oparty na platformie PC i otwartych źródłach Name: freevo -Version: 1.5.3 -Release: 1 +Version: 1.7.2 +Release: 6 License: GPL Group: Applications/Multimedia Source0: http://dl.sourceforge.net/freevo/%{name}-%{version}.tar.gz -# Source0-md5: 20263d2a4de1fc5948391c6b2ca04b0d +# Source0-md5: 1c05c080cd89d70e07e393f74aaa1730 Source1: %{name}-boot_config +Patch0: %{name}-setup.py-elementtree.patch +Patch1: %{name}-xmltv.py.patch URL: http://freevo.sourceforge.net/ -BuildRequires: SDL_image >= 1.2.3 -BuildRequires: SDL_mixer >= 1.2.5 -BuildRequires: SDL_ttf >= 2.0.6 -BuildRequires: docbook-utils -BuildRequires: libexif-devel >= 0.5.10 -BuildRequires: libjpeg-devel >= 6b -BuildRequires: python-Imaging >= 1.1.4 -BuildRequires: python-PyXML -BuildRequires: python-Twisted >= 2.0.1-1 +BuildRequires: python-BeautifulSoup +BuildRequires: python-PIL >= 1.1.4 +BuildRequires: python-TwistedCore >= 2.0.1-1 +BuildRequires: python-TwistedWeb BuildRequires: python-devel -BuildRequires: python-mmpython >= 0.4.8 -BuildRequires: python-mx-Tools >= 2.0.5 -BuildRequires: python-numpy >= 23.1 +BuildRequires: python-elementtree +BuildRequires: python-kaa-imlib2 +BuildRequires: python-kaa-metadata +BuildRequires: python-mmpython >= 0.4.9 BuildRequires: python-pygame >= 1.5.6 +BuildRequires: python-libxml2 +BuildRequires: rpm-pythonprov +%pyrequires_eq python-libs Requires: aumix >= 2.8 Requires: lsdvd +Requires: mplayer +Requires: python-Numeric +Requires: python-PIL >= 1.1.4 +Requires: python-TwistedWeb +Requires: python-kaa-metadata +Requires: python-kaa-imlib2 +Requires: python-mmpython >= 0.4.9 +Requires: python-numpy +Requires: python-pygame >= 1.5.6 +#Suggests: tvtime +#Suggests: xine-ui +#Suggests: xmltv BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -34,20 +47,20 @@ 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. -%description -l pl -Freevo to linuksowa aplikacja zamieniaj±ca PC z kart± telewizyjn± -i/lub wyj¶ciem TV-out na samodzieln± multimedialn± szafê graj±c± / -magnetowid. Jest zbudowana w oparciu o inne aplikacje, takie jak -xine, mplayer, tvtime i mencoder s³u¿±ce do odtwarzania i nagrywania -obrazu i d¼wiêku. +%description -l pl.UTF-8 +Freevo to linuksowa aplikacja zamieniająca PC z kartą telewizyjną +i/lub wyjściem TV-out na samodzielną multimedialną szafę grającą / +magnetowid. Jest zbudowana w oparciu o inne aplikacje, takie jak xine, +mplayer, tvtime i mencoder służące do odtwarzania i nagrywania obrazu +i dźwięku. %package boot Summary: Files to enable a standalone Freevo system (started from initscript) -Summary(pl): Pliki do w³±czania samodzielnego systemu Freevo (uruchamiane z initscriptów) +Summary(pl.UTF-8): Pliki do włączania samodzielnego systemu Freevo (uruchamiane z initscriptów) Group: Applications/Multimedia -PreReq: rc-scripts Requires(post,preun): /sbin/chkconfig Requires: %{name} = %{version}-%{release} +Requires: rc-scripts %description boot Freevo is a Linux application that turns a PC with a TV capture card @@ -58,24 +71,26 @@ video and audio. Note: This installs the initscripts necessary for a standalone Freevo system. -%description boot -l pl -Freevo to linuksowa aplikacja zamieniaj±ca PC z kart± telewizyjn± -i/lub wyj¶ciem TV-out na samodzieln± multimedialn± szafê graj±c± / -magnetowid. Jest zbudowana w oparciu o inne aplikacje, takie jak -xine, mplayer, tvtime i mencoder s³u¿±ce do odtwarzania i nagrywania -obrazu i d¼wiêku. +%description boot -l pl.UTF-8 +Freevo to linuksowa aplikacja zamieniająca PC z kartą telewizyjną +i/lub wyjściem TV-out na samodzielną multimedialną szafę grającą / +magnetowid. Jest zbudowana w oparciu o inne aplikacje, takie jak xine, +mplayer, tvtime i mencoder służące do odtwarzania i nagrywania obrazu +i dźwięku. -Ten pakiet instaluje skrypty inicjalizuj±ce potrzebne do samodzielnego +Ten pakiet instaluje skrypty inicjalizujące potrzebne do samodzielnego systemu Freevo. %prep %setup -q +%patch0 -p1 +%patch1 -p0 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 +find . -name ".cvsignore" | xargs rm -f +find . -name "*.pyc" | xargs rm -f +find . -name "*.pyo" | xargs rm -f +find . -name "*.py" | xargs chmod 644 %build env CFLAGS="%{rpmcflags}" \ @@ -91,47 +106,48 @@ install local_conf.py.example $RPM_BUILD_ROOT%{_docdir} install -d $RPM_BUILD_ROOT%{_datadir}/freevo/contrib/lirc cp -av contrib/lirc $RPM_BUILD_ROOT%{_datadir}/freevo/contrib -mkdir -p %{buildroot}%{_sysconfdir}/freevo +install -d $RPM_BUILD_ROOT%{_sysconfdir}/freevo ## The following is needed to let RPM know that the files should be backed up -touch %{buildroot}%{_sysconfdir}/freevo/freevo.conf +touch $RPM_BUILD_ROOT%{_sysconfdir}/freevo/freevo.conf # ## boot scripts -mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d -mkdir -p %{buildroot}%{_bindir} -install boot/freevo %{buildroot}%{_sysconfdir}/rc.d/init.d -install boot/freevo_dep %{buildroot}%{_sysconfdir}/rc.d/init.d -install boot/recordserver %{buildroot}%{_sysconfdir}/rc.d/init.d/freevo_recordserver -install boot/webserver %{buildroot}%{_sysconfdir}/rc.d/init.d/freevo_webserver -install boot/recordserver_init %{buildroot}%{_bindir}/freevo_recordserver_init -install boot/webserver_init %{buildroot}%{_bindir}/freevo_webserver_init -install -D %{SOURCE1} %{buildroot}%{_sysconfdir}/freevo/boot_config +install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d +install -d $RPM_BUILD_ROOT%{_bindir} +install boot/freevo $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d +install boot/freevo_dep $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d +install boot/recordserver $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freevo_recordserver +install boot/webserver $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freevo_webserver +install boot/recordserver_init $RPM_BUILD_ROOT%{_bindir}/freevo_recordserver_init +install boot/webserver_init $RPM_BUILD_ROOT%{_bindir}/freevo_webserver_init +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/freevo/boot_config # # -mkdir -p %{buildroot}/var/log/freevo -mkdir -p %{buildroot}/var/cache/freevo -mkdir -p %{buildroot}/var/cache/freevo/{thumbnails,audio} -mkdir -p %{buildroot}/var/cache/xmltv/logos -chmod 777 %{buildroot}/var/cache/{freevo,freevo/thumbnails,freevo/audio,xmltv,xmltv/logos} -chmod 777 %{buildroot}/var/log/freevo +install -d $RPM_BUILD_ROOT/var/log/freevo +install -d $RPM_BUILD_ROOT/var/cache/freevo +install -d $RPM_BUILD_ROOT/var/cache/freevo/{thumbnails,audio} +install -d $RPM_BUILD_ROOT/var/cache/xmltv/logos +mv $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -echo "Remember to run 'freevo setup' after installing!" +if [ "$1" = 1 ]; then + echo "Remember to run 'freevo setup' after installing!" +fi %post boot # Add the service, but don't automatically invoke it # user has to enable it via ntsysv /sbin/chkconfig --add freevo -/sbin/chkconfig --levels 234 freevo off +/sbin/chkconfig --level 234 freevo off #/sbin/chkconfig --add freevo_dep /sbin/chkconfig --add freevo_recordserver -/sbin/chkconfig --levels 234 freevo_recordserver off +/sbin/chkconfig --level 234 freevo_recordserver off /sbin/chkconfig --add freevo_webserver -/sbin/chkconfig --levels 234 freevo_webserver off +/sbin/chkconfig --level 234 freevo_webserver off %preun boot if [ "$1" = 0 ] ; then @@ -146,15 +162,10 @@ fi %doc ChangeLog FAQ INSTALL README TODO Docs local_conf.py.example %doc contrib/lirc %{_docdir}/local_conf.py.example -%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_bindir}/freevo #%dir %{_docdir}/installation #%dir %{_docdir}/plugin_writing -%dir %{_datadir}/freevo -%{_datadir}/freevo/* -%dir %{_datadir}/freevo/contrib -%dir %{_datadir}/freevo/contrib/fbcon -%dir %{_datadir}/freevo/contrib/lirc -%{_datadir}/freevo/contrib/lirc/* +%{_datadir}/freevo %dir %{_sysconfdir}/freevo %attr(1777,root,root) %dir /var/log/freevo %attr(1777,root,root) %dir /var/cache/freevo @@ -165,10 +176,8 @@ fi %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freevo/freevo.conf #%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freevo/record_config.py %{py_sitescriptdir}/freevo -# ??? DUP -#%{_datadir}/freevo -%dir %{_datadir}/fxd -%{_datadir}/fxd/webradio.fxd +#%dir %{_datadir}/fxd +#%{_datadir}/fxd/webradio.fxd %files boot %defattr(644,root,root,755)