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