/[packages]/cauldron/mythplugins/current/SPECS/mythplugins.spec
ViewVC logotype

Contents of /cauldron/mythplugins/current/SPECS/mythplugins.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16532 - (show annotations) (download)
Thu Jan 13 21:12:31 2011 UTC (10 years, 8 months ago) by colin
File size: 13486 byte(s)
imported package mythplugins
1
2 %define name mythplugins
3 %define version 0.24
4 %define fixes 27174
5 %define rel 3
6
7 %define required_myth 0.24
8
9 %define release %mkrel %fixes.%rel
10
11 %define build_plf 0
12
13 %bcond_with plf
14 %if %with plf
15 %define distsuffix plf
16 %define build_plf 1
17 %endif
18
19 BuildRequires: mesagl-devel
20 BuildRequires: libmyth-devel >= %{required_myth}
21 BuildRequires: python-mythtv >= %{required_myth}
22 BuildRequires: libvisual-devel
23 BuildRequires: fftw-devel
24 BuildRequires: SDL-devel
25 BuildRequires: libdvdread-devel
26 BuildRequires: libexif-devel
27 BuildRequires: id3tag-devel
28 BuildRequires: libvorbis-devel
29 BuildRequires: libflac-devel
30 BuildRequires: libcdaudio-devel
31 BuildRequires: libcdda-devel
32 BuildRequires: tiff-devel
33 BuildRequires: mysql-devel
34 BuildRequires: taglib-devel
35 BuildRequires: python-curl
36 BuildRequires: python-oauth
37 BuildRequires: perl-XML-XPath
38 BuildRequires: perl-Image-Size
39 BuildRequires: perl-Date-Manip
40 BuildRequires: perl-DateTime-Format-ISO8601
41 BuildRequires: perl-SOAP-Lite
42 BuildRequires: perl-XML-Simple
43 %if %build_plf
44 BuildRequires: lame-devel
45 BuildRequires: libfaad2-devel
46 BuildRequires: libfaad2-static-devel
47 %endif
48 # (cg) Remove these once they are required in the python-mythtv package
49 BuildRequires: python-lxml
50 BuildRequires: python-mysql
51 # (cg) Ditto for the perl-DateTime-Format-ISO pkg
52 BuildRequires: perl(Class::Factory::Util)
53
54
55 Summary: Official MythTV plugins
56 Name: %{name}
57 Version: %{version}
58 Release: %{release}
59 URL: http://www.mythtv.org/
60 License: GPL
61 Group: Video
62 Source0: %{name}-%{version}-%{fixes}.tar.bz2
63 Patch1: mythplugins-0.24-nolame.patch
64
65 BuildRoot: %{_tmppath}/%{name}-root
66
67 %description
68 Mythplugins for MythTV.
69
70 %if %with plf
71 This package is in PLF because it contains software that supports
72 codecs that may be covered by software patents.
73 %endif
74
75 %package -n mythtv-plugin-browser
76 Summary: Full web browser for MythTV
77 URL: http://www.mythtv.org/
78 Group: Video
79 Obsoletes: mythbrowser < 0.20a-7
80 Requires: mythtv-frontend >= %{required_myth}
81
82 %description -n mythtv-plugin-browser
83 MythBrowser is a full web browser for MythTV.
84
85 %package -n mythtv-plugin-gallery
86 Summary: Gallery/slideshow module for MythTV
87 Group: Video
88 Requires: mythtv-frontend >= %{required_myth}
89 Obsoletes: mythgallery < 0.20a-7
90
91 %description -n mythtv-plugin-gallery
92 A gallery/slideshow module for MythTV.
93
94 %package -n mythtv-plugin-game
95 Summary: Game frontend for MythTV
96 Group: Video
97 Requires: mythtv-frontend >= %{required_myth}
98 Obsoletes: mythgame < 0.20a-7
99
100 %description -n mythtv-plugin-game
101 A game frontend for MythTV.
102
103 %package -n mythtv-plugin-music
104 Summary: The music player add-on module for MythTV
105 Group: Video
106 #Requires: cdparanoia
107 Requires: mythtv-frontend >= %{required_myth}
108 Obsoletes: mythmusic < 0.20a-7
109
110 %description -n mythtv-plugin-music
111 The music player add-on module for MythTV.
112
113 %if %with plf
114 This package is in PLF because it contains software that supports
115 codecs that may be covered by software patents.
116 %endif
117
118 %package -n mythtv-plugin-netvision
119 Summary: NetVision for MythTV
120 Group: Video
121 Requires: mythtv-frontend >= %{required_myth}
122
123 %description -n mythtv-plugin-netvision
124 NetVision for MythTV. View popular media website content.
125
126 %package -n mythtv-plugin-news
127 Summary: RSS News feed plugin for MythTV
128 Group: Video
129 Requires: mythtv-frontend >= %{required_myth}
130 Obsoletes: mythnews < 0.20a-7
131
132 %description -n mythtv-plugin-news
133 An RSS News feed plugin for MythTV.
134
135 %package -n mythtv-plugin-weather
136 Summary: MythTV module that displays a weather forecast
137 Group: Video
138 Requires: mythtv-frontend >= %{required_myth}
139 Obsoletes: mythweather < 0.20a-7
140
141 %description -n mythtv-plugin-weather
142 A MythTV module that displays a weather forcast.
143
144 %package -n mythtv-mythweb
145 Summary: The web interface to MythTV
146 Group: Video
147 Requires: mythtv-backend >= %{required_myth}
148 Requires: mod_php >= 2.0.54
149 Requires: php-mysql
150 %if %mdkversion < 201010
151 Requires(post): rpm-helper
152 Requires(postun): rpm-helper
153 %endif
154 Obsoletes: mythweb < 0.20a-7
155 # Requires autofinder is confused, requires nonexistent packages
156 %define _requires_exceptions pear*
157
158 %description -n mythtv-mythweb
159 The web interface to MythTV.
160
161 %package -n mythtv-plugin-video
162 Summary: Generic video/DVD player frontend module for MythTV
163 Group: Video
164 Requires: mythtv-frontend >= %{required_myth}
165 Requires: mplayer
166 %if %build_plf
167 Requires: transcode
168 Requires: %mklibname dvdcss 2
169 %endif
170 Obsoletes: mythvideo < 0.20a-7
171 Provides: mythtv-plugin-dvd = %{version}-%{release}
172 Obsoletes: mythtv-plugin-dvd < %{version}-%{release}
173
174
175 %description -n mythtv-plugin-video
176 A generic video and DVD player frontend module for MythTV.
177
178 %package -n mythtv-plugin-zoneminder
179 Summary: Security camera plugin for MythTV
180 Group: Video
181 Requires: mythtv-frontend >= %{required_myth}
182
183 %description -n mythtv-plugin-zoneminder
184 A security camera plugin for MythTV.
185
186 %package -n mythtv-plugin-archive
187 Summary: Creates DVDs from your recorded shows
188 Group: Video
189 Requires: dvd+rw-tools
190 Requires: dvdauthor
191 Requires: ffmpeg
192 Requires: mjpegtools
193 Requires: python-imaging
194 Requires: python-mysql
195 Requires: mythtv-frontend >= %{required_myth}
196 %if %build_plf
197 Requires: transcode
198 %endif
199 %if %mdkversion >= 200710
200 Requires: cdrkit-genisoimage
201 %else
202 Requires: mkisofs
203 %endif
204 Obsoletes: mytharchive < 0.20a-7
205
206 %description -n mythtv-plugin-archive
207 MythArchive is a plugin for MythTV that lets you create DVDs
208 from your recorded shows, MythVideo files and any video files
209 available on your system. It can also archive recordings in a
210 proprietary format that archives not only the file but also all the
211 associated metadata like title, description and cut list information
212 which will mean you can create backups of myth recordings which can
213 later be restored or it will also allow you to move recordings
214 between myth systems without losing any of the metadata. It is a
215 complete rewrite of the old MythBurn bash scripts, now using python,
216 and the mythfrontend UI plugin.
217
218 %prep
219 %setup -q
220 %patch1 -p0 -b .lame
221
222 # Fix /mnt/store -> /var/lib/mythmusic
223 perl -pi -e's|/mnt/store/music|%{_localstatedir}/lib/mythmusic|' mythmusic/mythmusic/globalsettings.cpp
224 # Fix /mnt/store -> /var/lib/mythvideo
225 perl -pi -e's|/share/Movies/dvd|%{_localstatedir}/lib/mythvideo|' mythvideo/mythvideo/globalsettings.cpp
226
227 perl -pi -e's|{PREFIX}/lib$|{PREFIX}/%{_lib}|' settings.pro
228
229 %build
230 %configure --enable-all --libdir-name=%{_lib} \
231 %if %build_plf
232 --enable-mp3lame
233 %else
234 --disable-mp3lame
235 %endif
236
237 %make
238
239 %install
240
241 rm -rf %{buildroot}
242
243 INSTALL_ROOT=%{buildroot}; export INSTALL_ROOT
244 %makeinstall
245
246 #mythgallery
247 mkdir -p %{buildroot}%{_localstatedir}/lib/pictures
248 #mythmusic
249 mkdir -p %{buildroot}%{_localstatedir}/lib/mythmusic
250 #mythvideo
251 mkdir -p %{buildroot}%{_localstatedir}/lib/mythvideo
252
253 install -d -m755 %{buildroot}%{_var}/www/mythweb
254 install -m644 mythweb/*.php %{buildroot}%{_var}/www/mythweb
255 install -m755 mythweb/*.pl %{buildroot}%{_var}/www/mythweb
256
257 for dir in classes includes js modules skins ; do
258 cp -r mythweb/$dir %{buildroot}%{_var}/www/mythweb
259 done
260
261 install -d -m755 %{buildroot}%{_localstatedir}/lib/mythweb/data
262 ln -s %{_localstatedir}/lib/mythweb/data %{buildroot}%{_var}/www/mythweb/data
263
264 # Create a default configuration for mythweb
265 cp mythweb/mythweb.conf.apache mythweb/mythweb.conf
266 perl -pi -e's|<Directory "/var/www/html" >|<Directory "%{_var}/www/mythweb" >|' mythweb/mythweb.conf
267 perl -pi -e's|# RewriteBase /mythweb| RewriteBase /mythweb|' mythweb/mythweb.conf
268
269 install -d -m755 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
270 cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/mythweb.conf <<EOF
271 Alias /mythweb %{_var}/www/mythweb
272
273 <Directory %{_var}/www/mythweb>
274 Order allow,deny
275 Deny from all
276 </Directory>
277 EOF
278
279 mkdir -p %{buildroot}{%_docdir}/mythtv-plugin-{browser,gallery,game,music,netvision,news,weather,video,zoneminder}
280
281
282 %clean
283 rm -rf %{buildroot}
284
285 %post -n mythtv-mythweb
286 %if %mdkversion < 201010
287 %_post_webapp
288 %endif
289
290 %postun -n mythtv-mythweb
291 %if %mdkversion < 201010
292 %_postun_webapp
293 %endif
294
295 %files -n mythtv-plugin-browser
296 %defattr(-,root,root,-)
297 %doc mythbrowser/README mythbrowser/COPYING mythbrowser/AUTHORS
298 %{_libdir}/mythtv/plugins/libmythbrowser.so
299 %{_datadir}/mythtv/i18n/mythbrowser_*.qm
300 %{_datadir}/mythtv/themes/default*/browser-ui.xml
301 %{_datadir}/mythtv/themes/default*/mb_*.png
302
303 %files -n mythtv-plugin-gallery
304 %defattr(-,root,root,-)
305 %doc mythgallery/README*
306 %{_libdir}/mythtv/plugins/libmythgallery.so
307 %{_datadir}/mythtv/i18n/mythgallery_*.qm
308 %{_datadir}/mythtv/themes/default*/gallery*
309 %{_localstatedir}/lib/pictures
310
311 %files -n mythtv-plugin-game
312 %defattr(-,root,root,-)
313 %doc mythgame/romdb*
314 %{_libdir}/mythtv/plugins/libmythgame.so
315 %{_datadir}/mythtv/i18n/mythgame_*.qm
316 %{_datadir}/mythtv/game_settings.xml
317 %{_datadir}/mythtv/themes/default*/game*
318 %dir %{_datadir}/mythtv/metadata
319 %{_datadir}/mythtv/metadata/Game
320
321 %files -n mythtv-plugin-music
322 %defattr(-,root,root,-)
323 %doc mythmusic/AUTHORS mythmusic/COPYING mythmusic/README* mythmusic/musicdb
324 %{_datadir}/mythtv/music_settings.xml
325 %{_datadir}/mythtv/musicmenu.xml
326 %{_libdir}/mythtv/plugins/libmythmusic.so
327 %{_localstatedir}/lib/mythmusic
328 %{_datadir}/mythtv/i18n/mythmusic_*.qm
329 %{_datadir}/mythtv/themes/default/ff_button*.png
330 %{_datadir}/mythtv/themes/default*/mm_*.png
331 %{_datadir}/mythtv/themes/default*/mm-*.png
332 %{_datadir}/mythtv/themes/default/music-*.png
333 %{_datadir}/mythtv/themes/default*/music-ui.xml
334 %{_datadir}/mythtv/themes/default/next_button*.png
335 %{_datadir}/mythtv/themes/default/pause_button*.png
336 %{_datadir}/mythtv/themes/default/play_button*.png
337 %{_datadir}/mythtv/themes/default/prev_button*.png
338 %{_datadir}/mythtv/themes/default/rew_button*.png
339 %{_datadir}/mythtv/themes/default/selectionbar.png
340 %{_datadir}/mythtv/themes/default/stop_button*.png
341 %{_datadir}/mythtv/themes/default/track_info_background.png
342 %{_datadir}/mythtv/themes/default/miniplayer_background.png
343 %{_datadir}/mythtv/themes/default-wide/music-sel-bg.png
344
345 %files -n mythtv-plugin-netvision
346 %defattr(-,root,root,-)
347 %doc mythnetvision/README mythnetvision/ChangeLog mythnetvision/AUTHORS
348 %{_bindir}/mythfillnetvision
349 %{_libdir}/mythtv/plugins/libmythnetvision.so
350 %{_datadir}/mythtv/i18n/mythnetvision_*.qm
351 %{_datadir}/mythtv/mythnetvision
352 %{_datadir}/mythtv/netvisionmenu.xml
353 %{_datadir}/mythtv/themes/default*/netvision*.xml
354
355 %files -n mythtv-plugin-news
356 %defattr(-,root,root,-)
357 %doc mythnews/AUTHORS mythnews/COPYING mythnews/ChangeLog mythnews/README*
358 %{_libdir}/mythtv/plugins/libmythnews.so
359 %{_datadir}/mythtv/i18n/mythnews_*.qm
360 %{_datadir}/mythtv/mythnews
361 %{_datadir}/mythtv/themes/default*/news*
362 %{_datadir}/mythtv/themes/default/enclosures.png
363 %{_datadir}/mythtv/themes/default/need-download.png
364 %{_datadir}/mythtv/themes/default/podcast.png
365
366
367 %files -n mythtv-plugin-weather
368 %defattr(-,root,root,-)
369 %doc mythweather/AUTHORS mythweather/COPYING mythweather/README*
370 %{_libdir}/mythtv/plugins/libmythweather.so
371 %{_datadir}/mythtv/i18n/mythweather_*.qm
372 %{_datadir}/mythtv/mythweather
373 %{_datadir}/mythtv/themes/default/cloudy.png
374 %{_datadir}/mythtv/themes/default/fair.png
375 %{_datadir}/mythtv/themes/default/flurries.png
376 %{_datadir}/mythtv/themes/default/fog.png
377 %{_datadir}/mythtv/themes/default/logo.png
378 %{_datadir}/mythtv/themes/default/lshowers.png
379 %{_datadir}/mythtv/themes/default/mcloudy.png
380 %{_datadir}/mythtv/themes/default/pcloudy.png
381 %{_datadir}/mythtv/themes/default/rainsnow.png
382 %{_datadir}/mythtv/themes/default/showers.png
383 %{_datadir}/mythtv/themes/default/snowshow.png
384 %{_datadir}/mythtv/themes/default/sunny.png
385 %{_datadir}/mythtv/themes/default/thunshowers.png
386 %{_datadir}/mythtv/themes/default/unknown.png
387 %{_datadir}/mythtv/themes/default*/mw*.png
388 %{_datadir}/mythtv/themes/default*/weather-ui.xml
389 %{_datadir}/mythtv/weather_settings.xml
390
391 %files -n mythtv-mythweb
392 %defattr(-,root,root,-)
393 %doc mythweb/README* mythweb/LICENSE mythweb/INSTALL mythweb/mythweb.conf.*
394 %{_var}/www/mythweb
395 %dir %{_localstatedir}/lib/mythweb
396 %attr(-,apache,apache) %{_localstatedir}/lib/mythweb/data
397 %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/mythweb.conf
398
399 %files -n mythtv-plugin-video
400 %defattr(-,root,root,-)
401 %doc mythvideo/README*
402 %{_libdir}/mythtv/plugins/libmythvideo.so
403 %{_datadir}/mythtv/video_settings.xml
404 %{_datadir}/mythtv/videomenu.xml
405 %{_datadir}/mythtv/i18n/mythvideo_*.qm
406 %{_datadir}/mythtv/mythvideo/scripts
407 %{_datadir}/mythtv/themes/default*/mv*.png
408 %{_datadir}/mythtv/themes/default/md_*.png
409 %{_datadir}/mythtv/themes/default*/video*.xml
410 %{_localstatedir}/lib/mythvideo
411
412 %files -n mythtv-plugin-zoneminder
413 %defattr(-,root,root,-)
414 %doc mythzoneminder/README mythzoneminder/COPYING mythzoneminder/AUTHORS
415 %{_bindir}/mythzmserver
416 %{_libdir}/mythtv/plugins/libmythzoneminder.so
417 %{_datadir}/mythtv/zonemindermenu.xml
418 %{_datadir}/mythtv/themes/default*/zoneminder*.xml
419 %{_datadir}/mythtv/themes/default*/mz_*.png
420 %{_datadir}/mythtv/i18n/mythzoneminder_*.qm
421
422 %files -n mythtv-plugin-archive
423 %defattr(-,root,root)
424 %{_bindir}/mytharchivehelper
425 %{_libdir}/mythtv/plugins/libmytharchive.so
426 %{_datadir}/mythtv/archive*.xml
427 %{_datadir}/mythtv/mytharchive
428 %{_datadir}/mythtv/themes/default/ma_*.png
429 %{_datadir}/mythtv/themes/default/mytharchive-ui.xml
430 %{_datadir}/mythtv/themes/default/mythburn-ui.xml
431 %{_datadir}/mythtv/themes/default/mythnative-ui.xml
432 %{_datadir}/mythtv/themes/default-wide/mytharchive-ui.xml
433 %{_datadir}/mythtv/themes/default-wide/mythburn-ui.xml
434 %{_datadir}/mythtv/themes/default-wide/mythnative-ui.xml
435 %{_datadir}/mythtv/i18n/mytharchive_*.qm
436
437

  ViewVC Help
Powered by ViewVC 1.1.28