]> git.pld-linux.org Git - packages/freevo.git/blame - freevo.spec
automatic change: use py_build/py_install macros
[packages/freevo.git] / freevo.spec
CommitLineData
2419442f 1Summary: Freevo - open-source home theatre PC platform
679b5e34 2Summary(pl.UTF-8): Freevo - zestaw kina domowego oparty na platformie PC i otwartych źródłach
0304ce9c 3Name: freevo
d2ca07b5 4Version: 1.7.2
56961b05 5Release: 6
0304ce9c 6License: GPL
7Group: Applications/Multimedia
2419442f 8Source0: http://dl.sourceforge.net/freevo/%{name}-%{version}.tar.gz
d2ca07b5 9# Source0-md5: 1c05c080cd89d70e07e393f74aaa1730
2419442f 10Source1: %{name}-boot_config
86d59488 11Patch0: %{name}-setup.py-elementtree.patch
735d6d28 12Patch1: %{name}-xmltv.py.patch
2419442f 13URL: http://freevo.sourceforge.net/
d371e42b 14BuildRequires: python-BeautifulSoup
e12eb38e 15BuildRequires: python-PIL >= 1.1.4
16BuildRequires: python-TwistedCore >= 2.0.1-1
8ae2a0f5 17BuildRequires: python-TwistedWeb
a462aa35 18BuildRequires: python-devel
3d6115de 19BuildRequires: python-elementtree
e12eb38e 20BuildRequires: python-kaa-imlib2
21BuildRequires: python-kaa-metadata
8fe709b8 22BuildRequires: python-mmpython >= 0.4.9
2419442f 23BuildRequires: python-pygame >= 1.5.6
7d22b185 24BuildRequires: python-libxml2
8fe709b8
KK
25BuildRequires: rpm-pythonprov
26%pyrequires_eq python-libs
2419442f
JB
27Requires: aumix >= 2.8
28Requires: lsdvd
8fe709b8 29Requires: mplayer
49716dc2 30Requires: python-Numeric
e12eb38e 31Requires: python-PIL >= 1.1.4
a17c1552 32Requires: python-TwistedWeb
a7f07430
MWP
33Requires: python-kaa-metadata
34Requires: python-kaa-imlib2
8fe709b8 35Requires: python-mmpython >= 0.4.9
2cb809e3 36Requires: python-numpy
8fe709b8
KK
37Requires: python-pygame >= 1.5.6
38#Suggests: tvtime
39#Suggests: xine-ui
40#Suggests: xmltv
2419442f 41BuildArch: noarch
0304ce9c 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67c952c2 43
44%description
45Freevo is a Linux application that turns a PC with a TV capture card
46and/or TV-out into a standalone multimedia jukebox/VCR. It builds on
47other applications such as xine, mplayer, tvtime and mencoder to play
48and record video and audio.
49
ed1e2d69
JR
50%description -l pl.UTF-8
51Freevo to linuksowa aplikacja zamieniająca PC z kartą telewizyjną
52i/lub wyjściem TV-out na samodzielną multimedialną szafę grającą /
51f61db5 53magnetowid. Jest zbudowana w oparciu o inne aplikacje, takie jak xine,
ed1e2d69
JR
54mplayer, tvtime i mencoder służące do odtwarzania i nagrywania obrazu
55i dźwięku.
2419442f 56
67c952c2 57%package boot
0304ce9c 58Summary: Files to enable a standalone Freevo system (started from initscript)
679b5e34 59Summary(pl.UTF-8): Pliki do włączania samodzielnego systemu Freevo (uruchamiane z initscriptów)
0304ce9c 60Group: Applications/Multimedia
2419442f
JB
61Requires(post,preun): /sbin/chkconfig
62Requires: %{name} = %{version}-%{release}
c2b3054e 63Requires: rc-scripts
67c952c2 64
65%description boot
66Freevo is a Linux application that turns a PC with a TV capture card
67and/or TV-out into a standalone multimedia jukebox/VCR. It builds on
68other applications such as mplayer and mencoder to play and record
69video and audio.
70
0304ce9c 71Note: This installs the initscripts necessary for a standalone Freevo
72system.
67c952c2 73
ed1e2d69
JR
74%description boot -l pl.UTF-8
75Freevo to linuksowa aplikacja zamieniająca PC z kartą telewizyjną
76i/lub wyjściem TV-out na samodzielną multimedialną szafę grającą /
51f61db5 77magnetowid. Jest zbudowana w oparciu o inne aplikacje, takie jak xine,
ed1e2d69
JR
78mplayer, tvtime i mencoder służące do odtwarzania i nagrywania obrazu
79i dźwięku.
2419442f 80
ed1e2d69 81Ten pakiet instaluje skrypty inicjalizujące potrzebne do samodzielnego
2419442f
JB
82systemu Freevo.
83
67c952c2 84%prep
0304ce9c 85%setup -q
735d6d28 86%patch0 -p1
87%patch1 -p0
67c952c2 88
67c952c2 89find . -name CVS | xargs rm -rf
51f61db5
ER
90find . -name ".cvsignore" | xargs rm -f
91find . -name "*.pyc" | xargs rm -f
92find . -name "*.pyo" | xargs rm -f
93find . -name "*.py" | xargs chmod 644
67c952c2 94
2419442f 95%build
5740396d 96env %py_build
2419442f 97
67c952c2 98%install
0304ce9c 99rm -rf $RPM_BUILD_ROOT
5740396d 100%py_install \
2419442f 101 --record=INSTALLED_FILES
67c952c2 102
2419442f
JB
103install local_conf.py.example $RPM_BUILD_ROOT%{_docdir}
104
105install -d $RPM_BUILD_ROOT%{_datadir}/freevo/contrib/lirc
106cp -av contrib/lirc $RPM_BUILD_ROOT%{_datadir}/freevo/contrib
51f61db5 107install -d $RPM_BUILD_ROOT%{_sysconfdir}/freevo
42a2e1e5 108## The following is needed to let RPM know that the files should be backed up
51f61db5 109touch $RPM_BUILD_ROOT%{_sysconfdir}/freevo/freevo.conf
42a2e1e5 110#
111## boot scripts
51f61db5
ER
112install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
113install -d $RPM_BUILD_ROOT%{_bindir}
114install boot/freevo $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
115install boot/freevo_dep $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
116install boot/recordserver $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freevo_recordserver
117install boot/webserver $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freevo_webserver
118install boot/recordserver_init $RPM_BUILD_ROOT%{_bindir}/freevo_recordserver_init
119install boot/webserver_init $RPM_BUILD_ROOT%{_bindir}/freevo_webserver_init
2cb809e3 120install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/freevo/boot_config
42a2e1e5 121#
122#
51f61db5
ER
123install -d $RPM_BUILD_ROOT/var/log/freevo
124install -d $RPM_BUILD_ROOT/var/cache/freevo
125install -d $RPM_BUILD_ROOT/var/cache/freevo/{thumbnails,audio}
126install -d $RPM_BUILD_ROOT/var/cache/xmltv/logos
67c952c2 127
0b7ea3d6 128mv $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb}
0304ce9c 129%find_lang %{name}
67c952c2 130
2419442f
JB
131%clean
132rm -rf $RPM_BUILD_ROOT
67c952c2 133
2419442f 134%post
51f61db5
ER
135if [ "$1" = 1 ]; then
136 echo "Remember to run 'freevo setup' after installing!"
137fi
67c952c2 138
2419442f
JB
139%post boot
140# Add the service, but don't automatically invoke it
141# user has to enable it via ntsysv
142/sbin/chkconfig --add freevo
cb1108cd 143/sbin/chkconfig --level 234 freevo off
2419442f
JB
144#/sbin/chkconfig --add freevo_dep
145/sbin/chkconfig --add freevo_recordserver
cb1108cd 146/sbin/chkconfig --level 234 freevo_recordserver off
2419442f 147/sbin/chkconfig --add freevo_webserver
cb1108cd 148/sbin/chkconfig --level 234 freevo_webserver off
67c952c2 149
2419442f
JB
150%preun boot
151if [ "$1" = 0 ] ; then
152 /sbin/chkconfig --del freevo
153# /sbin/chkconfig --del freevo_dep
154 /sbin/chkconfig --del freevo_recordserver
155 /sbin/chkconfig --del freevo_webserver
156fi
67c952c2 157
0304ce9c 158%files -f %{name}.lang
159%defattr(644,root,root,755)
a8843342 160%doc ChangeLog FAQ INSTALL README TODO Docs local_conf.py.example
0304ce9c 161%doc contrib/lirc
2419442f 162%{_docdir}/local_conf.py.example
8fe709b8 163%attr(755,root,root) %{_bindir}/freevo
2419442f
JB
164#%dir %{_docdir}/installation
165#%dir %{_docdir}/plugin_writing
c7c156c9 166%{_datadir}/freevo
2419442f
JB
167%dir %{_sysconfdir}/freevo
168%attr(1777,root,root) %dir /var/log/freevo
169%attr(1777,root,root) %dir /var/cache/freevo
170%attr(1777,root,root) %dir /var/cache/freevo/audio
171%attr(1777,root,root) %dir /var/cache/freevo/thumbnails
172%attr(1777,root,root) %dir /var/cache/xmltv
173%attr(1777,root,root) %dir /var/cache/xmltv/logos
b92c3c70 174%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freevo/freevo.conf
2419442f
JB
175#%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/freevo/record_config.py
176%{py_sitescriptdir}/freevo
dc5c3e0e 177#%dir %{_datadir}/fxd
178#%{_datadir}/fxd/webradio.fxd
67c952c2 179
180%files boot
181%defattr(644,root,root,755)
2419442f 182%attr(754,root,root) /etc/rc.d/init.d/*
67c952c2 183%attr(755,root,root) %{_bindir}/freevo_*
b92c3c70 184%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freevo/boot_config
This page took 0.112897 seconds and 4 git commands to generate.