]> git.pld-linux.org Git - packages/mythplugins.git/blame - mythplugins.spec
- simplified incompatibile macro definition for fftw3 usage in mythmusic
[packages/mythplugins.git] / mythplugins.spec
CommitLineData
14b5eb75 1#
f76d04d4
ER
2# Conditional build:
3%bcond_without binary # skip building binary plugins (build only mythweb)
6c7adef8 4%bcond_without mytharchive # disable mytharchive plugin
f76d04d4 5%bcond_without mythbrowser # disable building mythbrowser plugin
6c7adef8 6%bcond_without mythmovies # disable mythmovies plugin
7%bcond_without mythdvd # mythvideo part
beab7214 8%bcond_without mythflix # disable building mythflix plugin
f76d04d4
ER
9%bcond_without mythgallery # disable building mythgallery plugin
10%bcond_without mythgame # disable building mythgallery plugin
11%bcond_without mythmusic # disable building mythmusic plugin
12%bcond_without mythnews # disable building mythgallery plugin
6c7adef8 13%bcond_with mythphone # discontnued ??
f76d04d4 14%bcond_without mythvideo # disable building mythgallery plugin
6c7adef8 15%bcond_with mythweather # building mythgallery plugin disabled by default
16 # it looks unusable "due to msnbc webpage structure change
f76d04d4 17%bcond_without mythweb # disable building mythgallery plugin
6c7adef8 18%bcond_without mythzoneminder # disable building mythzoneminder plugin
19
f8518b19 20%if !%{with binary}
beab7214 21%undefine with_mytharchive
f76d04d4 22%undefine with_mythbrowser
6c7adef8 23%undefine with_mythmovies
24%undefine with_mythdvd
beab7214 25%undefine with_mythflix
f76d04d4
ER
26%undefine with_mythgallery
27%undefine with_mythgame
28%undefine with_mythmusic
29%undefine with_mythnews
30%undefine with_mythphone
31%undefine with_mythvideo
32%undefine with_mythweather
f76d04d4
ER
33%endif
34
a8181a32 35%include /usr/lib/rpm/macros.perl
f76d04d4 36
6c7adef8 37%define snap 20090518
9de9d245 38#define _rev 11046
6c7adef8 39#%define rel 0.1
20cc2885 40Summary: Main MythTV plugins
9478e970 41Summary(pl.UTF-8): Główne wtyczki MythTV
d78b97e1 42Name: mythplugins
6c7adef8 43Version: 0.22
1937f67d 44Release: 0.%{snap}.2
69870715 45License: GPL v2
d78b97e1 46Group: Applications/Multimedia
6c7adef8 47Source0: %{name}-%{version}-%{snap}.tar.bz2
48# Source0-md5: c489ac9ff8033e41112af2e17fc5d65d
5e68f3bc 49Source1: mythweb.conf
6c7adef8 50#Patch0: %{name}-lib64.patch
51#Patch1: %{name}-paths.patch
52Patch2: mythweb-config.patch
53Patch20: %{name}-mytharchive-INT64.patch
d0f0a695 54#Patch100: mythtv-branch.diff
20cc2885 55URL: http://www.mythtv.org/
f76d04d4
ER
56%if %{with binary}
57%if %{with mythgallery} || %{with myhtmusic}
20cc2885 58BuildRequires: OpenGL-devel
f76d04d4 59%endif
6c7adef8 60BuildRequires: Qt3Support-devel
61BuildRequires: QtCore-devel
62BuildRequires: QtGui-devel
63BuildRequires: QtNetwork-devel
64BuildRequires: QtOpenGL-devel
65BuildRequires: QtSql-devel
66BuildRequires: QtWebKit-devel
67BuildRequires: QtXml-devel
d78b97e1 68BuildRequires: SDL-devel
69870715
ER
69BuildRequires: a52dec-libs-devel
70BuildRequires: cdparanoia-III-devel
71BuildRequires: faad2-devel >= 2.0-5.2
f76d04d4 72%{?with_mythmusic:BuildRequires: fftw-devel >= 2.1.3}
d78b97e1 73BuildRequires: flac-devel >= 1.0.4
69870715 74BuildRequires: freetype-devel
f76d04d4 75BuildRequires: libcdaudio-devel >= 0.99.12p2
69870715
ER
76BuildRequires: libdvdcss-devel >= 1.2.7
77BuildRequires: libdvdread-devel >= 0.9.4
f76d04d4 78%{?with_mythgallery:BuildRequires: libexif-devel >= 1:0.6.9}
69870715 79BuildRequires: libfame-devel >= 0.9.0
d78b97e1
ER
80BuildRequires: libid3tag-devel
81BuildRequires: libmad-devel
6c7adef8 82BuildRequires: libmyth-devel >= 0.19
69870715 83BuildRequires: libstdc++-devel
d78b97e1 84BuildRequires: libtiff-devel
f76d04d4 85BuildRequires: libvorbis-devel >= 1:1.0
d78b97e1 86BuildRequires: mjpegtools-devel >= 1.6.1
69870715 87BuildRequires: nasm
beab7214 88BuildRequires: patchutils
6c7adef8 89BuildRequires: qt4-build
90BuildRequires: qt4-qmake
20cc2885
JB
91BuildRequires: rpm-perlprov >= 4.1-13
92BuildRequires: sed >= 4.0
6c7adef8 93%{?with_mythmusic:BuildRequires: taglib-devel}
94%{?with_mythdvd:BuildRequires: transcode >= 0.6.8}
95BuildRequires: xorg-lib-libX11-devel
69870715
ER
96BuildRequires: xvid-devel >= 1:0.9.1
97BuildRequires: zlib-devel
f76d04d4 98%endif
beab7214 99%{?with_mytharchive:Requires: mytharchive}
f76d04d4 100%{?with_mythbrowser:Requires: mythbrowser}
6c7adef8 101%{?with_mythdvd:Requires: mythdvd}
f76d04d4
ER
102%{?with_mythflix:Requires: mythflix}
103%{?with_mythgallery:Requires: mythgallery}
104%{?with_mythgame:Requires: mythgame}
105%{?with_mythmysic:Requires: mythmusic}
106%{?with_mythnews:Requires: mythnews}
107%{?with_mythphone:Requires: mythphone}
108%{?with_mythvideo:Requires: mythvideo}
109%{?with_mythweather:Requires: mythweather}
110%{?with_mythweb:Requires: mythweb}
e3001b4f 111ExclusiveArch: %{ix86} %{x8664} ppc
d78b97e1
ER
112BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
113
f76d04d4
ER
114%define myth_api_version %(awk '/LIBVERSION/{print $3}' %{_datadir}/mythtv/build/settings.pro 2>/dev/null || echo ERROR)
115%define _webapps /etc/webapps
116%define _webapp mythweb
69870715 117
d78b97e1
ER
118%description
119This is a consolidation of all the official MythTV plugins that used
120to be distributed as separate downloads from mythtv.org.
121
c2db80a4
JR
122%description -l pl.UTF-8
123Jest to zbiór wszystkich oficjalnych wtyczek MythTV, które były
124wcześniej rozpowszechniane jako osobne pakiety na mythtv.org.
20cc2885 125
beab7214 126%package -n mytharchive
68bb720e 127Summary: A MythTV module to create and burn DVDs
9478e970 128Summary(pl.UTF-8): Moduł MythTV do tworzenia i wypalania DVD
beab7214 129Group: Applications/Multimedia
6c7adef8 130Requires: dvdauthor
131Requires: mjpegtools
beab7214 132Requires: mythtv-frontend-api = %{myth_api_version}
6c7adef8 133Requires: python-MySQLdb
134Requires: python-PIL
135Suggests: dvdrtools-mkisofs
beab7214
ER
136
137%description -n mytharchive
138MythArchive is a MythTV style plugin that uses the Mythburn Script to
68bb720e 139create and burn DVDs from MythTV recordings, MythVideo files or any
beab7214
ER
140video files available on a MythTV system. It can also export
141recordings to a native archive format that can then be imported back
68bb720e
JB
142into a MythTV system restoring all the associated metadata.
143
c2db80a4
JR
144%description -n mytharchive -l pl.UTF-8
145MythArchive to wtyczka MythTV używająca skryptu Mythburn do tworzenia
146i wypalania płyt DVD z nagrań MythTV, plików MythVideo lub dowolnych
147innych plików z filmami dostępnych w systemie MythTV. Może także
148eksportować nagrania do natywnego formatu archiwum, który potem można
149zaimportować z powrotem do systemu MythTV przywracając wszystkie
150związane z nimi metadane.
beab7214 151
d78b97e1 152%package -n mythmusic
20cc2885 153Summary: The music player add-on module for MythTV
9478e970 154Summary(pl.UTF-8): Moduł odtwarzacza muzyki dla MythTV
d78b97e1 155Group: Applications/Multimedia
f76d04d4 156Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
157
158%description -n mythmusic
20cc2885
JB
159Music add-on for MythTV.
160
c2db80a4 161%description -n mythmusic -l pl.UTF-8
20cc2885 162Odtwarzacz muzyki dla MythTV.
d78b97e1
ER
163
164%package -n mythvideo
20cc2885 165Summary: A generic video player frontend module for MythTV
9478e970 166Summary(pl.UTF-8): Moduł ogólnego interfejsu do odtwarzania obrazu dla MythTV
d78b97e1
ER
167Group: Applications/Multimedia
168Requires: mplayer
f76d04d4 169Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
170
171%description -n mythvideo
6c7adef8 172A generic video and dvd player frontend module for MythTV.
d78b97e1 173
c2db80a4
JR
174%description -n mythvideo -l pl.UTF-8
175Moduł ogólnego interfejsu do odtwarzania obrazu dla MythTV.
20cc2885 176
d78b97e1 177%package -n mythweather
20cc2885 178Summary: A MythTV module that displays a weather forcast
9478e970 179Summary(pl.UTF-8): Moduł MythTV wyświetlający prognozę pogody
d78b97e1 180Group: Applications/Multimedia
f76d04d4 181Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
182
183%description -n mythweather
184A MythTV module that displays a weather forcast.
185
c2db80a4
JR
186%description -n mythweather -l pl.UTF-8
187Moduł MythTV wyświetlający prognozę pogody.
20cc2885 188
d78b97e1 189%package -n mythgallery
20cc2885 190Summary: A gallery/slideshow module for MythTV
9478e970 191Summary(pl.UTF-8): Moduł galerii/pokazu slajdów dla MythTV
d78b97e1 192Group: Applications/Multimedia
f76d04d4 193Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
194
195%description -n mythgallery
196A gallery/slideshow module for MythTV.
197
c2db80a4
JR
198%description -n mythgallery -l pl.UTF-8
199Moduł galerii/pokazu slajdów dla MythTV.
20cc2885 200
d78b97e1 201%package -n mythgame
20cc2885 202Summary: A game frontend (xmame, nes, snes, pc) for MythTV
9478e970 203Summary(pl.UTF-8): Interfejs do gier (xmame, nes, snes, pc) dla MythTV
d78b97e1 204Group: Applications/Multimedia
f76d04d4 205Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
206
207%description -n mythgame
208A game frontend (xmame, nes, snes, pc) for MythTV.
209
c2db80a4 210%description -n mythgame -l pl.UTF-8
20cc2885
JB
211Interfejs do gier (xmame, nes, snes, pc) dla MythTV.
212
6c7adef8 213%package -n mythdvd
214Summary: A DVD ripper module for MythTV
215Summary(pl.UTF-8): Moduł rippujący DVD dla MythTV
216Group: Applications/Multimedia
217Requires: mythtv-frontend-api = %{myth_api_version}
218Requires: mythvideo
219Requires: transcode >= 0.6.8
220
221%description -n mythdvd
222MythDVD is a MythTV module that allows you to rip DVD's and transcode
223their video and audio content to other (generally smaller) formats.
224The playing features are simply myth-style wrappers for your favourite
225DVD playing software (mplayer, ogle, xine, etc). The transcoding is
226based on and derived from the excellent transcode package.
227
228%description -n mythdvd -l pl.UTF-8
229MythDVD to moduł MythTV umożliwiający rippowanie DVD oraz
230przekodowywanie obrazu i dźwięku do innych (zwykle mniej zajmujących)
231formatów. Możliwości odtwarzania to po prostu obudowanie w stylu myth
232dla ulubionego oprogramowania do odtwarzania DVD (mplayer, ogle, xine
233itp.). Przekodowywanie jest oparte i wywodzi się ze wspaniałego
234pakietu transcode.
235
d78b97e1 236%package -n mythnews
20cc2885 237Summary: A RSS News Feed plugin for MythTV
9478e970 238Summary(pl.UTF-8): Wtyczka czytnika nowinek RSS dla MythTV
d78b97e1 239Group: Applications/Multimedia
f76d04d4 240Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
241
242%description -n mythnews
20cc2885
JB
243A RSS News Feed plugin for MythTV.
244
c2db80a4 245%description -n mythnews -l pl.UTF-8
20cc2885 246Wtyczka czytnika nowinek RSS dla MythTV.
d78b97e1
ER
247
248%package -n mythbrowser
20cc2885 249Summary: A small web browser module for MythTV
9478e970 250Summary(pl.UTF-8): Moduł małej przeglądarki WWW dla MythTV
d78b97e1 251Group: Applications/Multimedia
f76d04d4 252Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
253
254%description -n mythbrowser
255MythBrowser is a full fledged web-browser (multiple tabs) to display
256webpages in full-screen mode. Simple page navigation is possible.
257Starting with version 0.13 it also has full support for mouse driven
20cc2885 258navigation (right mouse opens and closes the popup menu).
d78b97e1
ER
259
260MythBrowser also contains a BookmarkManager to manage the website
261links in a simple mythplugin.
262
c2db80a4
JR
263%description -n mythbrowser -l pl.UTF-8
264MythBrowser to w pełni funkcjonalna przeglądarka WWW (z wieloma
265zakładkami) wyświetlająca strony WWW w trybie pełnoekranowym. Możliwa
266jest prosta nawigacja po stronie. Począwszy od wersji 0.13 ma pełną
267obsługę nawigacji myszką (prawy przycisk otwiera i zamywa wyskakujące
20cc2885
JB
268menu).
269
c2db80a4 270MythBrowser zawiera także BookmarkManagera do zarządzania odnośnikami
20cc2885
JB
271do stron w prostej wtyczce myth.
272
d78b97e1 273%package -n mythphone
20cc2885 274Summary: A video conferencing module for MythTV
9478e970 275Summary(pl.UTF-8): Moduł wideokonferencji dla MythTV
d78b97e1 276Group: Applications/Multimedia
f76d04d4 277Requires: mythtv-frontend-api = %{myth_api_version}
d78b97e1
ER
278
279%description -n mythphone
20cc2885 280Mythphone is a phone and videophone capability on Myth using the
d78b97e1
ER
281standard SIP protocol. It is compatible with Microsoft XP Messenger
282and with SIP Service Providers such as Free World Dialup
283(fwd.pulver.com).
284
c2db80a4
JR
285%description -n mythphone -l pl.UTF-8
286Mythphone to funkcjonalność telefonu i wideofonu w Myth przy użyciu
287standardowego protokołu SIP. Jest kompatybilny z Microsoft XP
288Messengerem oraz dostawcami usług SIP, takimi jak Free World Dialup
20cc2885
JB
289(fwd.pulver.com).
290
5e68f3bc
ER
291%package -n mythweb
292Summary: The web interface to MythTV
9478e970 293Summary(pl.UTF-8): Interfejs WWW do MythTV
5e68f3bc 294Group: Applications/Multimedia
3515083d
ER
295Requires: php(mysql)
296Requires: php(posix)
6c7adef8 297Requires: webapps
3515083d 298Requires: webserver(php) >= 4.3
6c7adef8 299#Suggests: apache(mod_auth)
300#Suggests: apache(mod_env)
5e68f3bc
ER
301
302%description -n mythweb
303The web interface to MythTV.
304
c2db80a4 305%description -n mythweb -l pl.UTF-8
64c9f7c0
JB
306Interfejs WWW do MythTV.
307
f76d04d4
ER
308%package -n mythflix
309Summary: MythFlix (A NetFlix MythTV)
9478e970 310Summary(pl.UTF-8): MythFlix (NetFlix MythTV)
f76d04d4
ER
311Group: Applications/Multimedia
312Requires: mythtv-frontend-api = %{myth_api_version}
313
314%description -n mythflix
315MythFlix is a MythTV plugin for adding movies to your Netflix queue.
316It currently supports the ability to view your queue and add movies to
317your queue. The browse feature is based on the Netflix RSS feeds. This
318plugin is not very mature, which means things might not work right
319and/or it might break other things.
320
c2db80a4
JR
321%description -n mythflix -l pl.UTF-8
322MythFlix to wtyczka MythTV do dodawania filmów do kolejki Netfliksa.
323Aktualnie daje możliwość oglądania kolejki i dodawania do niej filmów.
324Przeglądanie jest oparte na kanale RSS Netfliksa. Ta wtyczka nie jest
325jeszcze zbyt dojrzała, co znaczy, że coś może nie działać lub psuć coś
f76d04d4
ER
326innego.
327
ba857471 328%package -n mythmovies
6c7adef8 329Summary: MythTV cinemas timetable
330Summary(pl.UTF-8): Moduł MythTV do repertuaru kinowego
ba857471 331Group: Applications/Multimedia
332Requires: mythtv-frontend-api = %{myth_api_version}
333
334%description -n mythmovies
6c7adef8 335MythTV cinemas timetable.
336
337
338%description -n mythmovies -l pl.UTF-8
339Moduł MythTV do repertuaru kinowego.
445e2012
JK
340
341%package -n mythzoneminder
6c7adef8 342Summary: MythTV security TV manager
343Summary(pl.UTF-8): Obsługa kamer przemysłowych dla MythTV
ba857471 344Group: Applications/Multimedia
345Requires: mythtv-frontend-api = %{myth_api_version}
445e2012
JK
346
347%description -n mythzoneminder
6c7adef8 348MythTV security TV manager.
445e2012 349
6c7adef8 350
351%description -n mythzoneminder -l pl.UTF-8
352Obsługa kamer przemysłowych dla MythTV.
445e2012 353
d78b97e1 354%prep
6c7adef8 355#%setup -q %{?_snap:-n %{name}}
356%setup -q %{SOURCE0}
357#%if %{_lib} != "lib"
358#%patch0 -p1
359#%endif
360#%patch1 -p1
361#%patch2 -p1
362%patch20 -p1
63c280ad 363#filterdiff -i 'mythplugins/*' %{PATCH100} | %{__patch} -p1 -s
f76d04d4
ER
364
365# make it visible
6c7adef8 366#mv mythweb/data/{.,}htaccess
d78b97e1 367
f76d04d4
ER
368# lib64 fix - enable to update patch
369%if %{_lib} != "lib" && 0
69870715 370find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
123e986b 371xargs grep -l /lib/ . | xargs sed -i -e '
6c7adef8 372 s,/usr/lib/,/%{_lib}/,g
cb9924d8 373 s,{PREFIX}/lib,{PREFIX}/%{_lib},g
123e986b 374'
f76d04d4 375exit 1
a8181a32
ER
376%endif
377
d78b97e1 378%build
f76d04d4 379%if %{with binary}
69870715 380export QTDIR="%{_prefix}"
123e986b 381# Not gnu configure
69870715 382%configure \
6c7adef8 383 --libdir-name=`basename %{_lib}` \
69870715 384 --enable-all \
beab7214 385 %{!?with_mytharchive:--disable-mytharchive} \
f76d04d4 386 %{!?with_mythbrowser:--disable-mythbrowser} \
6c7adef8 387 %{!?with_mythdvd:--disable-mythdvd}%{?with_mythdvd:--enable-transcode --enable-vcd} \
f76d04d4
ER
388 %{!?with_mythgallery:--disable-mythgallery}%{?with_mythgallery:--enable-exif --enable-new-exif --enable-opengl} \
389 %{!?with_mythgame:--disable-mythgame} \
390 %{!?with_mythmusic:--disable-mythmusic}%{?with_mythmysic:--enable-fftw --enable-sdl --enable-aac --enable-opengl} \
391 %{!?with_mythnews:--disable-mythnews} \
392 %{!?with_mythphone:--disable-mythphone}%{?with_mythphone:--disable-festival} \
393 %{!?with_mythvideo:--disable-mythvideo} \
394 %{!?with_mythweather:--disable-mythweather} \
395 %{!?with_mythweb:--disable-mythweb} \
6c7adef8 396 %{!?with_mythmovies:--disable-mythmovies} \
f76d04d4
ER
397 %{!?with_mythflix:--disable-mythflix} \
398
399mv mythconfig.mak mythconfig.mak.old
400cp mythconfig.mak.old mythconfig.mak
401cat <<'EOF'>> mythconfig.mak
402QMAKE_CXX=%{__cxx}
403QMAKE_CC=%{__cc}
404OPTFLAGS=%{rpmcflags} -Wall -Wno-switch
405ECFLAGS=%{rpmcflags} -fomit-frame-pointer
406ECXXFLAGS=%{rpmcflags} -fomit-frame-pointer
407EOF
408
d78b97e1 409%{__make}
f76d04d4 410%endif
d78b97e1
ER
411
412%install
413rm -rf $RPM_BUILD_ROOT
513b080c 414
f76d04d4 415%if %{with binary}
513b080c 416export QTDIR="%{_prefix}"
20cc2885
JB
417%{__make} install \
418 INSTALL_ROOT=$RPM_BUILD_ROOT
d78b97e1 419
6c7adef8 420install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythbrowser,mythvideo,pictures}
f76d04d4 421%if %{with mythgame}
d78b97e1
ER
422install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens}
423install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens}
16792a62 424install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
d78b97e1 425install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens
a8181a32 426cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC
f76d04d4
ER
427%endif
428%endif
d78b97e1 429
f76d04d4 430%if %{with mythweb}
3cfccba6
ER
431cd mythweb
432install -d $RPM_BUILD_ROOT%{_datadir}/mythweb
f76d04d4
ER
433install -d $RPM_BUILD_ROOT/var/cache/mythweb/{image_cache,php_sessions,tv_icons}
434install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
6c7adef8 435cp -a *.php *.pl data includes js modules skins $RPM_BUILD_ROOT%{_datadir}/mythweb
f76d04d4
ER
436install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
437install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
438touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd
3cfccba6 439cd -
f76d04d4
ER
440%endif
441
3cfccba6 442mv $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/mythbrowser_{pt_br,pt}.qm
beab7214 443rm $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/mythflix_nb.ts # i18n source
6c7adef8 444for p in mytharchive mythbrowser mythmovies mythdvd mythflix mythgallery mythgame mythmusic mythnews mythphone mythvideo mythweather mythzoneminder; do
f76d04d4 445 for l in $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/${p}_*.qm; do
6c7adef8 446 echo $l | sed -e "s,^$RPM_BUILD_ROOT\(.*${p}_\(.*\).qm\),%%lang(\2) \1,"
f76d04d4
ER
447 done > $p.lang
448done
5e68f3bc 449
d78b97e1 450%clean
69870715 451rm -rf $RPM_BUILD_ROOT
d78b97e1 452
9c2555e2 453%triggerin -n mythweb -- apache1 < 1.3.37-3, apache1-base
f76d04d4
ER
454%webapp_register apache %{_webapp}
455
9c2555e2 456%triggerun -n mythweb -- apache1 < 1.3.37-3, apache1-base
f76d04d4
ER
457%webapp_unregister apache %{_webapp}
458
459%triggerin -n mythweb -- apache < 2.2.0, apache-base
460%webapp_register httpd %{_webapp}
461
462%triggerun -n mythweb -- apache < 2.2.0, apache-base
463%webapp_unregister httpd %{_webapp}
464
465%triggerpostun -n mythweb -- mythweb < 0.19
466for i in canned_searches.php conf.php htpasswd theme_Default.php theme_compact.php theme_vxml.php theme_wap.php theme_wml.php weathertypes.dat; do
467 if [ -f /etc/mythweb/$i.rpmsave ]; then
468 mv -f %{_webapps}/%{_webapp}/$i{,.rpmnew}
469 mv -f /etc/mythweb/$i.rpmsave %{_webapps}/%{_webapp}/$i
470 fi
471done
472sed -i -e 's,/etc/mythweb,%{_webapps}/%{_webapp},' %{_webapps}/%{_webapp}/{apache,httpd}.conf
473
474# migrate from apache-config macros
475if [ -f /etc/mythweb/apache.conf.rpmsave ]; then
476 if [ -d /etc/apache/webapps.d ]; then
477 cp -f %{_webapps}/%{_webapp}/apache.conf{,.rpmnew}
478 cp -f /etc/mythweb/apache.conf.rpmsave %{_webapps}/%{_webapp}/apache.conf
479 fi
480
481 if [ -d /etc/httpd/webapps.d ]; then
482 cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
483 cp -f /etc/mythweb/apache.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
484 fi
485 rm -f /etc/mythweb/apache.conf.rpmsave
486fi
487
488if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then
489 rm -f /etc/apache/conf.d/99_mythplugins.conf
490 /usr/sbin/webapp register apache %{_webapp}
491 %service -q apache reload
492fi
493if [ -L /etc/httpd/httpd.conf/99_mythplugins.conf ]; then
494 rm -f /etc/httpd/httpd.conf/99_mythplugins.conf
495 /usr/sbin/webapp register httpd %{_webapp}
496 %service -q httpd reload
497fi
5e68f3bc 498
d78b97e1
ER
499%files
500%defattr(644,root,root,755)
d78b97e1 501
beab7214
ER
502%if %{with mytharchive}
503%files -n mytharchive -f mytharchive.lang
504%defattr(644,root,root,755)
505%attr(755,root,root) %{_bindir}/mytharchivehelper
506%attr(755,root,root) %{_libdir}/mythtv/plugins/libmytharchive.so
beab7214 507%{_datadir}/mythtv/archivemenu.xml
6c7adef8 508%{_datadir}/mythtv/archiveutils.xml
beab7214
ER
509%{_datadir}/mythtv/themes/default/ma_*.png
510%{_datadir}/mythtv/themes/default/mytharchive-ui.xml
511%{_datadir}/mythtv/themes/default/mythburn-ui.xml
512%{_datadir}/mythtv/themes/default/mythnative-ui.xml
6c7adef8 513%{_datadir}/mythtv/themes/default-wide/mytharchive-ui.xml
514%{_datadir}/mythtv/themes/default-wide/mythburn-ui.xml
515%{_datadir}/mythtv/themes/default-wide/mythnative-ui.xml
beab7214
ER
516%{_datadir}/mythtv/mytharchive
517%endif
518
f76d04d4
ER
519%if %{with mythmusic}
520%files -n mythmusic -f mythmusic.lang
d78b97e1 521%defattr(644,root,root,755)
beab7214 522%doc mythmusic/README mythmusic/AUTHORS mythmusic/musicdb
d78b97e1 523%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so
513b080c 524/var/lib/mythmusic
d78b97e1
ER
525%{_datadir}/mythtv/musicmenu.xml
526%{_datadir}/mythtv/music_settings.xml
f76d04d4 527%{_datadir}/mythtv/themes/default/music-ui.xml
6c7adef8 528%{_datadir}/mythtv/themes/default-wide/music-ui.xml
d78b97e1
ER
529%{_datadir}/mythtv/themes/default/ff_button_off.png
530%{_datadir}/mythtv/themes/default/ff_button_on.png
531%{_datadir}/mythtv/themes/default/ff_button_pushed.png
6c7adef8 532%{_datadir}/mythtv/themes/default/miniplayer_background.png
445e2012 533%{_datadir}/mythtv/themes/default/mm_*.png
d78b97e1 534%{_datadir}/mythtv/themes/default/music-sel-bg.png
d78b97e1
ER
535%{_datadir}/mythtv/themes/default/next_button_off.png
536%{_datadir}/mythtv/themes/default/next_button_on.png
537%{_datadir}/mythtv/themes/default/next_button_pushed.png
538%{_datadir}/mythtv/themes/default/pause_button_off.png
539%{_datadir}/mythtv/themes/default/pause_button_on.png
540%{_datadir}/mythtv/themes/default/pause_button_pushed.png
541%{_datadir}/mythtv/themes/default/play_button_off.png
542%{_datadir}/mythtv/themes/default/play_button_on.png
543%{_datadir}/mythtv/themes/default/play_button_pushed.png
544%{_datadir}/mythtv/themes/default/prev_button_off.png
545%{_datadir}/mythtv/themes/default/prev_button_on.png
546%{_datadir}/mythtv/themes/default/prev_button_pushed.png
547%{_datadir}/mythtv/themes/default/rew_button_off.png
548%{_datadir}/mythtv/themes/default/rew_button_on.png
549%{_datadir}/mythtv/themes/default/rew_button_pushed.png
550%{_datadir}/mythtv/themes/default/selectionbar.png
551%{_datadir}/mythtv/themes/default/stop_button_off.png
552%{_datadir}/mythtv/themes/default/stop_button_on.png
553%{_datadir}/mythtv/themes/default/stop_button_pushed.png
d78b97e1 554%{_datadir}/mythtv/themes/default/track_info_background.png
6c7adef8 555%{_datadir}/mythtv/themes/default-wide/mm_*.png
556%{_datadir}/mythtv/themes/default-wide/music-sel-bg.png
f76d04d4 557%endif
d78b97e1 558
f76d04d4
ER
559%if %{with mythvideo}
560%files -n mythvideo -f mythvideo.lang
d78b97e1 561%defattr(644,root,root,755)
beab7214 562%doc mythvideo/README mythvideo/videodb
d78b97e1 563%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythvideo.so
d78b97e1 564%{_datadir}/mythtv/themes/default/video-ui.xml
ba857471 565%{_datadir}/mythtv/themes/default-wide/video-ui.xml
6c7adef8 566%{_datadir}/mythtv/themes/default/mv_*.png
445e2012 567%{_datadir}/mythtv/themes/default-wide/mv_*.png
d78b97e1
ER
568%{_datadir}/mythtv/video_settings.xml
569%{_datadir}/mythtv/videomenu.xml
a8181a32
ER
570%dir %{_datadir}/mythtv/mythvideo
571%dir %{_datadir}/mythtv/mythvideo/scripts
d78b97e1 572%{_datadir}/mythtv/mythvideo/scripts/README
445e2012
JK
573%attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/*.pl
574%attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/*.py
6c7adef8 575%dir %{_datadir}/mythtv/mythvideo/scripts/MythTV
576%attr(644,root,root)%{_datadir}/mythtv/mythvideo/scripts/MythTV/MythVideoCommon.pm
513b080c 577/var/lib/mythvideo
f76d04d4
ER
578%endif
579
580%if %{with mythweather}
581%files -n mythweather -f mythweather.lang
d78b97e1 582%defattr(644,root,root,755)
b0c55580 583%doc mythweather/README
d78b97e1 584%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythweather.so
6c7adef8 585%{_datadir}/mythtv/mythweather
586%{_datadir}/mythtv/weather_settings.xml
d78b97e1 587%{_datadir}/mythtv/themes/default/weather-ui.xml
6c7adef8 588%{_datadir}/mythtv/themes/default-wide/weather-ui.xml
d78b97e1
ER
589%{_datadir}/mythtv/themes/default/cloudy.png
590%{_datadir}/mythtv/themes/default/fair.png
591%{_datadir}/mythtv/themes/default/flurries.png
592%{_datadir}/mythtv/themes/default/fog.png
593%{_datadir}/mythtv/themes/default/logo.png
594%{_datadir}/mythtv/themes/default/lshowers.png
595%{_datadir}/mythtv/themes/default/mcloudy.png
445e2012 596%{_datadir}/mythtv/themes/default/mw_*.png
d78b97e1
ER
597%{_datadir}/mythtv/themes/default/mwmain.png
598%{_datadir}/mythtv/themes/default/pcloudy.png
599%{_datadir}/mythtv/themes/default/rainsnow.png
600%{_datadir}/mythtv/themes/default/showers.png
601%{_datadir}/mythtv/themes/default/snowshow.png
602%{_datadir}/mythtv/themes/default/sunny.png
603%{_datadir}/mythtv/themes/default/thunshowers.png
604%{_datadir}/mythtv/themes/default/unknown.png
445e2012 605%{_datadir}/mythtv/themes/default-wide/mw-*.png
f76d04d4 606%endif
d78b97e1 607
f76d04d4
ER
608%if %{with mythgallery}
609%files -n mythgallery -f mythgallery.lang
d78b97e1 610%defattr(644,root,root,755)
beab7214 611%doc mythgallery/README
d78b97e1
ER
612%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgallery.so
613%{_datadir}/mythtv/themes/default/gallery-ui.xml
6c7adef8 614%{_datadir}/mythtv/themes/default-wide/gallery-ui.xml
d78b97e1 615%{_datadir}/mythtv/themes/default/gallery-*.png
f76d04d4 616# FIXME: this is definately stupid path
513b080c 617/var/lib/pictures
f76d04d4 618%endif
d78b97e1 619
f76d04d4
ER
620%if %{with mythgame}
621%files -n mythgame -f mythgame.lang
d78b97e1 622%defattr(644,root,root,755)
6c7adef8 623#%doc mythgame/README
d78b97e1
ER
624%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so
625%{_datadir}/mythtv/games
d78b97e1
ER
626%{_datadir}/mythtv/game_settings.xml
627%{_datadir}/mythtv/themes/default/game-ui.xml
6c7adef8 628%{_datadir}/mythtv/themes/default-wide/game-ui.xml
629%endif
630
631%if %{with mythdvd}
632%files -n mythdvd
633%defattr(644,root,root,755)
634%attr(755,root,root) %{_bindir}/mtd
635%{_datadir}/mythtv/themes/default/dvd-ui.xml
636%{_datadir}/mythtv/themes/default-wide/dvd-ui.xml
637%{_datadir}/mythtv/themes/default/md_*.png
f76d04d4 638%endif
d78b97e1 639
f76d04d4
ER
640%if %{with mythnews}
641%files -n mythnews -f mythnews.lang
d78b97e1 642%defattr(644,root,root,755)
123e986b 643%doc mythnews/README mythnews/AUTHORS
d78b97e1
ER
644%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnews.so
645%{_datadir}/mythtv/mythnews
646%{_datadir}/mythtv/themes/default/news-ui.xml
ba857471 647# DUPLICATE WITH MYTHFLIX?
648%{_datadir}/mythtv/themes/default/news-info-bg.png
6c7adef8 649%{_datadir}/mythtv/themes/default/enclosures.png
650%{_datadir}/mythtv/themes/default/need-download.png
651%{_datadir}/mythtv/themes/default/podcast.png
652%{_datadir}/mythtv/themes/default-wide/news-ui.xml
f76d04d4 653%endif
d78b97e1 654
f76d04d4
ER
655%if %{with mythbrowser}
656%files -n mythbrowser -f mythbrowser.lang
d78b97e1 657%defattr(644,root,root,755)
b0c55580 658%doc mythbrowser/README mythbrowser/AUTHORS
d78b97e1
ER
659%attr(755,root,root) %{_bindir}/mythbrowser
660%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbookmarkmanager.so
6c7adef8 661%{_datadir}/mythtv/themes/default/mb_progress*.png
662%{_datadir}/mythtv/themes/default/browser-ui.xml
663%{_datadir}/mythtv/themes/default-wide/browser-ui.xml
f76d04d4 664%endif
d78b97e1 665
f76d04d4
ER
666%if %{with mythphone}
667%files -n mythphone -f mythphone.lang
d78b97e1 668%defattr(644,root,root,755)
b0c55580 669%doc mythphone/README mythphone/AUTHORS mythphone/TODO
d78b97e1
ER
670%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythphone.so
671%{_datadir}/mythtv/themes/default/phone-ui.xml
672%{_datadir}/mythtv/themes/default/webcam-ui.xml
673%{_datadir}/mythtv/themes/default/mp_*.png
674%{_datadir}/mythtv/themes/default/phone.png
f76d04d4 675%endif
5e68f3bc 676
f76d04d4 677%if %{with mythweb}
5e68f3bc
ER
678%files -n mythweb
679%defattr(644,root,root,755)
6c7adef8 680%doc mythweb/README
681#%doc mythweb/data/htaccess
f76d04d4
ER
682%dir %attr(750,root,http) %{_webapps}/%{_webapp}
683%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
684%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
3cfccba6
ER
685#%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/*.php
686#%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/*.dat
f76d04d4 687%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htpasswd
5e68f3bc 688%{_datadir}/mythweb
f76d04d4 689%dir %attr(771,root,http) /var/cache/mythweb
5e68f3bc
ER
690%dir %attr(771,root,http) /var/cache/mythweb/image_cache
691%dir %attr(771,root,http) /var/cache/mythweb/php_sessions
f76d04d4
ER
692%dir %attr(771,root,http) /var/cache/mythweb/tv_icons
693%endif
694
695%if %{with mythflix}
696%files -n mythflix -f mythflix.lang
697%defattr(644,root,root,755)
698%doc mythflix/{AUTHORS,ChangeLog,README}
699%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythflix.so
700%dir %{_datadir}/mythtv/mythflix
701%{_datadir}/mythtv/mythflix/netflix-rss.xml
702%dir %{_datadir}/mythtv/mythflix/scripts
703%attr(755,root,root) %{_datadir}/mythtv/mythflix/scripts/netflix.pl
704%{_datadir}/mythtv/netflix_menu.xml
705%{_datadir}/mythtv/themes/default/title_netflix.png
6c7adef8 706%{_datadir}/mythtv/themes/default/mythflix_background.png
f76d04d4 707%{_datadir}/mythtv/themes/default/netflix-ui.xml
6c7adef8 708%{_datadir}/mythtv/themes/default-wide/netflix-ui.xml
709%{_datadir}/mythtv/themes/default-wide/netflix-bg.png
f76d04d4
ER
710# DUPLICATE WITH MYTHNEWS?
711%{_datadir}/mythtv/themes/default/news-info-bg.png
712%endif
713
445e2012 714%if %{with mythmovies}
6c7adef8 715%files -n mythmovies
716%defattr(644,root,root,755)
717#-f mythmovies.lang
445e2012
JK
718%defattr(644,root,root,755)
719%doc mythmovies/{README,TODO}
720%attr(755,root,root) %{_bindir}/ignyte
721%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmovies.so
722%{_datadir}/mythtv/themes/default/movies-ui.xml
723%{_datadir}/mythtv/themes/default-wide/movies-ui.xml
724%endif
725
726%if %{with mythzoneminder}
6c7adef8 727%files -n mythzoneminder
728%defattr(644,root,root,755)
729#-f mythmovies.lang
445e2012 730%defattr(644,root,root,755)
6c7adef8 731%doc mythzoneminder/{AUTHORS,README}
445e2012
JK
732%attr(755,root,root) %{_bindir}/mythzmserver
733%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythzoneminder.so
6c7adef8 734%dir %{_datadir}/mythtv/zonemindermenu.xml
445e2012
JK
735%{_datadir}/mythtv/themes/default/zoneminder-ui.xml
736%{_datadir}/mythtv/themes/default-wide/zoneminder-ui.xml
6c7adef8 737%{_datadir}/mythtv/themes/default/mz_*png
445e2012 738%endif
This page took 0.210002 seconds and 4 git commands to generate.