1 %include /usr/lib/rpm/macros.perl
2 Summary: Main MythTV plugins
3 Summary(pl): G³ówne wtyczki MythTV
8 Group: Applications/Multimedia
9 Source0: http://www.mythtv.org/mc/%{name}-%{version}.tar.bz2
10 # Source0-md5: 1d94d19e2a13c24a408ced9b6c4f5b47
12 Patch0: %{name}-configure.patch
13 Patch1: mythweb-config.patch
14 URL: http://www.mythtv.org/
15 BuildRequires: OpenGL-devel
16 BuildRequires: SDL-devel
17 BuildRequires: XFree86-devel
18 BuildRequires: a52dec-libs-devel
19 BuildRequires: cdparanoia-III-devel
20 BuildRequires: faad2-devel >= 2.0-5.2
21 BuildRequires: fftw-devel >= 2.1.3
22 BuildRequires: flac-devel >= 1.0.4
23 BuildRequires: freetype-devel
24 BuildRequires: kdelibs-devel
25 BuildRequires: libcdaudio-devel
26 BuildRequires: libdvdcss-devel >= 1.2.7
27 BuildRequires: libdvdread-devel >= 0.9.4
28 BuildRequires: libexif-devel
29 BuildRequires: libfame-devel >= 0.9.0
30 BuildRequires: libid3tag-devel
31 BuildRequires: libmad-devel
32 BuildRequires: libmyth-devel >= 0.18.1-0.21
33 BuildRequires: libstdc++-devel
34 BuildRequires: libtiff-devel
35 BuildRequires: libvorbis-devel >= 1.0
36 BuildRequires: mjpegtools-devel >= 1.6.1
38 BuildRequires: rpm-perlprov >= 4.1-13
39 BuildRequires: sed >= 4.0
40 BuildRequires: transcode >= 0.6.8
41 BuildRequires: xvid-devel >= 1:0.9.1
42 BuildRequires: zlib-devel
52 ExclusiveArch: %{ix86} %{x8664}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define api_ver %(echo %{version} | cut -d. -f1,2)
58 This is a consolidation of all the official MythTV plugins that used
59 to be distributed as separate downloads from mythtv.org.
62 Jest to zbiór wszystkich oficjalnych wtyczek MythTV, które by³y
63 wcze¶niej rozpowszechniane jako osobne pakiety na mythtv.org.
66 Summary: The music player add-on module for MythTV
67 Summary(pl): Modu³ odtwarzacza muzyki dla MythTV
68 Group: Applications/Multimedia
69 Requires: mythtv-frontend-api = %{api_ver}
71 %description -n mythmusic
72 Music add-on for MythTV.
74 %description -n mythmusic -l pl
75 Odtwarzacz muzyki dla MythTV.
78 Summary: A generic video player frontend module for MythTV
79 Summary(pl): Modu³ ogólnego interfejsu do odtwarzania obrazu dla MythTV
80 Group: Applications/Multimedia
82 Requires: mythtv-frontend-api = %{api_ver}
84 %description -n mythvideo
85 A generic video player frontend module for MythTV.
87 %description -n mythvideo -l pl
88 Modu³ ogólnego interfejsu do odtwarzania obrazu dla MythTV.
90 %package -n mythweather
91 Summary: A MythTV module that displays a weather forcast
92 Summary(pl): Modu³ MythTV wy¶wietlaj±cy prognozê pogody
93 Group: Applications/Multimedia
94 Requires: mythtv-frontend-api = %{api_ver}
96 %description -n mythweather
97 A MythTV module that displays a weather forcast.
99 %description -n mythweather -l pl
100 Modu³ MythTV wy¶wietlaj±cy prognozê pogody.
102 %package -n mythgallery
103 Summary: A gallery/slideshow module for MythTV
104 Summary(pl): Modu³ galerii/pokazu slajdów dla MythTV
105 Group: Applications/Multimedia
106 Requires: mythtv-frontend-api = %{api_ver}
108 %description -n mythgallery
109 A gallery/slideshow module for MythTV.
111 %description -n mythgallery -l pl
112 Modu³ galerii/pokazu slajdów dla MythTV.
115 Summary: A game frontend (xmame, nes, snes, pc) for MythTV
116 Summary(pl): Interfejs do gier (xmame, nes, snes, pc) dla MythTV
117 Group: Applications/Multimedia
118 Requires: mythtv-frontend-api = %{api_ver}
120 %description -n mythgame
121 A game frontend (xmame, nes, snes, pc) for MythTV.
123 %description -n mythgame -l pl
124 Interfejs do gier (xmame, nes, snes, pc) dla MythTV.
127 Summary: A DVD player module for MythTV
128 Summary(pl): Modu³ odtwarzacza DVD dla MythTV
129 Group: Applications/Multimedia
130 Requires: mythtv-frontend-api = %{api_ver}
131 Requires: transcode >= 0.6.8
133 %description -n mythdvd
134 MythDVD is a MythTV module that allows you to play DVDs on a myth-box
135 and (optionally) rip DVD's and transcode their video and audio content
136 to other (generally smaller) formats. The playing features are simply
137 myth-style wrappers for your favourite DVD playing software (mplayer,
138 ogle, xine, etc). The transcoding is based on and derived from the
139 excellent transcode package.
141 %description -n mythdvd -l pl
142 MythDVD to modu³ MythTV umo¿liwiaj±cy odtwarzanie p³yt DVD w MythTV i
143 (opcjonalnie) rippowanie ich oraz przekodowywanie obrazu i d¼wiêku do
144 innych (zwykle mniej zajmuj±cych) formatów. Mo¿liwo¶ci odtwarzania to
145 po prostu obudowanie w stylu myth dla ulubionego oprogramowania do
146 odtwarzania DVD (mplayer, ogle, xine itp.). Przekodowywanie jest
147 oparte i wywodzi siê z wspania³ego pakietu transcode.
150 Summary: A RSS News Feed plugin for MythTV
151 Summary(pl): Wtyczka czytnika nowinek RSS dla MythTV
152 Group: Applications/Multimedia
153 Requires: mythtv-frontend-api = %{api_ver}
155 %description -n mythnews
156 A RSS News Feed plugin for MythTV.
158 %description -n mythnews -l pl
159 Wtyczka czytnika nowinek RSS dla MythTV.
161 %package -n mythbrowser
162 Summary: A small web browser module for MythTV
163 Summary(pl): Modu³ ma³ej przegl±darki WWW dla MythTV
164 Group: Applications/Multimedia
165 Requires: mythtv-frontend-api = %{api_ver}
167 %description -n mythbrowser
168 MythBrowser is a full fledged web-browser (multiple tabs) to display
169 webpages in full-screen mode. Simple page navigation is possible.
170 Starting with version 0.13 it also has full support for mouse driven
171 navigation (right mouse opens and closes the popup menu).
173 MythBrowser also contains a BookmarkManager to manage the website
174 links in a simple mythplugin.
176 %description -n mythbrowser -l pl
177 MythBrowser to w pe³ni funkcjonalna przegl±darka WWW (z wieloma
178 zak³adkami) wy¶wietlaj±ca strony WWW w trybie pe³noekranowym. Mo¿liwa
179 jest prosta nawigacja po stronie. Pocz±wszy od wersji 0.13 ma pe³n±
180 obs³ugê nawigacji myszk± (prawy przycisk otwiera i zamywa wyskakuj±ce
183 MythBrowser zawiera tak¿e BookmarkManagera do zarz±dzania odno¶nikami
184 do stron w prostej wtyczce myth.
186 %package -n mythphone
187 Summary: A video conferencing module for MythTV
188 Summary(pl): Modu³ wideokonferencji dla MythTV
189 Group: Applications/Multimedia
190 Requires: mythtv-frontend-api = %{api_ver}
192 %description -n mythphone
193 Mythphone is a phone and videophone capability on Myth using the
194 standard SIP protocol. It is compatible with Microsoft XP Messenger
195 and with SIP Service Providers such as Free World Dialup
198 %description -n mythphone -l pl
199 Mythphone to funkcjonalno¶æ telefonu i wideofonu w Myth przy u¿yciu
200 standardowego protoko³u SIP. Jest kompatybilny z Microsoft XP
201 Messengerem oraz dostawcami us³ug SIP, takimi jak Free World Dialup
205 Summary: The web interface to MythTV
206 Group: Applications/Multimedia
207 Requires: apache >= 1.3.33-2
208 Requires: php >= 3:4.2.2
209 Requires: php-mysql >= 3:4.2.2
211 %description -n mythweb
212 The web interface to MythTV.
220 find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
221 xargs grep -l /lib/ . | xargs sed -i -e '
222 s,/''usr/lib/,%{_prefix}/%{_lib}/,g
223 s,{PREFIX}/lib,{PREFIX}/%{_lib},g
226 sed -i -e 's|/mnt/store/music|/var/lib/mythmusic|' mythmusic/mythmusic/globalsettings.cpp
227 sed -i -e 's|/share/Movies/dvd|/var/lib/mythvideo|' mythvideo/mythvideo/globalsettings.cpp
228 sed -i -e 's|/mnt/cdrom:/mnt/camera|/media/cdrom:/mnt/camera|' mythgallery/mythgallery/gallerysettings.cpp
230 # include mythtv build settings
231 cp %{_datadir}/mythtv/build/config.mak .
232 sed -i -e "1iinclude(`pwd`/config.mak)" settings.pro
235 # mmx asm isn't x86_64 compatible in mythmusic
236 echo 'DEFINES -= HAVE_MMX' >> settings.pro
240 export QTDIR="%{_prefix}"
246 # --enable-opengl enable OpenGL (Music and Gallery) [default=no]
247 # --enable-transcode enable DVD ripping and transcoding [default=no]
248 # --enable-vcd enable VCD playing [default=no]
249 # --enable-exif enable reading of EXIF headers [default=no]
250 # --enable-fftw enable fftw visualizers [default=no]
251 # --enable-sdl use SDL for the synaesthesia output [default=no]
252 # --enable-aac enable AAC/MP4 audio file decompression [default=no]
253 # --enable-festival enable festival TTS Engine [default=no]
255 qmake mythplugins.pro
259 rm -rf $RPM_BUILD_ROOT
261 export QTDIR="%{_prefix}"
263 INSTALL_ROOT=$RPM_BUILD_ROOT
265 install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythvideo,pictures}
266 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens}
267 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens}
268 install -d $rpm_build_root%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
269 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens
270 cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC
273 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mythweb,%{_datadir}/mythweb/languages,/var/cache/mythweb/{image_cache,php_sessions}}
275 rm -f mythweb/themes/compact.tar.bz2
276 cp -a mythweb/*.{html,php} $RPM_BUILD_ROOT%{_datadir}/mythweb
277 cp -a mythweb/languages/*.php $RPM_BUILD_ROOT%{_datadir}/mythweb/languages
278 cp -a mythweb/{images,includes,js,themes,vxml} $RPM_BUILD_ROOT%{_datadir}/mythweb
279 cp -a mythweb/{images,includes,js,languages,themes,vxml} $RPM_BUILD_ROOT%{_datadir}/mythweb
280 cp -a mythweb/config/* $RPM_BUILD_ROOT%{_sysconfdir}/mythweb
281 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mythweb/apache.conf
282 touch $RPM_BUILD_ROOT%{_sysconfdir}/mythweb/htpasswd
285 rm -rf $RPM_BUILD_ROOT
287 %triggerin -n mythweb -- apache1 >= 1.3.33-2
288 %apache_config_install -v 1 -c %{_sysconfdir}/mythweb/apache.conf
290 %triggerun -n mythweb -- apache1 >= 1.3.33-2
291 %apache_config_uninstall -v 1
293 %triggerin -n mythweb -- apache >= 2.0.0
294 %apache_config_install -v 2 -c %{_sysconfdir}/mythweb/apache.conf
296 %triggerun -n mythweb -- apache >= 2.0.0
297 %apache_config_uninstall -v 2
300 %defattr(644,root,root,755)
303 %defattr(644,root,root,755)
304 %doc mythmusic/README mythmusic/UPGRADING mythmusic/AUTHORS mythmusic/musicdb
305 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so
307 %{_datadir}/mythtv/musicmenu.xml
308 %{_datadir}/mythtv/music_settings.xml
309 %{_datadir}/mythtv/i18n/mythmusic_*.qm
310 %{_datadir}/mythtv/themes/default/ff_button_off.png
311 %{_datadir}/mythtv/themes/default/ff_button_on.png
312 %{_datadir}/mythtv/themes/default/ff_button_pushed.png
313 %{_datadir}/mythtv/themes/default/mm_blackhole_border.png
314 %{_datadir}/mythtv/themes/default/mm_blankbutton_off.png
315 %{_datadir}/mythtv/themes/default/mm_blankbutton_on.png
316 %{_datadir}/mythtv/themes/default/mm_blankbutton_pushed.png
317 %{_datadir}/mythtv/themes/default/mm_checked.png
318 %{_datadir}/mythtv/themes/default/mm_checked_high.png
319 %{_datadir}/mythtv/themes/default/mm_down_arrow.png
320 %{_datadir}/mythtv/themes/default/mm_left_arrow.png
321 %{_datadir}/mythtv/themes/default/mm_leftright_off.png
322 %{_datadir}/mythtv/themes/default/mm_leftright_on.png
323 %{_datadir}/mythtv/themes/default/mm_leftright_pushed.png
324 %{_datadir}/mythtv/themes/default/mm_rating.png
325 %{_datadir}/mythtv/themes/default/mm_right_arrow.png
326 %{_datadir}/mythtv/themes/default/mm_unchecked.png
327 %{_datadir}/mythtv/themes/default/mm_unchecked_high.png
328 %{_datadir}/mythtv/themes/default/mm_up_arrow.png
329 %{_datadir}/mythtv/themes/default/mm_volume_background.png
330 %{_datadir}/mythtv/themes/default/mm_volume_tick.png
331 %{_datadir}/mythtv/themes/default/mm_waiting.png
332 %{_datadir}/mythtv/themes/default/music-sel-bg.png
333 %{_datadir}/mythtv/themes/default/music-ui.xml
334 %{_datadir}/mythtv/themes/default/next_button_off.png
335 %{_datadir}/mythtv/themes/default/next_button_on.png
336 %{_datadir}/mythtv/themes/default/next_button_pushed.png
337 %{_datadir}/mythtv/themes/default/pause_button_off.png
338 %{_datadir}/mythtv/themes/default/pause_button_on.png
339 %{_datadir}/mythtv/themes/default/pause_button_pushed.png
340 %{_datadir}/mythtv/themes/default/play_button_off.png
341 %{_datadir}/mythtv/themes/default/play_button_on.png
342 %{_datadir}/mythtv/themes/default/play_button_pushed.png
343 %{_datadir}/mythtv/themes/default/prev_button_off.png
344 %{_datadir}/mythtv/themes/default/prev_button_on.png
345 %{_datadir}/mythtv/themes/default/prev_button_pushed.png
346 %{_datadir}/mythtv/themes/default/rew_button_off.png
347 %{_datadir}/mythtv/themes/default/rew_button_on.png
348 %{_datadir}/mythtv/themes/default/rew_button_pushed.png
349 %{_datadir}/mythtv/themes/default/selectionbar.png
350 %{_datadir}/mythtv/themes/default/stop_button_off.png
351 %{_datadir}/mythtv/themes/default/stop_button_on.png
352 %{_datadir}/mythtv/themes/default/stop_button_pushed.png
353 %{_datadir}/mythtv/themes/default/text_button_off.png
354 %{_datadir}/mythtv/themes/default/text_button_on.png
355 %{_datadir}/mythtv/themes/default/text_button_pushed.png
356 %{_datadir}/mythtv/themes/default/track_info_background.png
359 %defattr(644,root,root,755)
360 %doc mythvideo/README mythvideo/UPGRADING mythvideo/videodb
361 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythvideo.so
362 %{_datadir}/mythtv/i18n/mythvideo_*.qm
363 %{_datadir}/mythtv/themes/default/video-ui.xml
364 %{_datadir}/mythtv/themes/default/mv-*.png
365 %{_datadir}/mythtv/themes/default/mv_*.png
366 %{_datadir}/mythtv/video_settings.xml
367 %{_datadir}/mythtv/videomenu.xml
368 %dir %{_datadir}/mythtv/mythvideo
369 %dir %{_datadir}/mythtv/mythvideo/scripts
370 %{_datadir}/mythtv/mythvideo/scripts/README
371 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/imdb.pl
372 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/allocine.pl
375 %files -n mythweather
376 %defattr(644,root,root,755)
377 %doc mythweather/README
378 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythweather.so
379 %{_datadir}/mythtv/i18n/mythweather_*.qm
380 %{_datadir}/mythtv/mythweather
381 %{_datadir}/mythtv/themes/default/weather-ui.xml
382 %{_datadir}/mythtv/themes/default/cloudy.png
383 %{_datadir}/mythtv/themes/default/fair.png
384 %{_datadir}/mythtv/themes/default/flurries.png
385 %{_datadir}/mythtv/themes/default/fog.png
386 %{_datadir}/mythtv/themes/default/logo.png
387 %{_datadir}/mythtv/themes/default/lshowers.png
388 %{_datadir}/mythtv/themes/default/mcloudy.png
389 %{_datadir}/mythtv/themes/default/mw-*.png
390 %{_datadir}/mythtv/themes/default/mwmain.png
391 %{_datadir}/mythtv/themes/default/pcloudy.png
392 %{_datadir}/mythtv/themes/default/rainsnow.png
393 %{_datadir}/mythtv/themes/default/showers.png
394 %{_datadir}/mythtv/themes/default/snowshow.png
395 %{_datadir}/mythtv/themes/default/sunny.png
396 %{_datadir}/mythtv/themes/default/thunshowers.png
397 %{_datadir}/mythtv/themes/default/unknown.png
399 %files -n mythgallery
400 %defattr(644,root,root,755)
401 %doc mythgallery/README mythgallery/UPGRADING
402 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgallery.so
403 %{_datadir}/mythtv/themes/default/gallery-ui.xml
404 %{_datadir}/mythtv/themes/default/gallery-*.png
405 %{_datadir}/mythtv/i18n/mythgallery_*.qm
409 %defattr(644,root,root,755)
410 %doc mythgame/README mythgame/UPGRADING
411 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so
412 %{_datadir}/mythtv/games
413 #%config %{_datadir}/mythtv/games/PC/gamelist.xml
414 #%{_datadir}/xmame/screens
415 #%{_datadir}/xmame/flyers
416 %{_datadir}/mythtv/game_settings.xml
417 %{_datadir}/mythtv/themes/default/game-ui.xml
418 %{_datadir}/mythtv/i18n/mythgame_*.qm
421 %defattr(644,root,root,755)
422 %doc mythdvd/README mythdvd/UPGRADING mythdvd/AUTHORS
423 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythdvd.so
424 %{_datadir}/mythtv/dvd_settings.xml
425 %{_datadir}/mythtv/dvdmenu.xml
426 %{_datadir}/mythtv/themes/default/dvd-ui.xml
427 %{_datadir}/mythtv/themes/default/md_*.png
428 %{_datadir}/mythtv/i18n/mythdvd_*.qm
429 %attr(755,root,root) %{_bindir}/mtd
432 %defattr(644,root,root,755)
433 %doc mythnews/README mythnews/AUTHORS
434 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnews.so
435 %{_datadir}/mythtv/mythnews
436 %{_datadir}/mythtv/themes/default/news-ui.xml
437 %{_datadir}/mythtv/themes/default/news-info-bg.png
438 %{_datadir}/mythtv/i18n/mythnews_*.qm
440 %files -n mythbrowser
441 %defattr(644,root,root,755)
442 %doc mythbrowser/README mythbrowser/AUTHORS
443 %attr(755,root,root) %{_bindir}/mythbrowser
444 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so
445 %{_datadir}/mythtv/themes/default/webpage.png
446 %{_datadir}/mythtv/i18n/mythbrowser_*.qm
449 %defattr(644,root,root,755)
450 %doc mythphone/README mythphone/AUTHORS mythphone/TODO
451 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythphone.so
452 %{_datadir}/mythtv/themes/default/phone-ui.xml
453 %{_datadir}/mythtv/themes/default/webcam-ui.xml
454 %{_datadir}/mythtv/themes/default/mp_*.png
455 %{_datadir}/mythtv/themes/default/phone.png
456 %{_datadir}/mythtv/i18n/mythphone_*.qm
459 %defattr(644,root,root,755)
460 %doc mythweb/{README,TODO} mythweb/languages/*.{pl,txt}
461 %attr(750,root,http) %dir %{_sysconfdir}/mythweb
462 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/apache.conf
463 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/*.php
464 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/*.dat
465 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/htpasswd
467 %dir /var/cache/mythweb
468 %dir %attr(771,root,http) /var/cache/mythweb/image_cache
469 %dir %attr(771,root,http) /var/cache/mythweb/php_sessions