%define tv_norm pal
%define chanlist europe-west
-Summary: Freevo
+Summary: Freevo - open-source home theatre PC platform
+Summary(pl): Freevo - zestaw kina domowego oparty na platformie PC i otwartych ¼ród³ach
Name: freevo
Version: 1.5.0
Release: 1
-Source0: http://dl.sourceforge.net/freevo/%{name}-%{version}.tar.gz
-Source1: %{name}-boot_config
License: GPL
Group: Applications/Multimedia
-BuildArch: noarch
-Requires: aumix >= 2.8
-Requires: lsdvd
-BuildRequires: docbook-utils
+Source0: http://dl.sourceforge.net/freevo/%{name}-%{version}.tar.gz
+Source1: %{name}-boot_config
+URL: http://freevo.sourceforge.net/
BuildRequires: SDL_image >= 1.2.3
-BuildRequires: SDL_ttf >= 2.0.6
BuildRequires: SDL_mixer >= 1.2.5
-BuildRequires: python-pygame >= 1.5.6
+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 >= 1.1.0
BuildRequires: python-mmpython >= 0.4.4
BuildRequires: python-mx-Tools >= 2.0.5
BuildRequires: python-numpy >= 23.1
-BuildRequires: libjpeg-devel >= 6b
-BuildRequires: libexif-devel >= 0.5.10
-BuildRequires: python-Twisted >= 1.1.0
-URL: http://freevo.sourceforge.net/
+BuildRequires: python-pygame >= 1.5.6
+Requires: aumix >= 2.8
+Requires: lsdvd
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
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.
+
%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)
Group: Applications/Multimedia
-Requires: %{name}
+PreReq: rc-scripts
+Requires(post,preun): /sbin/chkconfig
+Requires: %{name} = %{version}-%{release}
%description boot
Freevo is a Linux application that turns a PC with a TV capture card
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.
+
+Ten pakiet instaluje skrypty inicjalizuj±ce potrzebne do samodzielnego
+systemu Freevo.
+
%prep
-rm -rf $RPM_BUILD_ROOT
%setup -q
-%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
-#./autogen.sh
-
-env CFLAGS="%{rpmcflags}" python setup.py build
-
-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
-
-# 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}%{_sysconfdir}/rc.d/init.d/freevo_recordserver
-install -m 755 boot/webserver %{buildroot}%{_sysconfdir}/rc.d/init.d/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}/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
+%build
+env CFLAGS="%{rpmcflags}" \
+python setup.py build
+
+# ??? removed in install
+#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
+#
+## 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}%{_sysconfdir}/rc.d/init.d/freevo_recordserver
+#install -m 755 boot/webserver %{buildroot}%{_sysconfdir}/rc.d/init.d/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}/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
rm -rf $RPM_BUILD_ROOT
python setup.py install \
- --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
+ --root=$RPM_BUILD_ROOT \
+ --record=INSTALLED_FILES
-install local_conf.py.example %{buildroot}%{_docdir}
+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
-install -d %{buildroot}%{_datadir}/freevo/contrib/lirc
-cp -av contrib/lirc %{buildroot}%{_datadir}/freevo/contrib
%find_lang %{name}
-%post
+%clean
+rm -rf $RPM_BUILD_ROOT
+%post
# Copy old local_conf.py to replace dummy file
%{_bindir}/freevo setup --geometry=%{geometry} --display=%{display} \
--tv=%{tv_norm} --chanlist=%{chanlist}
+%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 --add freevo_dep
+/sbin/chkconfig --add freevo_recordserver
+/sbin/chkconfig --levels 234 freevo_recordserver off
+/sbin/chkconfig --add freevo_webserver
+/sbin/chkconfig --levels 234 freevo_webserver off
-%clean
-rm -rf $RPM_BUILD_ROOT
+%preun boot
+if [ "$1" = 0 ] ; then
+ /sbin/chkconfig --del freevo
+# /sbin/chkconfig --del freevo_dep
+ /sbin/chkconfig --del freevo_recordserver
+ /sbin/chkconfig --del freevo_webserver
+fi
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc BUGS COPYING ChangeLog FAQ INSTALL README TODO Docs local_conf.py.example
%doc contrib/lirc
-%attr(644,root,root) %{_docdir}/local_conf.py.example
-#%attr(755,root,root) %dir %{_docdir}/installation
-#%attr(755,root,root) %dir %{_docdir}/plugin_writing
-%attr(755,root,root) %dir %{_datadir}/freevo/contrib/fbcon
-%attr(755,root,root) %dir %{_datadir}/freevo/contrib/lirc
-%attr(644,root,root) %{_datadir}/freevo/contrib/lirc/*
-%attr(755,root,root) %dir %{_sysconfdir}/freevo
-%attr(777,root,root) %dir /var/log/freevo
-%attr(777,root,root) %dir /var/cache/freevo
-%attr(777,root,root) %dir /var/cache/freevo/audio
-%attr(777,root,root) %dir /var/cache/freevo/thumbnails
-%attr(777,root,root) %dir /var/cache/xmltv
-%attr(777,root,root) %dir /var/cache/xmltv/logos
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/freevo/freevo.conf
-#%attr(644,root,root) %config(noreplace) %{_sysconfdir}/freevo/record_config.py
-%attr(644,root,root) %{py_scriptdir}/site-packages/freevo/
+%{_docdir}/local_conf.py.example
%attr(755,root,root) %{_bindir}/*
-%attr(644,root,root) %{_datadir}/freevo
-%attr(644,root,root) %{_datadir}/fxd/webradio.fxd
-
+#%dir %{_docdir}/installation
+#%dir %{_docdir}/plugin_writing
+%dir %{_datadir}/freevo
+%dir %{_datadir}/freevo/contrib
+%dir %{_datadir}/freevo/contrib/fbcon
+%dir %{_datadir}/freevo/contrib/lirc
+%{_datadir}/freevo/contrib/lirc/*
+%dir %{_sysconfdir}/freevo
+%attr(1777,root,root) %dir /var/log/freevo
+%attr(1777,root,root) %dir /var/cache/freevo
+%attr(1777,root,root) %dir /var/cache/freevo/audio
+%attr(1777,root,root) %dir /var/cache/freevo/thumbnails
+%attr(1777,root,root) %dir /var/cache/xmltv
+%attr(1777,root,root) %dir /var/cache/xmltv/logos
+%config(noreplace) %verify(not size mtime md5) %{_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
%files boot
%defattr(644,root,root,755)
-%attr(755,root,root) %{_sysconfdir}/rc.d/init.d
+%attr(754,root,root) /etc/rc.d/init.d/*
%attr(755,root,root) %{_bindir}/freevo_*
-%attr(755,root,root) %dir %{_sysconfdir}/freevo
-%attr(644,root,root) %config(noreplace) %{_sysconfdir}/freevo/boot_config
-
-%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 --levels 234 freevo off
-# chkconfig --add freevo_dep
- chkconfig --add freevo_recordserver
- chkconfig --levels 234 freevo_recordserver off
- chkconfig --add freevo_webserver
- chkconfig --levels 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
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freevo/boot_config