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