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