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