]>
Commit | Line | Data |
---|---|---|
513b080c | 1 | # disable mythmusic,mythphone due to https://bugs.pld-linux.org/?do=details&id=5687 |
a8181a32 ER |
2 | %bcond_without mythmusic |
3 | %bcond_without mythphone | |
123e986b | 4 | # |
a8181a32 | 5 | %include /usr/lib/rpm/macros.perl |
d78b97e1 ER |
6 | Summary: Main MythTV plugins. |
7 | Name: mythplugins | |
8 | Version: 0.18.1 | |
a8181a32 | 9 | Release: 0.112.9 |
69870715 | 10 | License: GPL v2 |
d78b97e1 ER |
11 | Group: Applications/Multimedia |
12 | URL: http://www.mythtv.org/ | |
13 | Source0: http://www.mythtv.org/mc/%{name}-%{version}.tar.bz2 | |
14 | # Source0-md5: 1d94d19e2a13c24a408ced9b6c4f5b47 | |
513b080c | 15 | Patch0: %{name}-configure.patch |
a8181a32 ER |
16 | BuildRequires: rpm-perlprov >= 4.1-13 |
17 | BuildRequires: sed >= 4.0 | |
d78b97e1 | 18 | BuildRequires: SDL-devel |
69870715 | 19 | BuildRequires: X11-OpenGL-devel |
d78b97e1 | 20 | BuildRequires: XFree86-devel |
69870715 ER |
21 | BuildRequires: a52dec-libs-devel |
22 | BuildRequires: cdparanoia-III-devel | |
23 | BuildRequires: faad2-devel >= 2.0-5.2 | |
24 | BuildRequires: fftw-devel >= 2.1.3 | |
d78b97e1 | 25 | BuildRequires: flac-devel >= 1.0.4 |
69870715 ER |
26 | BuildRequires: freetype-devel |
27 | BuildRequires: kdelibs-devel | |
28 | BuildRequires: libcdaudio-devel | |
29 | BuildRequires: libdvdcss-devel >= 1.2.7 | |
30 | BuildRequires: libdvdread-devel >= 0.9.4 | |
31 | BuildRequires: libexif-devel | |
32 | BuildRequires: libfame-devel >= 0.9.0 | |
d78b97e1 ER |
33 | BuildRequires: libid3tag-devel |
34 | BuildRequires: libmad-devel | |
8ae933f5 | 35 | BuildRequires: libmyth-devel >= 0.18.1-0.21 |
69870715 | 36 | BuildRequires: libstdc++-devel |
d78b97e1 | 37 | BuildRequires: libtiff-devel |
69870715 | 38 | BuildRequires: libvorbis-devel >= 1.0 |
d78b97e1 | 39 | BuildRequires: mjpegtools-devel >= 1.6.1 |
69870715 | 40 | BuildRequires: nasm |
d78b97e1 | 41 | BuildRequires: transcode >= 0.6.8 |
69870715 ER |
42 | BuildRequires: xvid-devel >= 1:0.9.1 |
43 | BuildRequires: zlib-devel | |
44 | Requires: mythbrowser | |
45 | Requires: mythdvd | |
46 | Requires: mythgallery | |
47 | Requires: mythgame | |
b0c55580 | 48 | %{?with_mythmusic:Requires: mythmusic} |
69870715 | 49 | Requires: mythnews |
513b080c | 50 | %{?with_mythphone:Requires: mythphone} |
b0c55580 | 51 | Requires: mythvideo |
69870715 | 52 | Requires: mythweather |
d78b97e1 ER |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
69870715 ER |
55 | %define api_ver %(echo %{version} | cut -d. -f1,2) |
56 | ||
d78b97e1 ER |
57 | %description |
58 | This is a consolidation of all the official MythTV plugins that used | |
59 | to be distributed as separate downloads from mythtv.org. | |
60 | ||
61 | %package -n mythmusic | |
62 | Summary: The music player add-on module for MythTV. | |
63 | Group: Applications/Multimedia | |
69870715 | 64 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
65 | |
66 | %description -n mythmusic | |
67 | Music add-on for mythtv. | |
68 | ||
69 | %package -n mythvideo | |
70 | Summary: A generic video player frontend module for MythTV. | |
71 | Group: Applications/Multimedia | |
72 | Requires: mplayer | |
69870715 | 73 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
74 | |
75 | %description -n mythvideo | |
76 | A generic video player frontend module for MythTV. | |
77 | ||
78 | %package -n mythweather | |
79 | Summary: A MythTV module that displays a weather forcast. | |
80 | Group: Applications/Multimedia | |
69870715 | 81 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
82 | |
83 | %description -n mythweather | |
84 | A MythTV module that displays a weather forcast. | |
85 | ||
86 | %package -n mythgallery | |
87 | Summary: A gallery/slideshow module for MythTV. | |
88 | Group: Applications/Multimedia | |
69870715 | 89 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
90 | |
91 | %description -n mythgallery | |
92 | A gallery/slideshow module for MythTV. | |
93 | ||
94 | %package -n mythgame | |
95 | Summary: A game frontend (xmame, nes, snes, pc) for MythTV. | |
96 | Group: Applications/Multimedia | |
69870715 | 97 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
98 | |
99 | %description -n mythgame | |
100 | A game frontend (xmame, nes, snes, pc) for MythTV. | |
101 | ||
102 | %package -n mythdvd | |
103 | Summary: A DVD player module for MythTV. | |
104 | Group: Applications/Multimedia | |
69870715 | 105 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
106 | Requires: transcode >= 0.6.8 |
107 | ||
108 | %description -n mythdvd | |
109 | MythDVD is a MythTV module that allows you to play DVD's on a myth-box | |
110 | and (optionally) rip DVD's and transcode their video and audio content | |
111 | to other (generally smaller) formats. The playing features are simply | |
112 | myth-style wrappers for your favourite DVD playing software (mplayer, | |
113 | ogle, xine, etc). The transcoding is based on and derived from the | |
114 | excellent transcode package. | |
115 | ||
116 | %package -n mythnews | |
117 | Summary: A RSS News Feed Plugin for MythTV. | |
118 | Group: Applications/Multimedia | |
69870715 | 119 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
120 | |
121 | %description -n mythnews | |
122 | ||
123 | %package -n mythbrowser | |
124 | Summary: A small web browser module for MythTV. | |
125 | Group: Applications/Multimedia | |
69870715 | 126 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
127 | |
128 | %description -n mythbrowser | |
129 | MythBrowser is a full fledged web-browser (multiple tabs) to display | |
130 | webpages in full-screen mode. Simple page navigation is possible. | |
131 | Starting with version 0.13 it also has full support for mouse driven | |
132 | navigation (right mouse opens and clos es the popup menu). | |
133 | ||
134 | MythBrowser also contains a BookmarkManager to manage the website | |
135 | links in a simple mythplugin. | |
136 | ||
137 | %package -n mythphone | |
138 | Summary: A video conferencing module for MythTV. | |
139 | Group: Applications/Multimedia | |
69870715 | 140 | Requires: mythtv-frontend-api = %{api_ver} |
d78b97e1 ER |
141 | |
142 | %description -n mythphone | |
143 | Mythphone is a phone and videophone capability on MYTH using the | |
144 | standard SIP protocol. It is compatible with Microsoft XP Messenger | |
145 | and with SIP Service Providers such as Free World Dialup | |
146 | (fwd.pulver.com). | |
147 | ||
148 | %prep | |
149 | %setup -q | |
513b080c | 150 | %patch0 -p1 |
d78b97e1 | 151 | |
69870715 ER |
152 | # lib64 fix |
153 | find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \ | |
123e986b ER |
154 | xargs grep -l /lib/ . | xargs sed -i -e ' |
155 | s,/usr/lib/,/usr/%{_lib}/,g | |
156 | s,{PREFIX}/lib,{PREFIX}/%{_lib}/,g | |
157 | ' | |
d78b97e1 | 158 | |
69870715 ER |
159 | # include mythtv build settings |
160 | cp %{_datadir}/mythtv/build/config.mak . | |
161 | sed -i -e '1iinclude(config.mak)' settings.pro | |
d78b97e1 | 162 | |
a8181a32 ER |
163 | %ifarch %{x8664} |
164 | # mmx asm isn't x86_64 compatible in mythmusic | |
165 | echo 'DEFINES -= HAVE_MMX' >> settings.pro | |
166 | %endif | |
167 | ||
d78b97e1 | 168 | # Fix /mnt/store -> /var/lib/mythmusic |
123e986b | 169 | sed -i -e's|/mnt/store/music|/var/lib/mythmusic|' mythmusic/mythmusic/globalsettings.cpp |
d78b97e1 | 170 | # Fix /mnt/store -> /var/lib/mythmusic |
123e986b | 171 | sed -i -e's|/share/Movies/dvd|/var/lib/mythvideo|' mythvideo/mythvideo/globalsettings.cpp |
d78b97e1 ER |
172 | |
173 | %build | |
69870715 | 174 | export QTDIR="%{_prefix}" |
123e986b | 175 | # Not gnu configure |
69870715 ER |
176 | %configure \ |
177 | --enable-all \ | |
178 | --disable-festival \ | |
513b080c ER |
179 | %{!?with_mythmusic:--disable-mythmusic} \ |
180 | %{!?with_mythphone:--disable-mythphone} | |
69870715 | 181 | |
69870715 | 182 | # --enable-opengl enable OpenGL (Music and Gallery) [default=no] |
69870715 ER |
183 | # --enable-transcode enable DVD ripping and transcoding [default=no] |
184 | # --enable-vcd enable VCD playing [default=no] | |
69870715 | 185 | # --enable-exif enable reading of EXIF headers [default=no] |
69870715 ER |
186 | # --enable-fftw enable fftw visualizers [default=no] |
187 | # --enable-sdl use SDL for the synaesthesia output [default=no] | |
188 | # --enable-aac enable AAC/MP4 audio file decompression [default=no] | |
69870715 ER |
189 | # --enable-festival enable festival TTS Engine [default=no] |
190 | ||
d78b97e1 ER |
191 | qmake mythplugins.pro |
192 | %{__make} | |
d78b97e1 ER |
193 | |
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
513b080c ER |
196 | |
197 | export QTDIR="%{_prefix}" | |
d78b97e1 | 198 | %{__make} install INSTALL_ROOT=$RPM_BUILD_ROOT |
d78b97e1 | 199 | |
123e986b | 200 | install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythvideo,pictures} |
d78b97e1 ER |
201 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens} |
202 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens} | |
123e986b | 203 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs} |
d78b97e1 | 204 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens |
a8181a32 | 205 | cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC |
d78b97e1 ER |
206 | |
207 | %clean | |
69870715 | 208 | rm -rf $RPM_BUILD_ROOT |
d78b97e1 ER |
209 | |
210 | %files | |
211 | %defattr(644,root,root,755) | |
d78b97e1 | 212 | |
513b080c | 213 | %if %{with mythmusic} |
d78b97e1 ER |
214 | %files -n mythmusic |
215 | %defattr(644,root,root,755) | |
b0c55580 | 216 | %doc mythmusic/README mythmusic/UPGRADING mythmusic/AUTHORS mythmusic/musicdb |
d78b97e1 | 217 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so |
513b080c | 218 | /var/lib/mythmusic |
d78b97e1 ER |
219 | %{_datadir}/mythtv/musicmenu.xml |
220 | %{_datadir}/mythtv/music_settings.xml | |
221 | %{_datadir}/mythtv/i18n/mythmusic_*.qm | |
222 | %{_datadir}/mythtv/themes/default/ff_button_off.png | |
223 | %{_datadir}/mythtv/themes/default/ff_button_on.png | |
224 | %{_datadir}/mythtv/themes/default/ff_button_pushed.png | |
225 | %{_datadir}/mythtv/themes/default/mm_blackhole_border.png | |
226 | %{_datadir}/mythtv/themes/default/mm_blankbutton_off.png | |
227 | %{_datadir}/mythtv/themes/default/mm_blankbutton_on.png | |
228 | %{_datadir}/mythtv/themes/default/mm_blankbutton_pushed.png | |
229 | %{_datadir}/mythtv/themes/default/mm_checked.png | |
230 | %{_datadir}/mythtv/themes/default/mm_checked_high.png | |
231 | %{_datadir}/mythtv/themes/default/mm_down_arrow.png | |
232 | %{_datadir}/mythtv/themes/default/mm_left_arrow.png | |
233 | %{_datadir}/mythtv/themes/default/mm_leftright_off.png | |
234 | %{_datadir}/mythtv/themes/default/mm_leftright_on.png | |
235 | %{_datadir}/mythtv/themes/default/mm_leftright_pushed.png | |
236 | %{_datadir}/mythtv/themes/default/mm_rating.png | |
237 | %{_datadir}/mythtv/themes/default/mm_right_arrow.png | |
238 | %{_datadir}/mythtv/themes/default/mm_unchecked.png | |
239 | %{_datadir}/mythtv/themes/default/mm_unchecked_high.png | |
240 | %{_datadir}/mythtv/themes/default/mm_up_arrow.png | |
241 | %{_datadir}/mythtv/themes/default/mm_volume_background.png | |
242 | %{_datadir}/mythtv/themes/default/mm_volume_tick.png | |
243 | %{_datadir}/mythtv/themes/default/mm_waiting.png | |
244 | %{_datadir}/mythtv/themes/default/music-sel-bg.png | |
245 | %{_datadir}/mythtv/themes/default/music-ui.xml | |
246 | %{_datadir}/mythtv/themes/default/next_button_off.png | |
247 | %{_datadir}/mythtv/themes/default/next_button_on.png | |
248 | %{_datadir}/mythtv/themes/default/next_button_pushed.png | |
249 | %{_datadir}/mythtv/themes/default/pause_button_off.png | |
250 | %{_datadir}/mythtv/themes/default/pause_button_on.png | |
251 | %{_datadir}/mythtv/themes/default/pause_button_pushed.png | |
252 | %{_datadir}/mythtv/themes/default/play_button_off.png | |
253 | %{_datadir}/mythtv/themes/default/play_button_on.png | |
254 | %{_datadir}/mythtv/themes/default/play_button_pushed.png | |
255 | %{_datadir}/mythtv/themes/default/prev_button_off.png | |
256 | %{_datadir}/mythtv/themes/default/prev_button_on.png | |
257 | %{_datadir}/mythtv/themes/default/prev_button_pushed.png | |
258 | %{_datadir}/mythtv/themes/default/rew_button_off.png | |
259 | %{_datadir}/mythtv/themes/default/rew_button_on.png | |
260 | %{_datadir}/mythtv/themes/default/rew_button_pushed.png | |
261 | %{_datadir}/mythtv/themes/default/selectionbar.png | |
262 | %{_datadir}/mythtv/themes/default/stop_button_off.png | |
263 | %{_datadir}/mythtv/themes/default/stop_button_on.png | |
264 | %{_datadir}/mythtv/themes/default/stop_button_pushed.png | |
265 | %{_datadir}/mythtv/themes/default/text_button_off.png | |
266 | %{_datadir}/mythtv/themes/default/text_button_on.png | |
267 | %{_datadir}/mythtv/themes/default/text_button_pushed.png | |
268 | %{_datadir}/mythtv/themes/default/track_info_background.png | |
513b080c | 269 | %endif |
d78b97e1 ER |
270 | |
271 | %files -n mythvideo | |
272 | %defattr(644,root,root,755) | |
b0c55580 | 273 | %doc mythvideo/README mythvideo/UPGRADING mythvideo/videodb |
d78b97e1 ER |
274 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythvideo.so |
275 | %{_datadir}/mythtv/i18n/mythvideo_*.qm | |
276 | %{_datadir}/mythtv/themes/default/video-ui.xml | |
277 | %{_datadir}/mythtv/themes/default/mv-*.png | |
278 | %{_datadir}/mythtv/themes/default/mv_*.png | |
279 | %{_datadir}/mythtv/video_settings.xml | |
280 | %{_datadir}/mythtv/videomenu.xml | |
a8181a32 ER |
281 | %dir %{_datadir}/mythtv/mythvideo |
282 | %dir %{_datadir}/mythtv/mythvideo/scripts | |
d78b97e1 | 283 | %{_datadir}/mythtv/mythvideo/scripts/README |
a8181a32 ER |
284 | %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/imdb.pl |
285 | %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/allocine.pl | |
513b080c | 286 | /var/lib/mythvideo |
d78b97e1 ER |
287 | |
288 | %files -n mythweather | |
289 | %defattr(644,root,root,755) | |
b0c55580 | 290 | %doc mythweather/README |
d78b97e1 ER |
291 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythweather.so |
292 | %{_datadir}/mythtv/i18n/mythweather_*.qm | |
293 | %{_datadir}/mythtv/mythweather | |
294 | %{_datadir}/mythtv/themes/default/weather-ui.xml | |
295 | %{_datadir}/mythtv/themes/default/cloudy.png | |
296 | %{_datadir}/mythtv/themes/default/fair.png | |
297 | %{_datadir}/mythtv/themes/default/flurries.png | |
298 | %{_datadir}/mythtv/themes/default/fog.png | |
299 | %{_datadir}/mythtv/themes/default/logo.png | |
300 | %{_datadir}/mythtv/themes/default/lshowers.png | |
301 | %{_datadir}/mythtv/themes/default/mcloudy.png | |
302 | %{_datadir}/mythtv/themes/default/mw-*.png | |
303 | %{_datadir}/mythtv/themes/default/mwmain.png | |
304 | %{_datadir}/mythtv/themes/default/pcloudy.png | |
305 | %{_datadir}/mythtv/themes/default/rainsnow.png | |
306 | %{_datadir}/mythtv/themes/default/showers.png | |
307 | %{_datadir}/mythtv/themes/default/snowshow.png | |
308 | %{_datadir}/mythtv/themes/default/sunny.png | |
309 | %{_datadir}/mythtv/themes/default/thunshowers.png | |
310 | %{_datadir}/mythtv/themes/default/unknown.png | |
311 | ||
312 | %files -n mythgallery | |
313 | %defattr(644,root,root,755) | |
b0c55580 | 314 | %doc mythgallery/README mythgallery/UPGRADING |
d78b97e1 ER |
315 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgallery.so |
316 | %{_datadir}/mythtv/themes/default/gallery-ui.xml | |
317 | %{_datadir}/mythtv/themes/default/gallery-*.png | |
318 | %{_datadir}/mythtv/i18n/mythgallery_*.qm | |
513b080c | 319 | /var/lib/pictures |
d78b97e1 ER |
320 | |
321 | %files -n mythgame | |
322 | %defattr(644,root,root,755) | |
323 | %doc mythgame/README mythgame/UPGRADING | |
324 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so | |
325 | %{_datadir}/mythtv/games | |
513b080c | 326 | #%config %{_datadir}/mythtv/games/PC/gamelist.xml |
a8181a32 ER |
327 | #%{_datadir}/xmame/screens |
328 | #%{_datadir}/xmame/flyers | |
d78b97e1 ER |
329 | %{_datadir}/mythtv/game_settings.xml |
330 | %{_datadir}/mythtv/themes/default/game-ui.xml | |
331 | %{_datadir}/mythtv/i18n/mythgame_*.qm | |
332 | ||
333 | %files -n mythdvd | |
334 | %defattr(644,root,root,755) | |
b0c55580 | 335 | %doc mythdvd/README mythdvd/UPGRADING mythdvd/AUTHORS |
d78b97e1 ER |
336 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythdvd.so |
337 | %{_datadir}/mythtv/dvd_settings.xml | |
338 | %{_datadir}/mythtv/dvdmenu.xml | |
339 | %{_datadir}/mythtv/themes/default/dvd-ui.xml | |
340 | %{_datadir}/mythtv/themes/default/md_*.png | |
341 | %{_datadir}/mythtv/i18n/mythdvd_*.qm | |
342 | %attr(755,root,root) %{_bindir}/mtd | |
343 | ||
344 | %files -n mythnews | |
345 | %defattr(644,root,root,755) | |
123e986b | 346 | %doc mythnews/README mythnews/AUTHORS |
d78b97e1 ER |
347 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnews.so |
348 | %{_datadir}/mythtv/mythnews | |
349 | %{_datadir}/mythtv/themes/default/news-ui.xml | |
350 | %{_datadir}/mythtv/themes/default/news-info-bg.png | |
351 | %{_datadir}/mythtv/i18n/mythnews_*.qm | |
352 | ||
353 | %files -n mythbrowser | |
354 | %defattr(644,root,root,755) | |
b0c55580 | 355 | %doc mythbrowser/README mythbrowser/AUTHORS |
d78b97e1 ER |
356 | %attr(755,root,root) %{_bindir}/mythbrowser |
357 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so | |
358 | %{_datadir}/mythtv/themes/default/webpage.png | |
359 | %{_datadir}/mythtv/i18n/mythbrowser_*.qm | |
360 | ||
513b080c | 361 | %if %{with mythphone} |
d78b97e1 ER |
362 | %files -n mythphone |
363 | %defattr(644,root,root,755) | |
b0c55580 | 364 | %doc mythphone/README mythphone/AUTHORS mythphone/TODO |
d78b97e1 ER |
365 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythphone.so |
366 | %{_datadir}/mythtv/themes/default/phone-ui.xml | |
367 | %{_datadir}/mythtv/themes/default/webcam-ui.xml | |
368 | %{_datadir}/mythtv/themes/default/mp_*.png | |
369 | %{_datadir}/mythtv/themes/default/phone.png | |
370 | %{_datadir}/mythtv/i18n/mythphone_*.qm | |
513b080c | 371 | %endif |