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
11 Patch0: %{name}-configure.patch
12 URL: http://www.mythtv.org/
13 BuildRequires: OpenGL-devel
14 BuildRequires: SDL-devel
15 BuildRequires: XFree86-devel
16 BuildRequires: a52dec-libs-devel
17 BuildRequires: cdparanoia-III-devel
18 BuildRequires: faad2-devel >= 2.0-5.2
19 BuildRequires: fftw-devel >= 2.1.3
20 BuildRequires: flac-devel >= 1.0.4
21 BuildRequires: freetype-devel
22 BuildRequires: kdelibs-devel
23 BuildRequires: libcdaudio-devel
24 BuildRequires: libdvdcss-devel >= 1.2.7
25 BuildRequires: libdvdread-devel >= 0.9.4
26 BuildRequires: libexif-devel
27 BuildRequires: libfame-devel >= 0.9.0
28 BuildRequires: libid3tag-devel
29 BuildRequires: libmad-devel
30 BuildRequires: libmyth-devel >= 0.18.1-0.21
31 BuildRequires: libstdc++-devel
32 BuildRequires: libtiff-devel
33 BuildRequires: libvorbis-devel >= 1.0
34 BuildRequires: mjpegtools-devel >= 1.6.1
36 BuildRequires: rpm-perlprov >= 4.1-13
37 BuildRequires: sed >= 4.0
38 BuildRequires: transcode >= 0.6.8
39 BuildRequires: xvid-devel >= 1:0.9.1
40 BuildRequires: zlib-devel
50 ExclusiveArch: %{ix86} %{x8664}
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 %define api_ver %(echo %{version} | cut -d. -f1,2)
56 This is a consolidation of all the official MythTV plugins that used
57 to be distributed as separate downloads from mythtv.org.
60 Jest to zbiór wszystkich oficjalnych wtyczek MythTV, które by³y
61 wcze¶niej rozpowszechniane jako osobne pakiety na mythtv.org.
64 Summary: The music player add-on module for MythTV
65 Summary(pl): Modu³ odtwarzacza muzyki dla MythTV
66 Group: Applications/Multimedia
67 Requires: mythtv-frontend-api = %{api_ver}
69 %description -n mythmusic
70 Music add-on for MythTV.
72 %description -n mythmusic -l pl
73 Odtwarzacz muzyki dla MythTV.
76 Summary: A generic video player frontend module for MythTV
77 Summary(pl): Modu³ ogólnego interfejsu do odtwarzania obrazu dla MythTV
78 Group: Applications/Multimedia
80 Requires: mythtv-frontend-api = %{api_ver}
82 %description -n mythvideo
83 A generic video player frontend module for MythTV.
85 %description -n mythvideo -l pl
86 Modu³ ogólnego interfejsu do odtwarzania obrazu dla MythTV.
88 %package -n mythweather
89 Summary: A MythTV module that displays a weather forcast
90 Summary(pl): Modu³ MythTV wy¶wietlaj±cy prognozê pogody
91 Group: Applications/Multimedia
92 Requires: mythtv-frontend-api = %{api_ver}
94 %description -n mythweather
95 A MythTV module that displays a weather forcast.
97 %description -n mythweather -l pl
98 Modu³ MythTV wy¶wietlaj±cy prognozê pogody.
100 %package -n mythgallery
101 Summary: A gallery/slideshow module for MythTV
102 Summary(pl): Modu³ galerii/pokazu slajdów dla MythTV
103 Group: Applications/Multimedia
104 Requires: mythtv-frontend-api = %{api_ver}
106 %description -n mythgallery
107 A gallery/slideshow module for MythTV.
109 %description -n mythgallery -l pl
110 Modu³ galerii/pokazu slajdów dla MythTV.
113 Summary: A game frontend (xmame, nes, snes, pc) for MythTV
114 Summary(pl): Interfejs do gier (xmame, nes, snes, pc) dla MythTV
115 Group: Applications/Multimedia
116 Requires: mythtv-frontend-api = %{api_ver}
118 %description -n mythgame
119 A game frontend (xmame, nes, snes, pc) for MythTV.
121 %description -n mythgame -l pl
122 Interfejs do gier (xmame, nes, snes, pc) dla MythTV.
125 Summary: A DVD player module for MythTV
126 Summary(pl): Modu³ odtwarzacza DVD dla MythTV
127 Group: Applications/Multimedia
128 Requires: mythtv-frontend-api = %{api_ver}
129 Requires: transcode >= 0.6.8
131 %description -n mythdvd
132 MythDVD is a MythTV module that allows you to play DVDs on a myth-box
133 and (optionally) rip DVD's and transcode their video and audio content
134 to other (generally smaller) formats. The playing features are simply
135 myth-style wrappers for your favourite DVD playing software (mplayer,
136 ogle, xine, etc). The transcoding is based on and derived from the
137 excellent transcode package.
139 %description -n mythdvd -l pl
140 MythDVD to modu³ MythTV umo¿liwiaj±cy odtwarzanie p³yt DVD w MythTV i
141 (opcjonalnie) rippowanie ich oraz przekodowywanie obrazu i d¼wiêku do
142 innych (zwykle mniej zajmuj±cych) formatów. Mo¿liwo¶ci odtwarzania to
143 po prostu obudowanie w stylu myth dla ulubionego oprogramowania do
144 odtwarzania DVD (mplayer, ogle, xine itp.). Przekodowywanie jest
145 oparte i wywodzi siê z wspania³ego pakietu transcode.
148 Summary: A RSS News Feed plugin for MythTV
149 Summary(pl): Wtyczka czytnika nowinek RSS dla MythTV
150 Group: Applications/Multimedia
151 Requires: mythtv-frontend-api = %{api_ver}
153 %description -n mythnews
154 A RSS News Feed plugin for MythTV.
156 %description -n mythnews -l pl
157 Wtyczka czytnika nowinek RSS dla MythTV.
159 %package -n mythbrowser
160 Summary: A small web browser module for MythTV
161 Summary(pl): Modu³ ma³ej przegl±darki WWW dla MythTV
162 Group: Applications/Multimedia
163 Requires: mythtv-frontend-api = %{api_ver}
165 %description -n mythbrowser
166 MythBrowser is a full fledged web-browser (multiple tabs) to display
167 webpages in full-screen mode. Simple page navigation is possible.
168 Starting with version 0.13 it also has full support for mouse driven
169 navigation (right mouse opens and closes the popup menu).
171 MythBrowser also contains a BookmarkManager to manage the website
172 links in a simple mythplugin.
174 %description -n mythbrowser -l pl
175 MythBrowser to w pe³ni funkcjonalna przegl±darka WWW (z wieloma
176 zak³adkami) wy¶wietlaj±ca strony WWW w trybie pe³noekranowym. Mo¿liwa
177 jest prosta nawigacja po stronie. Pocz±wszy od wersji 0.13 ma pe³n±
178 obs³ugê nawigacji myszk± (prawy przycisk otwiera i zamywa wyskakuj±ce
181 MythBrowser zawiera tak¿e BookmarkManagera do zarz±dzania odno¶nikami
182 do stron w prostej wtyczce myth.
184 %package -n mythphone
185 Summary: A video conferencing module for MythTV
186 Summary(pl): Modu³ wideokonferencji dla MythTV
187 Group: Applications/Multimedia
188 Requires: mythtv-frontend-api = %{api_ver}
190 %description -n mythphone
191 Mythphone is a phone and videophone capability on Myth using the
192 standard SIP protocol. It is compatible with Microsoft XP Messenger
193 and with SIP Service Providers such as Free World Dialup
196 %description -n mythphone -l pl
197 Mythphone to funkcjonalno¶æ telefonu i wideofonu w Myth przy u¿yciu
198 standardowego protoko³u SIP. Jest kompatybilny z Microsoft XP
199 Messengerem oraz dostawcami us³ug SIP, takimi jak Free World Dialup
207 find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
208 xargs grep -l /lib/ . | xargs sed -i -e '
209 s,/usr/lib/,/usr/%{_lib}/,g
210 s,{PREFIX}/lib,{PREFIX}/%{_lib}/,g
213 sed -i -e 's|/mnt/store/music|/var/lib/mythmusic|' mythmusic/mythmusic/globalsettings.cpp
214 sed -i -e 's|/share/Movies/dvd|/var/lib/mythvideo|' mythvideo/mythvideo/globalsettings.cpp
215 sed -i -e 's|/mnt/cdrom:/mnt/camera|/media/cdrom:/mnt/camera|' mythgallery/mythgallery/gallerysettings.cpp
217 # include mythtv build settings
218 cp %{_datadir}/mythtv/build/config.mak .
219 sed -i -e '1iinclude(config.mak)' settings.pro
222 # mmx asm isn't x86_64 compatible in mythmusic
223 echo 'DEFINES -= HAVE_MMX' >> settings.pro
227 export QTDIR="%{_prefix}"
233 # --enable-opengl enable OpenGL (Music and Gallery) [default=no]
234 # --enable-transcode enable DVD ripping and transcoding [default=no]
235 # --enable-vcd enable VCD playing [default=no]
236 # --enable-exif enable reading of EXIF headers [default=no]
237 # --enable-fftw enable fftw visualizers [default=no]
238 # --enable-sdl use SDL for the synaesthesia output [default=no]
239 # --enable-aac enable AAC/MP4 audio file decompression [default=no]
240 # --enable-festival enable festival TTS Engine [default=no]
242 qmake mythplugins.pro
246 rm -rf $RPM_BUILD_ROOT
248 export QTDIR="%{_prefix}"
250 INSTALL_ROOT=$RPM_BUILD_ROOT
252 install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythvideo,pictures}
253 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens}
254 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens}
255 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
256 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens
257 cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC
260 rm -rf $RPM_BUILD_ROOT
263 %defattr(644,root,root,755)
266 %defattr(644,root,root,755)
267 %doc mythmusic/README mythmusic/UPGRADING mythmusic/AUTHORS mythmusic/musicdb
268 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so
270 %{_datadir}/mythtv/musicmenu.xml
271 %{_datadir}/mythtv/music_settings.xml
272 %{_datadir}/mythtv/i18n/mythmusic_*.qm
273 %{_datadir}/mythtv/themes/default/ff_button_off.png
274 %{_datadir}/mythtv/themes/default/ff_button_on.png
275 %{_datadir}/mythtv/themes/default/ff_button_pushed.png
276 %{_datadir}/mythtv/themes/default/mm_blackhole_border.png
277 %{_datadir}/mythtv/themes/default/mm_blankbutton_off.png
278 %{_datadir}/mythtv/themes/default/mm_blankbutton_on.png
279 %{_datadir}/mythtv/themes/default/mm_blankbutton_pushed.png
280 %{_datadir}/mythtv/themes/default/mm_checked.png
281 %{_datadir}/mythtv/themes/default/mm_checked_high.png
282 %{_datadir}/mythtv/themes/default/mm_down_arrow.png
283 %{_datadir}/mythtv/themes/default/mm_left_arrow.png
284 %{_datadir}/mythtv/themes/default/mm_leftright_off.png
285 %{_datadir}/mythtv/themes/default/mm_leftright_on.png
286 %{_datadir}/mythtv/themes/default/mm_leftright_pushed.png
287 %{_datadir}/mythtv/themes/default/mm_rating.png
288 %{_datadir}/mythtv/themes/default/mm_right_arrow.png
289 %{_datadir}/mythtv/themes/default/mm_unchecked.png
290 %{_datadir}/mythtv/themes/default/mm_unchecked_high.png
291 %{_datadir}/mythtv/themes/default/mm_up_arrow.png
292 %{_datadir}/mythtv/themes/default/mm_volume_background.png
293 %{_datadir}/mythtv/themes/default/mm_volume_tick.png
294 %{_datadir}/mythtv/themes/default/mm_waiting.png
295 %{_datadir}/mythtv/themes/default/music-sel-bg.png
296 %{_datadir}/mythtv/themes/default/music-ui.xml
297 %{_datadir}/mythtv/themes/default/next_button_off.png
298 %{_datadir}/mythtv/themes/default/next_button_on.png
299 %{_datadir}/mythtv/themes/default/next_button_pushed.png
300 %{_datadir}/mythtv/themes/default/pause_button_off.png
301 %{_datadir}/mythtv/themes/default/pause_button_on.png
302 %{_datadir}/mythtv/themes/default/pause_button_pushed.png
303 %{_datadir}/mythtv/themes/default/play_button_off.png
304 %{_datadir}/mythtv/themes/default/play_button_on.png
305 %{_datadir}/mythtv/themes/default/play_button_pushed.png
306 %{_datadir}/mythtv/themes/default/prev_button_off.png
307 %{_datadir}/mythtv/themes/default/prev_button_on.png
308 %{_datadir}/mythtv/themes/default/prev_button_pushed.png
309 %{_datadir}/mythtv/themes/default/rew_button_off.png
310 %{_datadir}/mythtv/themes/default/rew_button_on.png
311 %{_datadir}/mythtv/themes/default/rew_button_pushed.png
312 %{_datadir}/mythtv/themes/default/selectionbar.png
313 %{_datadir}/mythtv/themes/default/stop_button_off.png
314 %{_datadir}/mythtv/themes/default/stop_button_on.png
315 %{_datadir}/mythtv/themes/default/stop_button_pushed.png
316 %{_datadir}/mythtv/themes/default/text_button_off.png
317 %{_datadir}/mythtv/themes/default/text_button_on.png
318 %{_datadir}/mythtv/themes/default/text_button_pushed.png
319 %{_datadir}/mythtv/themes/default/track_info_background.png
322 %defattr(644,root,root,755)
323 %doc mythvideo/README mythvideo/UPGRADING mythvideo/videodb
324 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythvideo.so
325 %{_datadir}/mythtv/i18n/mythvideo_*.qm
326 %{_datadir}/mythtv/themes/default/video-ui.xml
327 %{_datadir}/mythtv/themes/default/mv-*.png
328 %{_datadir}/mythtv/themes/default/mv_*.png
329 %{_datadir}/mythtv/video_settings.xml
330 %{_datadir}/mythtv/videomenu.xml
331 %dir %{_datadir}/mythtv/mythvideo
332 %dir %{_datadir}/mythtv/mythvideo/scripts
333 %{_datadir}/mythtv/mythvideo/scripts/README
334 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/imdb.pl
335 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/allocine.pl
338 %files -n mythweather
339 %defattr(644,root,root,755)
340 %doc mythweather/README
341 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythweather.so
342 %{_datadir}/mythtv/i18n/mythweather_*.qm
343 %{_datadir}/mythtv/mythweather
344 %{_datadir}/mythtv/themes/default/weather-ui.xml
345 %{_datadir}/mythtv/themes/default/cloudy.png
346 %{_datadir}/mythtv/themes/default/fair.png
347 %{_datadir}/mythtv/themes/default/flurries.png
348 %{_datadir}/mythtv/themes/default/fog.png
349 %{_datadir}/mythtv/themes/default/logo.png
350 %{_datadir}/mythtv/themes/default/lshowers.png
351 %{_datadir}/mythtv/themes/default/mcloudy.png
352 %{_datadir}/mythtv/themes/default/mw-*.png
353 %{_datadir}/mythtv/themes/default/mwmain.png
354 %{_datadir}/mythtv/themes/default/pcloudy.png
355 %{_datadir}/mythtv/themes/default/rainsnow.png
356 %{_datadir}/mythtv/themes/default/showers.png
357 %{_datadir}/mythtv/themes/default/snowshow.png
358 %{_datadir}/mythtv/themes/default/sunny.png
359 %{_datadir}/mythtv/themes/default/thunshowers.png
360 %{_datadir}/mythtv/themes/default/unknown.png
362 %files -n mythgallery
363 %defattr(644,root,root,755)
364 %doc mythgallery/README mythgallery/UPGRADING
365 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgallery.so
366 %{_datadir}/mythtv/themes/default/gallery-ui.xml
367 %{_datadir}/mythtv/themes/default/gallery-*.png
368 %{_datadir}/mythtv/i18n/mythgallery_*.qm
372 %defattr(644,root,root,755)
373 %doc mythgame/README mythgame/UPGRADING
374 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so
375 %{_datadir}/mythtv/games
376 #%config %{_datadir}/mythtv/games/PC/gamelist.xml
377 #%{_datadir}/xmame/screens
378 #%{_datadir}/xmame/flyers
379 %{_datadir}/mythtv/game_settings.xml
380 %{_datadir}/mythtv/themes/default/game-ui.xml
381 %{_datadir}/mythtv/i18n/mythgame_*.qm
384 %defattr(644,root,root,755)
385 %doc mythdvd/README mythdvd/UPGRADING mythdvd/AUTHORS
386 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythdvd.so
387 %{_datadir}/mythtv/dvd_settings.xml
388 %{_datadir}/mythtv/dvdmenu.xml
389 %{_datadir}/mythtv/themes/default/dvd-ui.xml
390 %{_datadir}/mythtv/themes/default/md_*.png
391 %{_datadir}/mythtv/i18n/mythdvd_*.qm
392 %attr(755,root,root) %{_bindir}/mtd
395 %defattr(644,root,root,755)
396 %doc mythnews/README mythnews/AUTHORS
397 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnews.so
398 %{_datadir}/mythtv/mythnews
399 %{_datadir}/mythtv/themes/default/news-ui.xml
400 %{_datadir}/mythtv/themes/default/news-info-bg.png
401 %{_datadir}/mythtv/i18n/mythnews_*.qm
403 %files -n mythbrowser
404 %defattr(644,root,root,755)
405 %doc mythbrowser/README mythbrowser/AUTHORS
406 %attr(755,root,root) %{_bindir}/mythbrowser
407 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so
408 %{_datadir}/mythtv/themes/default/webpage.png
409 %{_datadir}/mythtv/i18n/mythbrowser_*.qm
412 %defattr(644,root,root,755)
413 %doc mythphone/README mythphone/AUTHORS mythphone/TODO
414 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythphone.so
415 %{_datadir}/mythtv/themes/default/phone-ui.xml
416 %{_datadir}/mythtv/themes/default/webcam-ui.xml
417 %{_datadir}/mythtv/themes/default/mp_*.png
418 %{_datadir}/mythtv/themes/default/phone.png
419 %{_datadir}/mythtv/i18n/mythphone_*.qm