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 Summary(pl): Interfejs WWW do MythTV
207 Group: Applications/Multimedia
208 Requires: apache >= 1.3.33-2
209 Requires: php >= 3:4.2.2
210 Requires: php-mysql >= 3:4.2.2
212 %description -n mythweb
213 The web interface to MythTV.
215 %description -n mythweb -l pl
216 Interfejs WWW do MythTV.
224 find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
225 xargs grep -l /lib/ . | xargs sed -i -e '
226 s,/''usr/lib/,%{_prefix}/%{_lib}/,g
227 s,{PREFIX}/lib,{PREFIX}/%{_lib},g
230 sed -i -e 's|/mnt/store/music|/var/lib/mythmusic|' mythmusic/mythmusic/globalsettings.cpp
231 sed -i -e 's|/share/Movies/dvd|/var/lib/mythvideo|' mythvideo/mythvideo/globalsettings.cpp
232 sed -i -e 's|/mnt/cdrom:/mnt/camera|/media/cdrom:/mnt/camera|' mythgallery/mythgallery/gallerysettings.cpp
234 # include mythtv build settings
235 cp %{_datadir}/mythtv/build/config.mak .
236 sed -i -e "1iinclude(`pwd`/config.mak)" settings.pro
239 # mmx asm isn't x86_64 compatible in mythmusic
240 echo 'DEFINES -= HAVE_MMX' >> settings.pro
244 export QTDIR="%{_prefix}"
250 # --enable-opengl enable OpenGL (Music and Gallery) [default=no]
251 # --enable-transcode enable DVD ripping and transcoding [default=no]
252 # --enable-vcd enable VCD playing [default=no]
253 # --enable-exif enable reading of EXIF headers [default=no]
254 # --enable-fftw enable fftw visualizers [default=no]
255 # --enable-sdl use SDL for the synaesthesia output [default=no]
256 # --enable-aac enable AAC/MP4 audio file decompression [default=no]
257 # --enable-festival enable festival TTS Engine [default=no]
259 qmake mythplugins.pro
263 rm -rf $RPM_BUILD_ROOT
265 export QTDIR="%{_prefix}"
267 INSTALL_ROOT=$RPM_BUILD_ROOT
269 install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythvideo,pictures}
270 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens}
271 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens}
272 install -d $rpm_build_root%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
273 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens
274 cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC
277 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mythweb,%{_datadir}/mythweb/languages,/var/cache/mythweb/{image_cache,php_sessions}}
279 rm -f mythweb/themes/compact.tar.bz2
280 cp -a mythweb/*.{html,php} $RPM_BUILD_ROOT%{_datadir}/mythweb
281 cp -a mythweb/languages/*.php $RPM_BUILD_ROOT%{_datadir}/mythweb/languages
282 cp -a mythweb/{images,includes,js,themes,vxml} $RPM_BUILD_ROOT%{_datadir}/mythweb
283 cp -a mythweb/{images,includes,js,languages,themes,vxml} $RPM_BUILD_ROOT%{_datadir}/mythweb
284 cp -a mythweb/config/* $RPM_BUILD_ROOT%{_sysconfdir}/mythweb
285 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mythweb/apache.conf
286 touch $RPM_BUILD_ROOT%{_sysconfdir}/mythweb/htpasswd
289 rm -rf $RPM_BUILD_ROOT
291 %triggerin -n mythweb -- apache1 >= 1.3.33-2
292 %apache_config_install -v 1 -c %{_sysconfdir}/mythweb/apache.conf
294 %triggerun -n mythweb -- apache1 >= 1.3.33-2
295 %apache_config_uninstall -v 1
297 %triggerin -n mythweb -- apache >= 2.0.0
298 %apache_config_install -v 2 -c %{_sysconfdir}/mythweb/apache.conf
300 %triggerun -n mythweb -- apache >= 2.0.0
301 %apache_config_uninstall -v 2
304 %defattr(644,root,root,755)
307 %defattr(644,root,root,755)
308 %doc mythmusic/README mythmusic/UPGRADING mythmusic/AUTHORS mythmusic/musicdb
309 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so
311 %{_datadir}/mythtv/musicmenu.xml
312 %{_datadir}/mythtv/music_settings.xml
313 %{_datadir}/mythtv/i18n/mythmusic_*.qm
314 %{_datadir}/mythtv/themes/default/ff_button_off.png
315 %{_datadir}/mythtv/themes/default/ff_button_on.png
316 %{_datadir}/mythtv/themes/default/ff_button_pushed.png
317 %{_datadir}/mythtv/themes/default/mm_blackhole_border.png
318 %{_datadir}/mythtv/themes/default/mm_blankbutton_off.png
319 %{_datadir}/mythtv/themes/default/mm_blankbutton_on.png
320 %{_datadir}/mythtv/themes/default/mm_blankbutton_pushed.png
321 %{_datadir}/mythtv/themes/default/mm_checked.png
322 %{_datadir}/mythtv/themes/default/mm_checked_high.png
323 %{_datadir}/mythtv/themes/default/mm_down_arrow.png
324 %{_datadir}/mythtv/themes/default/mm_left_arrow.png
325 %{_datadir}/mythtv/themes/default/mm_leftright_off.png
326 %{_datadir}/mythtv/themes/default/mm_leftright_on.png
327 %{_datadir}/mythtv/themes/default/mm_leftright_pushed.png
328 %{_datadir}/mythtv/themes/default/mm_rating.png
329 %{_datadir}/mythtv/themes/default/mm_right_arrow.png
330 %{_datadir}/mythtv/themes/default/mm_unchecked.png
331 %{_datadir}/mythtv/themes/default/mm_unchecked_high.png
332 %{_datadir}/mythtv/themes/default/mm_up_arrow.png
333 %{_datadir}/mythtv/themes/default/mm_volume_background.png
334 %{_datadir}/mythtv/themes/default/mm_volume_tick.png
335 %{_datadir}/mythtv/themes/default/mm_waiting.png
336 %{_datadir}/mythtv/themes/default/music-sel-bg.png
337 %{_datadir}/mythtv/themes/default/music-ui.xml
338 %{_datadir}/mythtv/themes/default/next_button_off.png
339 %{_datadir}/mythtv/themes/default/next_button_on.png
340 %{_datadir}/mythtv/themes/default/next_button_pushed.png
341 %{_datadir}/mythtv/themes/default/pause_button_off.png
342 %{_datadir}/mythtv/themes/default/pause_button_on.png
343 %{_datadir}/mythtv/themes/default/pause_button_pushed.png
344 %{_datadir}/mythtv/themes/default/play_button_off.png
345 %{_datadir}/mythtv/themes/default/play_button_on.png
346 %{_datadir}/mythtv/themes/default/play_button_pushed.png
347 %{_datadir}/mythtv/themes/default/prev_button_off.png
348 %{_datadir}/mythtv/themes/default/prev_button_on.png
349 %{_datadir}/mythtv/themes/default/prev_button_pushed.png
350 %{_datadir}/mythtv/themes/default/rew_button_off.png
351 %{_datadir}/mythtv/themes/default/rew_button_on.png
352 %{_datadir}/mythtv/themes/default/rew_button_pushed.png
353 %{_datadir}/mythtv/themes/default/selectionbar.png
354 %{_datadir}/mythtv/themes/default/stop_button_off.png
355 %{_datadir}/mythtv/themes/default/stop_button_on.png
356 %{_datadir}/mythtv/themes/default/stop_button_pushed.png
357 %{_datadir}/mythtv/themes/default/text_button_off.png
358 %{_datadir}/mythtv/themes/default/text_button_on.png
359 %{_datadir}/mythtv/themes/default/text_button_pushed.png
360 %{_datadir}/mythtv/themes/default/track_info_background.png
363 %defattr(644,root,root,755)
364 %doc mythvideo/README mythvideo/UPGRADING mythvideo/videodb
365 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythvideo.so
366 %{_datadir}/mythtv/i18n/mythvideo_*.qm
367 %{_datadir}/mythtv/themes/default/video-ui.xml
368 %{_datadir}/mythtv/themes/default/mv-*.png
369 %{_datadir}/mythtv/themes/default/mv_*.png
370 %{_datadir}/mythtv/video_settings.xml
371 %{_datadir}/mythtv/videomenu.xml
372 %dir %{_datadir}/mythtv/mythvideo
373 %dir %{_datadir}/mythtv/mythvideo/scripts
374 %{_datadir}/mythtv/mythvideo/scripts/README
375 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/imdb.pl
376 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/allocine.pl
379 %files -n mythweather
380 %defattr(644,root,root,755)
381 %doc mythweather/README
382 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythweather.so
383 %{_datadir}/mythtv/i18n/mythweather_*.qm
384 %{_datadir}/mythtv/mythweather
385 %{_datadir}/mythtv/themes/default/weather-ui.xml
386 %{_datadir}/mythtv/themes/default/cloudy.png
387 %{_datadir}/mythtv/themes/default/fair.png
388 %{_datadir}/mythtv/themes/default/flurries.png
389 %{_datadir}/mythtv/themes/default/fog.png
390 %{_datadir}/mythtv/themes/default/logo.png
391 %{_datadir}/mythtv/themes/default/lshowers.png
392 %{_datadir}/mythtv/themes/default/mcloudy.png
393 %{_datadir}/mythtv/themes/default/mw-*.png
394 %{_datadir}/mythtv/themes/default/mwmain.png
395 %{_datadir}/mythtv/themes/default/pcloudy.png
396 %{_datadir}/mythtv/themes/default/rainsnow.png
397 %{_datadir}/mythtv/themes/default/showers.png
398 %{_datadir}/mythtv/themes/default/snowshow.png
399 %{_datadir}/mythtv/themes/default/sunny.png
400 %{_datadir}/mythtv/themes/default/thunshowers.png
401 %{_datadir}/mythtv/themes/default/unknown.png
403 %files -n mythgallery
404 %defattr(644,root,root,755)
405 %doc mythgallery/README mythgallery/UPGRADING
406 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgallery.so
407 %{_datadir}/mythtv/themes/default/gallery-ui.xml
408 %{_datadir}/mythtv/themes/default/gallery-*.png
409 %{_datadir}/mythtv/i18n/mythgallery_*.qm
413 %defattr(644,root,root,755)
414 %doc mythgame/README mythgame/UPGRADING
415 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so
416 %{_datadir}/mythtv/games
417 #%config %{_datadir}/mythtv/games/PC/gamelist.xml
418 #%{_datadir}/xmame/screens
419 #%{_datadir}/xmame/flyers
420 %{_datadir}/mythtv/game_settings.xml
421 %{_datadir}/mythtv/themes/default/game-ui.xml
422 %{_datadir}/mythtv/i18n/mythgame_*.qm
425 %defattr(644,root,root,755)
426 %doc mythdvd/README mythdvd/UPGRADING mythdvd/AUTHORS
427 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythdvd.so
428 %{_datadir}/mythtv/dvd_settings.xml
429 %{_datadir}/mythtv/dvdmenu.xml
430 %{_datadir}/mythtv/themes/default/dvd-ui.xml
431 %{_datadir}/mythtv/themes/default/md_*.png
432 %{_datadir}/mythtv/i18n/mythdvd_*.qm
433 %attr(755,root,root) %{_bindir}/mtd
436 %defattr(644,root,root,755)
437 %doc mythnews/README mythnews/AUTHORS
438 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnews.so
439 %{_datadir}/mythtv/mythnews
440 %{_datadir}/mythtv/themes/default/news-ui.xml
441 %{_datadir}/mythtv/themes/default/news-info-bg.png
442 %{_datadir}/mythtv/i18n/mythnews_*.qm
444 %files -n mythbrowser
445 %defattr(644,root,root,755)
446 %doc mythbrowser/README mythbrowser/AUTHORS
447 %attr(755,root,root) %{_bindir}/mythbrowser
448 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so
449 %{_datadir}/mythtv/themes/default/webpage.png
450 %{_datadir}/mythtv/i18n/mythbrowser_*.qm
453 %defattr(644,root,root,755)
454 %doc mythphone/README mythphone/AUTHORS mythphone/TODO
455 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythphone.so
456 %{_datadir}/mythtv/themes/default/phone-ui.xml
457 %{_datadir}/mythtv/themes/default/webcam-ui.xml
458 %{_datadir}/mythtv/themes/default/mp_*.png
459 %{_datadir}/mythtv/themes/default/phone.png
460 %{_datadir}/mythtv/i18n/mythphone_*.qm
463 %defattr(644,root,root,755)
464 %doc mythweb/{README,TODO} mythweb/languages/*.{pl,txt}
465 %attr(750,root,http) %dir %{_sysconfdir}/mythweb
466 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/apache.conf
467 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/*.php
468 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/*.dat
469 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mythweb/htpasswd
471 %dir /var/cache/mythweb
472 %dir %attr(771,root,http) /var/cache/mythweb/image_cache
473 %dir %attr(771,root,http) /var/cache/mythweb/php_sessions