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