]>
Commit | Line | Data |
---|---|---|
14b5eb75 | 1 | # |
f76d04d4 ER |
2 | # Conditional build: |
3 | %bcond_without binary # skip building binary plugins (build only mythweb) | |
e0bde78e | 4 | %bcond_without mytharchive # disable building mytharchive plugin |
5 | %bcond_without mythbrowser # disable building building mythbrowser plugin | |
fe0648cb | 6 | %bcond_without mythnetvision # disable building mythnetvision plugin |
f76d04d4 | 7 | %bcond_without mythgallery # disable building mythgallery plugin |
e0bde78e | 8 | %bcond_without mythgame # disable building mythgame plugin |
f76d04d4 | 9 | %bcond_without mythmusic # disable building mythmusic plugin |
e0bde78e | 10 | %bcond_without mythnews # disable building mythnews plugin |
11 | %bcond_without mythvideo # disable building mythvideo plugin | |
399859b9 | 12 | # Mythweather disabled, as we need DateTime::Format::ISO8601 first |
13 | # not present by default in PLD | |
e0bde78e | 14 | %bcond_with mythweather # enable building mythweather plugin |
15 | %bcond_without mythweb # disable building mythweb plugin | |
6c7adef8 | 16 | %bcond_without mythzoneminder # disable building mythzoneminder plugin |
17 | ||
f49ccae0 | 18 | %if %{without binary} |
beab7214 | 19 | %undefine with_mytharchive |
f76d04d4 | 20 | %undefine with_mythbrowser |
fe0648cb | 21 | %undefine with_mythnetvision |
f76d04d4 ER |
22 | %undefine with_mythgallery |
23 | %undefine with_mythgame | |
24 | %undefine with_mythmusic | |
25 | %undefine with_mythnews | |
f76d04d4 ER |
26 | %undefine with_mythvideo |
27 | %undefine with_mythweather | |
f76d04d4 ER |
28 | %endif |
29 | ||
a8181a32 | 30 | %include /usr/lib/rpm/macros.perl |
f76d04d4 | 31 | |
20cc2885 | 32 | Summary: Main MythTV plugins |
9478e970 | 33 | Summary(pl.UTF-8): Główne wtyczki MythTV |
d78b97e1 | 34 | Name: mythplugins |
92d20c96 | 35 | Version: 0.26.0 |
35a6e037 | 36 | Release: 0.1 |
69870715 | 37 | License: GPL v2 |
d78b97e1 | 38 | Group: Applications/Multimedia |
92d20c96 JR |
39 | Source0: ftp://ftp.osuosl.org/pub/mythtv/%{name}-%{version}.tar.bz2 |
40 | # Source0-md5: 15bd7b2f4173488966f3d761e0eacffa | |
5e68f3bc | 41 | Source1: mythweb.conf |
ba43fb99 | 42 | Source2: mythweb_lighttpd.conf |
77c791cb | 43 | Source3: htdigest.sh |
44 | Source4: http_servers_conf_tips.txt | |
ba43fb99 | 45 | Patch0: mythweb-chdir.patch |
46 | Patch10: %{name}-compile_fixes_for_qt_4_7.patch | |
6c7adef8 | 47 | Patch20: %{name}-mytharchive-INT64.patch |
20cc2885 | 48 | URL: http://www.mythtv.org/ |
f76d04d4 ER |
49 | %if %{with binary} |
50 | %if %{with mythgallery} || %{with myhtmusic} | |
20cc2885 | 51 | BuildRequires: OpenGL-devel |
f76d04d4 | 52 | %endif |
6c7adef8 | 53 | BuildRequires: Qt3Support-devel |
54 | BuildRequires: QtCore-devel | |
55 | BuildRequires: QtGui-devel | |
56 | BuildRequires: QtNetwork-devel | |
57 | BuildRequires: QtOpenGL-devel | |
58 | BuildRequires: QtSql-devel | |
59 | BuildRequires: QtWebKit-devel | |
60 | BuildRequires: QtXml-devel | |
d78b97e1 | 61 | BuildRequires: SDL-devel |
69870715 ER |
62 | BuildRequires: a52dec-libs-devel |
63 | BuildRequires: cdparanoia-III-devel | |
64 | BuildRequires: faad2-devel >= 2.0-5.2 | |
f76d04d4 | 65 | %{?with_mythmusic:BuildRequires: fftw-devel >= 2.1.3} |
d78b97e1 | 66 | BuildRequires: flac-devel >= 1.0.4 |
69870715 | 67 | BuildRequires: freetype-devel |
f76d04d4 | 68 | BuildRequires: libcdaudio-devel >= 0.99.12p2 |
69870715 ER |
69 | BuildRequires: libdvdcss-devel >= 1.2.7 |
70 | BuildRequires: libdvdread-devel >= 0.9.4 | |
f76d04d4 | 71 | %{?with_mythgallery:BuildRequires: libexif-devel >= 1:0.6.9} |
69870715 | 72 | BuildRequires: libfame-devel >= 0.9.0 |
d78b97e1 ER |
73 | BuildRequires: libid3tag-devel |
74 | BuildRequires: libmad-devel | |
92d20c96 | 75 | BuildRequires: libmyth-devel > 0.26 |
69870715 | 76 | BuildRequires: libstdc++-devel |
d78b97e1 | 77 | BuildRequires: libtiff-devel |
5d54ed98 | 78 | BuildRequires: libvisual-devel |
f76d04d4 | 79 | BuildRequires: libvorbis-devel >= 1:1.0 |
d78b97e1 | 80 | BuildRequires: mjpegtools-devel >= 1.6.1 |
69870715 | 81 | BuildRequires: nasm |
beab7214 | 82 | BuildRequires: patchutils |
ba43fb99 | 83 | %{?with_mythweather:BuildRequires: perl-DateTime-Format-ISO8601} |
84 | %{?with_mythweather:BuildRequires: perl-Image-Size} | |
399859b9 | 85 | %{?with_mythweather:BuildRequires: perl-XML-Simple} |
86 | %{?with_mythweather:BuildRequires: perl-XML-XPath} | |
35a6e037 JK |
87 | %{?with_mythnetvision:BuildRequires: python-MythTV} |
88 | %{?with_mythnetvision:BuildRequires: python-oauth} | |
6c7adef8 | 89 | BuildRequires: qt4-build |
90 | BuildRequires: qt4-qmake | |
20cc2885 JB |
91 | BuildRequires: rpm-perlprov >= 4.1-13 |
92 | BuildRequires: sed >= 4.0 | |
6c7adef8 | 93 | %{?with_mythmusic:BuildRequires: taglib-devel} |
6c7adef8 | 94 | BuildRequires: xorg-lib-libX11-devel |
69870715 ER |
95 | BuildRequires: xvid-devel >= 1:0.9.1 |
96 | BuildRequires: zlib-devel | |
f76d04d4 | 97 | %endif |
34c55709 JR |
98 | Obsoletes: mythdvd < %{version}-%{release} |
99 | Obsoletes: mythmovies < %{version}-%{release} | |
beab7214 | 100 | %{?with_mytharchive:Requires: mytharchive} |
f76d04d4 | 101 | %{?with_mythbrowser:Requires: mythbrowser} |
f76d04d4 ER |
102 | %{?with_mythgallery:Requires: mythgallery} |
103 | %{?with_mythgame:Requires: mythgame} | |
104 | %{?with_mythmysic:Requires: mythmusic} | |
ba43fb99 | 105 | %{?with_mythnetvision:Requires: mythnetvision} |
f76d04d4 | 106 | %{?with_mythnews:Requires: mythnews} |
f76d04d4 ER |
107 | %{?with_mythvideo:Requires: mythvideo} |
108 | %{?with_mythweather:Requires: mythweather} | |
109 | %{?with_mythweb:Requires: mythweb} | |
e3001b4f | 110 | ExclusiveArch: %{ix86} %{x8664} ppc |
d78b97e1 ER |
111 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
112 | ||
7e11527f | 113 | %define myth_api_version %(awk -vFS=. '/^LIBVERSION/{sub("LIBVERSION = ", ""); printf ("%s.%s", $1, $2)}' %{_datadir}/mythtv/build/settings.pro 2>/dev/null || echo ERROR) |
f76d04d4 ER |
114 | %define _webapps /etc/webapps |
115 | %define _webapp mythweb | |
69870715 | 116 | |
d78b97e1 ER |
117 | %description |
118 | This is a consolidation of all the official MythTV plugins that used | |
119 | to be distributed as separate downloads from mythtv.org. | |
120 | ||
c2db80a4 JR |
121 | %description -l pl.UTF-8 |
122 | Jest to zbiór wszystkich oficjalnych wtyczek MythTV, które były | |
123 | wcześniej rozpowszechniane jako osobne pakiety na mythtv.org. | |
20cc2885 | 124 | |
beab7214 | 125 | %package -n mytharchive |
68bb720e | 126 | Summary: A MythTV module to create and burn DVDs |
9478e970 | 127 | Summary(pl.UTF-8): Moduł MythTV do tworzenia i wypalania DVD |
beab7214 | 128 | Group: Applications/Multimedia |
6c7adef8 | 129 | Requires: dvdauthor |
130 | Requires: mjpegtools | |
1df3695d | 131 | Requires: mythtv-frontend-api = %{myth_api_version} |
6c7adef8 | 132 | Requires: python-MySQLdb |
133 | Requires: python-PIL | |
134 | Suggests: dvdrtools-mkisofs | |
beab7214 ER |
135 | |
136 | %description -n mytharchive | |
137 | MythArchive is a MythTV style plugin that uses the Mythburn Script to | |
68bb720e | 138 | create and burn DVDs from MythTV recordings, MythVideo files or any |
beab7214 ER |
139 | video files available on a MythTV system. It can also export |
140 | recordings to a native archive format that can then be imported back | |
68bb720e JB |
141 | into a MythTV system restoring all the associated metadata. |
142 | ||
c2db80a4 JR |
143 | %description -n mytharchive -l pl.UTF-8 |
144 | MythArchive to wtyczka MythTV używająca skryptu Mythburn do tworzenia | |
145 | i wypalania płyt DVD z nagrań MythTV, plików MythVideo lub dowolnych | |
146 | innych plików z filmami dostępnych w systemie MythTV. Może także | |
147 | eksportować nagrania do natywnego formatu archiwum, który potem można | |
148 | zaimportować z powrotem do systemu MythTV przywracając wszystkie | |
149 | związane z nimi metadane. | |
beab7214 | 150 | |
d78b97e1 | 151 | %package -n mythmusic |
20cc2885 | 152 | Summary: The music player add-on module for MythTV |
9478e970 | 153 | Summary(pl.UTF-8): Moduł odtwarzacza muzyki dla MythTV |
d78b97e1 | 154 | Group: Applications/Multimedia |
1df3695d | 155 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
156 | |
157 | %description -n mythmusic | |
ba43fb99 | 158 | Music add-on for MythTV. Support playlists, visualisations, tag |
159 | editing and plays many popular audio file formats - mp3, flac, wav, | |
160 | ogg etc. | |
20cc2885 | 161 | |
c2db80a4 | 162 | %description -n mythmusic -l pl.UTF-8 |
ba43fb99 | 163 | Odtwarzacz muzyki dla MythTV. Obsługuje listy odtwarzania, |
164 | wizualizacje, edycję tagów. Potrafi odtwarzać wiele popularnych | |
165 | formatów audio - mp3, flac, wav, ogg itd. | |
d78b97e1 ER |
166 | |
167 | %package -n mythvideo | |
20cc2885 | 168 | Summary: A generic video player frontend module for MythTV |
9478e970 | 169 | Summary(pl.UTF-8): Moduł ogólnego interfejsu do odtwarzania obrazu dla MythTV |
d78b97e1 ER |
170 | Group: Applications/Multimedia |
171 | Requires: mplayer | |
1df3695d | 172 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
173 | |
174 | %description -n mythvideo | |
6c7adef8 | 175 | A generic video and dvd player frontend module for MythTV. |
d78b97e1 | 176 | |
c2db80a4 JR |
177 | %description -n mythvideo -l pl.UTF-8 |
178 | Moduł ogólnego interfejsu do odtwarzania obrazu dla MythTV. | |
20cc2885 | 179 | |
d78b97e1 | 180 | %package -n mythweather |
20cc2885 | 181 | Summary: A MythTV module that displays a weather forcast |
9478e970 | 182 | Summary(pl.UTF-8): Moduł MythTV wyświetlający prognozę pogody |
d78b97e1 | 183 | Group: Applications/Multimedia |
1df3695d | 184 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
185 | |
186 | %description -n mythweather | |
187 | A MythTV module that displays a weather forcast. | |
188 | ||
c2db80a4 JR |
189 | %description -n mythweather -l pl.UTF-8 |
190 | Moduł MythTV wyświetlający prognozę pogody. | |
20cc2885 | 191 | |
d78b97e1 | 192 | %package -n mythgallery |
20cc2885 | 193 | Summary: A gallery/slideshow module for MythTV |
9478e970 | 194 | Summary(pl.UTF-8): Moduł galerii/pokazu slajdów dla MythTV |
d78b97e1 | 195 | Group: Applications/Multimedia |
1df3695d | 196 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
197 | |
198 | %description -n mythgallery | |
199 | A gallery/slideshow module for MythTV. | |
200 | ||
c2db80a4 JR |
201 | %description -n mythgallery -l pl.UTF-8 |
202 | Moduł galerii/pokazu slajdów dla MythTV. | |
20cc2885 | 203 | |
d78b97e1 | 204 | %package -n mythgame |
20cc2885 | 205 | Summary: A game frontend (xmame, nes, snes, pc) for MythTV |
9478e970 | 206 | Summary(pl.UTF-8): Interfejs do gier (xmame, nes, snes, pc) dla MythTV |
d78b97e1 | 207 | Group: Applications/Multimedia |
1df3695d | 208 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
209 | |
210 | %description -n mythgame | |
211 | A game frontend (xmame, nes, snes, pc) for MythTV. | |
212 | ||
c2db80a4 | 213 | %description -n mythgame -l pl.UTF-8 |
20cc2885 JB |
214 | Interfejs do gier (xmame, nes, snes, pc) dla MythTV. |
215 | ||
d78b97e1 | 216 | %package -n mythnews |
20cc2885 | 217 | Summary: A RSS News Feed plugin for MythTV |
9478e970 | 218 | Summary(pl.UTF-8): Wtyczka czytnika nowinek RSS dla MythTV |
d78b97e1 | 219 | Group: Applications/Multimedia |
1df3695d | 220 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
221 | |
222 | %description -n mythnews | |
20cc2885 JB |
223 | A RSS News Feed plugin for MythTV. |
224 | ||
c2db80a4 | 225 | %description -n mythnews -l pl.UTF-8 |
20cc2885 | 226 | Wtyczka czytnika nowinek RSS dla MythTV. |
d78b97e1 ER |
227 | |
228 | %package -n mythbrowser | |
20cc2885 | 229 | Summary: A small web browser module for MythTV |
9478e970 | 230 | Summary(pl.UTF-8): Moduł małej przeglądarki WWW dla MythTV |
d78b97e1 | 231 | Group: Applications/Multimedia |
1df3695d | 232 | Requires: mythtv-frontend-api = %{myth_api_version} |
d78b97e1 ER |
233 | |
234 | %description -n mythbrowser | |
235 | MythBrowser is a full fledged web-browser (multiple tabs) to display | |
236 | webpages in full-screen mode. Simple page navigation is possible. | |
237 | Starting with version 0.13 it also has full support for mouse driven | |
20cc2885 | 238 | navigation (right mouse opens and closes the popup menu). |
d78b97e1 ER |
239 | |
240 | MythBrowser also contains a BookmarkManager to manage the website | |
241 | links in a simple mythplugin. | |
242 | ||
c2db80a4 JR |
243 | %description -n mythbrowser -l pl.UTF-8 |
244 | MythBrowser to w pełni funkcjonalna przeglądarka WWW (z wieloma | |
245 | zakładkami) wyświetlająca strony WWW w trybie pełnoekranowym. Możliwa | |
246 | jest prosta nawigacja po stronie. Począwszy od wersji 0.13 ma pełną | |
247 | obsługę nawigacji myszką (prawy przycisk otwiera i zamywa wyskakujące | |
20cc2885 JB |
248 | menu). |
249 | ||
c2db80a4 | 250 | MythBrowser zawiera także BookmarkManagera do zarządzania odnośnikami |
20cc2885 JB |
251 | do stron w prostej wtyczce myth. |
252 | ||
5e68f3bc ER |
253 | %package -n mythweb |
254 | Summary: The web interface to MythTV | |
9478e970 | 255 | Summary(pl.UTF-8): Interfejs WWW do MythTV |
5e68f3bc | 256 | Group: Applications/Multimedia |
3515083d ER |
257 | Requires: php(mysql) |
258 | Requires: php(posix) | |
6c7adef8 | 259 | Requires: webapps |
3515083d | 260 | Requires: webserver(php) >= 4.3 |
5e68f3bc ER |
261 | |
262 | %description -n mythweb | |
263 | The web interface to MythTV. | |
264 | ||
c2db80a4 | 265 | %description -n mythweb -l pl.UTF-8 |
64c9f7c0 JB |
266 | Interfejs WWW do MythTV. |
267 | ||
fe0648cb | 268 | %package -n mythnetvision |
269 | Summary: Mythtv extension to watch network movie shows | |
270 | Summary(pl.UTF-8): Dodatek do MythTV do oglądania sieciowych transmisji | |
f76d04d4 | 271 | Group: Applications/Multimedia |
eb38eece | 272 | Requires: mythbrowser |
ba43fb99 | 273 | Requires: mythtv-frontend-api = %{myth_api_version} |
35a6e037 JK |
274 | Requires: python-MythTV |
275 | Requires: python-oauth | |
f76d04d4 | 276 | |
fe0648cb | 277 | %description -n mythnetvision |
278 | Mythtv extension to watch network movie shows (ex. YouTube). | |
f76d04d4 | 279 | |
fe0648cb | 280 | %description -n mythnetvision -l pl.UTF-8 |
ba43fb99 | 281 | Dodatek do MythTV do oglądania sieciowych transmisji. Na przykład z |
282 | YouTube. | |
f76d04d4 | 283 | |
445e2012 | 284 | %package -n mythzoneminder |
6c7adef8 | 285 | Summary: MythTV security TV manager |
286 | Summary(pl.UTF-8): Obsługa kamer przemysłowych dla MythTV | |
ba857471 | 287 | Group: Applications/Multimedia |
1df3695d | 288 | Requires: mythtv-frontend-api = %{myth_api_version} |
445e2012 JK |
289 | |
290 | %description -n mythzoneminder | |
6c7adef8 | 291 | MythTV security TV manager. |
445e2012 | 292 | |
6c7adef8 | 293 | |
294 | %description -n mythzoneminder -l pl.UTF-8 | |
295 | Obsługa kamer przemysłowych dla MythTV. | |
445e2012 | 296 | |
d78b97e1 | 297 | %prep |
ba43fb99 | 298 | %setup -q |
299 | %patch0 -p1 | |
35a6e037 | 300 | #%patch10 -p1 |
6c7adef8 | 301 | %patch20 -p1 |
d78b97e1 | 302 | |
f76d04d4 ER |
303 | # lib64 fix - enable to update patch |
304 | %if %{_lib} != "lib" && 0 | |
69870715 | 305 | find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \ |
123e986b | 306 | xargs grep -l /lib/ . | xargs sed -i -e ' |
ba43fb99 | 307 | s,%{_prefix}/lib/,/%{_lib}/,g |
cb9924d8 | 308 | s,{PREFIX}/lib,{PREFIX}/%{_lib},g |
123e986b | 309 | ' |
f76d04d4 | 310 | exit 1 |
a8181a32 ER |
311 | %endif |
312 | ||
d78b97e1 | 313 | %build |
f76d04d4 | 314 | %if %{with binary} |
69870715 | 315 | export QTDIR="%{_prefix}" |
123e986b | 316 | # Not gnu configure |
69870715 | 317 | %configure \ |
6c7adef8 | 318 | --libdir-name=`basename %{_lib}` \ |
69870715 | 319 | --enable-all \ |
beab7214 | 320 | %{!?with_mytharchive:--disable-mytharchive} \ |
f76d04d4 | 321 | %{!?with_mythbrowser:--disable-mythbrowser} \ |
f76d04d4 ER |
322 | %{!?with_mythgallery:--disable-mythgallery}%{?with_mythgallery:--enable-exif --enable-new-exif --enable-opengl} \ |
323 | %{!?with_mythgame:--disable-mythgame} \ | |
324 | %{!?with_mythmusic:--disable-mythmusic}%{?with_mythmysic:--enable-fftw --enable-sdl --enable-aac --enable-opengl} \ | |
325 | %{!?with_mythnews:--disable-mythnews} \ | |
f76d04d4 ER |
326 | %{!?with_mythvideo:--disable-mythvideo} \ |
327 | %{!?with_mythweather:--disable-mythweather} \ | |
328 | %{!?with_mythweb:--disable-mythweb} \ | |
fe0648cb | 329 | %{!?with_mythnetvision:--disable-mythnetvision} \ |
f76d04d4 ER |
330 | |
331 | mv mythconfig.mak mythconfig.mak.old | |
332 | cp mythconfig.mak.old mythconfig.mak | |
333 | cat <<'EOF'>> mythconfig.mak | |
334 | QMAKE_CXX=%{__cxx} | |
335 | QMAKE_CC=%{__cc} | |
336 | OPTFLAGS=%{rpmcflags} -Wall -Wno-switch | |
35a6e037 JK |
337 | ECFLAGS=%{rpmcflags} %{rpmcppflags} -fomit-frame-pointer |
338 | ECXXFLAGS=%{rpmcflags} %{rpmcppflags} -fomit-frame-pointer -D__STDC_CONSTANT_MACROS | |
f76d04d4 ER |
339 | EOF |
340 | ||
d78b97e1 | 341 | %{__make} |
f76d04d4 | 342 | %endif |
d78b97e1 ER |
343 | |
344 | %install | |
345 | rm -rf $RPM_BUILD_ROOT | |
f76d04d4 | 346 | %if %{with binary} |
513b080c | 347 | export QTDIR="%{_prefix}" |
20cc2885 JB |
348 | %{__make} install \ |
349 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
d78b97e1 | 350 | |
6c7adef8 | 351 | install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythbrowser,mythvideo,pictures} |
f76d04d4 | 352 | %if %{with mythgame} |
d78b97e1 ER |
353 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens} |
354 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens} | |
16792a62 | 355 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs} |
d78b97e1 | 356 | install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens |
a8181a32 | 357 | cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC |
f76d04d4 ER |
358 | %endif |
359 | %endif | |
d78b97e1 | 360 | |
f76d04d4 | 361 | %if %{with mythweb} |
3cfccba6 | 362 | cd mythweb |
77c791cb | 363 | cp -a %{SOURCE3} ./ |
364 | cp -a %{SOURCE4} ./ | |
3cfccba6 | 365 | install -d $RPM_BUILD_ROOT%{_datadir}/mythweb |
f76d04d4 ER |
366 | install -d $RPM_BUILD_ROOT/var/cache/mythweb/{image_cache,php_sessions,tv_icons} |
367 | install -d $RPM_BUILD_ROOT%{_webapps}/%{_webapp} | |
1ed9c09d | 368 | cp -a *.php *.pl classes configuration includes js modules skins $RPM_BUILD_ROOT%{_datadir}/mythweb |
1789d48a | 369 | ln -sf /var/cache/mythweb $RPM_BUILD_ROOT%{_datadir}/mythweb/data |
f76d04d4 ER |
370 | install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf |
371 | install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf | |
1789d48a | 372 | install %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf |
f76d04d4 | 373 | touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htpasswd |
1789d48a | 374 | touch $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/htdigest |
3cfccba6 | 375 | cd - |
f76d04d4 ER |
376 | %endif |
377 | ||
fe0648cb | 378 | rm -f $RPM_BUILD_ROOT%{_datadir}/data |
3cfccba6 | 379 | mv $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/mythbrowser_{pt_br,pt}.qm |
35a6e037 | 380 | for p in mytharchive mythbrowser mythgallery mythgame mythmusic mythnetvision mythnews mythvideo mythweather mythzoneminder; do |
f76d04d4 | 381 | for l in $RPM_BUILD_ROOT%{_datadir}/mythtv/i18n/${p}_*.qm; do |
6c7adef8 | 382 | echo $l | sed -e "s,^$RPM_BUILD_ROOT\(.*${p}_\(.*\).qm\),%%lang(\2) \1," |
f76d04d4 ER |
383 | done > $p.lang |
384 | done | |
5e68f3bc | 385 | |
d78b97e1 | 386 | %clean |
69870715 | 387 | rm -rf $RPM_BUILD_ROOT |
d78b97e1 | 388 | |
9c2555e2 | 389 | %triggerin -n mythweb -- apache1 < 1.3.37-3, apache1-base |
f76d04d4 ER |
390 | %webapp_register apache %{_webapp} |
391 | ||
9c2555e2 | 392 | %triggerun -n mythweb -- apache1 < 1.3.37-3, apache1-base |
f76d04d4 ER |
393 | %webapp_unregister apache %{_webapp} |
394 | ||
395 | %triggerin -n mythweb -- apache < 2.2.0, apache-base | |
396 | %webapp_register httpd %{_webapp} | |
397 | ||
1789d48a | 398 | %triggerin -n mythweb -- lighttpd |
399 | %webapp_register lighttpd %{_webapp} | |
400 | ||
f76d04d4 ER |
401 | %triggerun -n mythweb -- apache < 2.2.0, apache-base |
402 | %webapp_unregister httpd %{_webapp} | |
403 | ||
1789d48a | 404 | %triggerun -n mythweb -- lighttpd |
405 | %webapp_unregister lighttpd %{_webapp} | |
406 | ||
f76d04d4 ER |
407 | %triggerpostun -n mythweb -- mythweb < 0.19 |
408 | for 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 | |
409 | if [ -f /etc/mythweb/$i.rpmsave ]; then | |
410 | mv -f %{_webapps}/%{_webapp}/$i{,.rpmnew} | |
411 | mv -f /etc/mythweb/$i.rpmsave %{_webapps}/%{_webapp}/$i | |
412 | fi | |
413 | done | |
414 | sed -i -e 's,/etc/mythweb,%{_webapps}/%{_webapp},' %{_webapps}/%{_webapp}/{apache,httpd}.conf | |
415 | ||
416 | # migrate from apache-config macros | |
417 | if [ -f /etc/mythweb/apache.conf.rpmsave ]; then | |
418 | if [ -d /etc/apache/webapps.d ]; then | |
419 | cp -f %{_webapps}/%{_webapp}/apache.conf{,.rpmnew} | |
420 | cp -f /etc/mythweb/apache.conf.rpmsave %{_webapps}/%{_webapp}/apache.conf | |
421 | fi | |
422 | ||
423 | if [ -d /etc/httpd/webapps.d ]; then | |
424 | cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew} | |
425 | cp -f /etc/mythweb/apache.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf | |
426 | fi | |
427 | rm -f /etc/mythweb/apache.conf.rpmsave | |
428 | fi | |
429 | ||
430 | if [ -L /etc/apache/conf.d/99_mythplugins.conf ]; then | |
431 | rm -f /etc/apache/conf.d/99_mythplugins.conf | |
432 | /usr/sbin/webapp register apache %{_webapp} | |
433 | %service -q apache reload | |
434 | fi | |
435 | if [ -L /etc/httpd/httpd.conf/99_mythplugins.conf ]; then | |
436 | rm -f /etc/httpd/httpd.conf/99_mythplugins.conf | |
437 | /usr/sbin/webapp register httpd %{_webapp} | |
438 | %service -q httpd reload | |
439 | fi | |
5e68f3bc | 440 | |
77c791cb | 441 | %post -n mythweb |
442 | echo "Read %{_docdir}/mythweb-%{version}/http_servers_conf_tips.txt.gz to find | |
443 | which packages you can need to run mythweb and how to set it quickly." | |
444 | ||
d78b97e1 ER |
445 | %files |
446 | %defattr(644,root,root,755) | |
d78b97e1 | 447 | |
beab7214 ER |
448 | %if %{with mytharchive} |
449 | %files -n mytharchive -f mytharchive.lang | |
450 | %defattr(644,root,root,755) | |
ede751f4 | 451 | %doc mytharchive/AUTHORS mytharchive/README mytharchive/TODO |
beab7214 ER |
452 | %attr(755,root,root) %{_bindir}/mytharchivehelper |
453 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmytharchive.so | |
beab7214 | 454 | %{_datadir}/mythtv/archivemenu.xml |
6c7adef8 | 455 | %{_datadir}/mythtv/archiveutils.xml |
beab7214 ER |
456 | %{_datadir}/mythtv/themes/default/ma_*.png |
457 | %{_datadir}/mythtv/themes/default/mytharchive-ui.xml | |
458 | %{_datadir}/mythtv/themes/default/mythburn-ui.xml | |
459 | %{_datadir}/mythtv/themes/default/mythnative-ui.xml | |
6c7adef8 | 460 | %{_datadir}/mythtv/themes/default-wide/mytharchive-ui.xml |
461 | %{_datadir}/mythtv/themes/default-wide/mythburn-ui.xml | |
462 | %{_datadir}/mythtv/themes/default-wide/mythnative-ui.xml | |
beab7214 ER |
463 | %{_datadir}/mythtv/mytharchive |
464 | %endif | |
465 | ||
f76d04d4 ER |
466 | %if %{with mythmusic} |
467 | %files -n mythmusic -f mythmusic.lang | |
d78b97e1 | 468 | %defattr(644,root,root,755) |
beab7214 | 469 | %doc mythmusic/README mythmusic/AUTHORS mythmusic/musicdb |
d78b97e1 | 470 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so |
513b080c | 471 | /var/lib/mythmusic |
d78b97e1 ER |
472 | %{_datadir}/mythtv/musicmenu.xml |
473 | %{_datadir}/mythtv/music_settings.xml | |
f76d04d4 | 474 | %{_datadir}/mythtv/themes/default/music-ui.xml |
98f7401a | 475 | %{_datadir}/mythtv/themes/default/mm-titlelines.png |
6c7adef8 | 476 | %{_datadir}/mythtv/themes/default-wide/music-ui.xml |
98f7401a | 477 | %{_datadir}/mythtv/themes/default-wide/mm-titlelines.png |
d78b97e1 ER |
478 | %{_datadir}/mythtv/themes/default/ff_button_off.png |
479 | %{_datadir}/mythtv/themes/default/ff_button_on.png | |
480 | %{_datadir}/mythtv/themes/default/ff_button_pushed.png | |
6c7adef8 | 481 | %{_datadir}/mythtv/themes/default/miniplayer_background.png |
445e2012 | 482 | %{_datadir}/mythtv/themes/default/mm_*.png |
d78b97e1 | 483 | %{_datadir}/mythtv/themes/default/music-sel-bg.png |
d78b97e1 ER |
484 | %{_datadir}/mythtv/themes/default/next_button_off.png |
485 | %{_datadir}/mythtv/themes/default/next_button_on.png | |
486 | %{_datadir}/mythtv/themes/default/next_button_pushed.png | |
487 | %{_datadir}/mythtv/themes/default/pause_button_off.png | |
488 | %{_datadir}/mythtv/themes/default/pause_button_on.png | |
489 | %{_datadir}/mythtv/themes/default/pause_button_pushed.png | |
490 | %{_datadir}/mythtv/themes/default/play_button_off.png | |
491 | %{_datadir}/mythtv/themes/default/play_button_on.png | |
492 | %{_datadir}/mythtv/themes/default/play_button_pushed.png | |
493 | %{_datadir}/mythtv/themes/default/prev_button_off.png | |
494 | %{_datadir}/mythtv/themes/default/prev_button_on.png | |
495 | %{_datadir}/mythtv/themes/default/prev_button_pushed.png | |
496 | %{_datadir}/mythtv/themes/default/rew_button_off.png | |
497 | %{_datadir}/mythtv/themes/default/rew_button_on.png | |
498 | %{_datadir}/mythtv/themes/default/rew_button_pushed.png | |
499 | %{_datadir}/mythtv/themes/default/selectionbar.png | |
500 | %{_datadir}/mythtv/themes/default/stop_button_off.png | |
501 | %{_datadir}/mythtv/themes/default/stop_button_on.png | |
502 | %{_datadir}/mythtv/themes/default/stop_button_pushed.png | |
d78b97e1 | 503 | %{_datadir}/mythtv/themes/default/track_info_background.png |
6c7adef8 | 504 | %{_datadir}/mythtv/themes/default-wide/mm_*.png |
505 | %{_datadir}/mythtv/themes/default-wide/music-sel-bg.png | |
f76d04d4 | 506 | %endif |
d78b97e1 | 507 | |
f76d04d4 ER |
508 | %if %{with mythvideo} |
509 | %files -n mythvideo -f mythvideo.lang | |
d78b97e1 | 510 | %defattr(644,root,root,755) |
ede751f4 | 511 | %doc mythvideo/README* mythvideo/videodb mythvideo/contrib |
d78b97e1 | 512 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythvideo.so |
d78b97e1 | 513 | %{_datadir}/mythtv/themes/default/video-ui.xml |
ba857471 | 514 | %{_datadir}/mythtv/themes/default-wide/video-ui.xml |
6c7adef8 | 515 | %{_datadir}/mythtv/themes/default/mv_*.png |
445e2012 | 516 | %{_datadir}/mythtv/themes/default-wide/mv_*.png |
35a6e037 | 517 | %{_datadir}/mythtv/themes/default/md_*.png |
d78b97e1 ER |
518 | %{_datadir}/mythtv/video_settings.xml |
519 | %{_datadir}/mythtv/videomenu.xml | |
a8181a32 ER |
520 | %dir %{_datadir}/mythtv/mythvideo |
521 | %dir %{_datadir}/mythtv/mythvideo/scripts | |
fe0648cb | 522 | %dir %{_datadir}/mythtv/mythvideo/scripts/Movie |
523 | %dir %{_datadir}/mythtv/mythvideo/scripts/Movie/MythTV | |
d78b97e1 | 524 | %{_datadir}/mythtv/mythvideo/scripts/README |
98f7401a | 525 | %{_datadir}/mythtv/mythvideo/scripts/jamu.README |
526 | %{_datadir}/mythtv/mythvideo/scripts/jamu-example.conf | |
ba43fb99 | 527 | %{_datadir}/mythtv/mythvideo/scripts/Movie/MythTV/* |
445e2012 | 528 | %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/*.py |
513b080c | 529 | /var/lib/mythvideo |
f76d04d4 ER |
530 | %endif |
531 | ||
532 | %if %{with mythweather} | |
533 | %files -n mythweather -f mythweather.lang | |
d78b97e1 | 534 | %defattr(644,root,root,755) |
ede751f4 | 535 | %doc mythweather/AUTHORS mythweather/README |
d78b97e1 | 536 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythweather.so |
6c7adef8 | 537 | %{_datadir}/mythtv/mythweather |
538 | %{_datadir}/mythtv/weather_settings.xml | |
d78b97e1 | 539 | %{_datadir}/mythtv/themes/default/weather-ui.xml |
6c7adef8 | 540 | %{_datadir}/mythtv/themes/default-wide/weather-ui.xml |
d78b97e1 ER |
541 | %{_datadir}/mythtv/themes/default/cloudy.png |
542 | %{_datadir}/mythtv/themes/default/fair.png | |
543 | %{_datadir}/mythtv/themes/default/flurries.png | |
544 | %{_datadir}/mythtv/themes/default/fog.png | |
545 | %{_datadir}/mythtv/themes/default/logo.png | |
546 | %{_datadir}/mythtv/themes/default/lshowers.png | |
547 | %{_datadir}/mythtv/themes/default/mcloudy.png | |
445e2012 | 548 | %{_datadir}/mythtv/themes/default/mw_*.png |
d78b97e1 ER |
549 | %{_datadir}/mythtv/themes/default/mwmain.png |
550 | %{_datadir}/mythtv/themes/default/pcloudy.png | |
551 | %{_datadir}/mythtv/themes/default/rainsnow.png | |
552 | %{_datadir}/mythtv/themes/default/showers.png | |
553 | %{_datadir}/mythtv/themes/default/snowshow.png | |
554 | %{_datadir}/mythtv/themes/default/sunny.png | |
555 | %{_datadir}/mythtv/themes/default/thunshowers.png | |
556 | %{_datadir}/mythtv/themes/default/unknown.png | |
445e2012 | 557 | %{_datadir}/mythtv/themes/default-wide/mw-*.png |
f76d04d4 | 558 | %endif |
d78b97e1 | 559 | |
f76d04d4 ER |
560 | %if %{with mythgallery} |
561 | %files -n mythgallery -f mythgallery.lang | |
d78b97e1 | 562 | %defattr(644,root,root,755) |
ede751f4 | 563 | %doc mythgallery/AUTHORS mythgallery/README |
d78b97e1 ER |
564 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgallery.so |
565 | %{_datadir}/mythtv/themes/default/gallery-ui.xml | |
6c7adef8 | 566 | %{_datadir}/mythtv/themes/default-wide/gallery-ui.xml |
d78b97e1 | 567 | %{_datadir}/mythtv/themes/default/gallery-*.png |
513b080c | 568 | /var/lib/pictures |
f76d04d4 | 569 | %endif |
d78b97e1 | 570 | |
f76d04d4 ER |
571 | %if %{with mythgame} |
572 | %files -n mythgame -f mythgame.lang | |
d78b97e1 | 573 | %defattr(644,root,root,755) |
ede751f4 | 574 | %doc mythgame/contrib |
d78b97e1 ER |
575 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so |
576 | %{_datadir}/mythtv/games | |
d78b97e1 ER |
577 | %{_datadir}/mythtv/game_settings.xml |
578 | %{_datadir}/mythtv/themes/default/game-ui.xml | |
6c7adef8 | 579 | %{_datadir}/mythtv/themes/default-wide/game-ui.xml |
35a6e037 JK |
580 | %dir %{_datadir}/mythtv/metadata/Game |
581 | %attr(755,root,root) %{_datadir}/mythtv/metadata/Game/giantbomb.py | |
582 | %{_datadir}/mythtv/metadata/Game/giantbomb | |
f76d04d4 | 583 | %endif |
d78b97e1 | 584 | |
f76d04d4 ER |
585 | %if %{with mythnews} |
586 | %files -n mythnews -f mythnews.lang | |
d78b97e1 | 587 | %defattr(644,root,root,755) |
123e986b | 588 | %doc mythnews/README mythnews/AUTHORS |
d78b97e1 ER |
589 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnews.so |
590 | %{_datadir}/mythtv/mythnews | |
591 | %{_datadir}/mythtv/themes/default/news-ui.xml | |
ba857471 | 592 | %{_datadir}/mythtv/themes/default/news-info-bg.png |
6c7adef8 | 593 | %{_datadir}/mythtv/themes/default/enclosures.png |
594 | %{_datadir}/mythtv/themes/default/need-download.png | |
595 | %{_datadir}/mythtv/themes/default/podcast.png | |
596 | %{_datadir}/mythtv/themes/default-wide/news-ui.xml | |
f76d04d4 | 597 | %endif |
d78b97e1 | 598 | |
f76d04d4 ER |
599 | %if %{with mythbrowser} |
600 | %files -n mythbrowser -f mythbrowser.lang | |
d78b97e1 | 601 | %defattr(644,root,root,755) |
b0c55580 | 602 | %doc mythbrowser/README mythbrowser/AUTHORS |
98f7401a | 603 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythbrowser.so |
6c7adef8 | 604 | %{_datadir}/mythtv/themes/default/mb_progress*.png |
605 | %{_datadir}/mythtv/themes/default/browser-ui.xml | |
606 | %{_datadir}/mythtv/themes/default-wide/browser-ui.xml | |
f76d04d4 | 607 | %endif |
d78b97e1 | 608 | |
f76d04d4 | 609 | %if %{with mythweb} |
5e68f3bc ER |
610 | %files -n mythweb |
611 | %defattr(644,root,root,755) | |
25a966e5 | 612 | %doc mythweb/README mythweb/mythweb.conf.lighttpd |
77c791cb | 613 | %doc mythweb/htdigest.sh |
614 | %doc mythweb/http_servers_conf_tips.txt | |
f76d04d4 ER |
615 | %dir %attr(750,root,http) %{_webapps}/%{_webapp} |
616 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf | |
617 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf | |
f76d04d4 | 618 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htpasswd |
1789d48a | 619 | %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/lighttpd.conf |
620 | %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/htdigest | |
5e68f3bc | 621 | %{_datadir}/mythweb |
f76d04d4 | 622 | %dir %attr(771,root,http) /var/cache/mythweb |
5e68f3bc ER |
623 | %dir %attr(771,root,http) /var/cache/mythweb/image_cache |
624 | %dir %attr(771,root,http) /var/cache/mythweb/php_sessions | |
f76d04d4 ER |
625 | %dir %attr(771,root,http) /var/cache/mythweb/tv_icons |
626 | %endif | |
627 | ||
fe0648cb | 628 | %if %{with mythnetvision} |
629 | %files -n mythnetvision -f mythnetvision.lang | |
f76d04d4 | 630 | %defattr(644,root,root,755) |
fe0648cb | 631 | %doc mythnetvision/{AUTHORS,ChangeLog,README} |
35a6e037 | 632 | %attr(755,root,root) %{_bindir}/mythfillnetvision |
fe0648cb | 633 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythnetvision.so |
634 | %dir %{_datadir}/mythtv/mythnetvision | |
635 | %{_datadir}/mythtv/netvisionmenu.xml | |
fe0648cb | 636 | %dir %{_datadir}/mythtv/mythnetvision/icons |
637 | %dir %{_datadir}/mythtv/mythnetvision/icons/directories | |
638 | %{_datadir}/mythtv/mythnetvision/icons/*.png | |
38ddb290 | 639 | %dir %{_datadir}/mythtv/mythnetvision/icons/directories/film_genres |
fe0648cb | 640 | %{_datadir}/mythtv/mythnetvision/icons/directories/film_genres/*.png |
38ddb290 | 641 | %dir %{_datadir}/mythtv/mythnetvision/icons/directories/music_genres |
fe0648cb | 642 | %{_datadir}/mythtv/mythnetvision/icons/directories/music_genres/*.png |
38ddb290 | 643 | %dir %{_datadir}/mythtv/mythnetvision/icons/directories/topics |
fe0648cb | 644 | %{_datadir}/mythtv/mythnetvision/icons/directories/topics/*.png |
ba43fb99 | 645 | %{_datadir}/mythtv/themes/default-wide/netvision-ui.xml |
fe0648cb | 646 | %{_datadir}/mythtv/themes/default/netvision-ui.xml |
f76d04d4 ER |
647 | %endif |
648 | ||
445e2012 | 649 | %if %{with mythzoneminder} |
6c7adef8 | 650 | %files -n mythzoneminder |
651 | %defattr(644,root,root,755) | |
445e2012 | 652 | %defattr(644,root,root,755) |
6c7adef8 | 653 | %doc mythzoneminder/{AUTHORS,README} |
445e2012 JK |
654 | %attr(755,root,root) %{_bindir}/mythzmserver |
655 | %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythzoneminder.so | |
6c7adef8 | 656 | %dir %{_datadir}/mythtv/zonemindermenu.xml |
445e2012 JK |
657 | %{_datadir}/mythtv/themes/default/zoneminder-ui.xml |
658 | %{_datadir}/mythtv/themes/default-wide/zoneminder-ui.xml | |
6c7adef8 | 659 | %{_datadir}/mythtv/themes/default/mz_*png |
98f7401a | 660 | %{_datadir}/mythtv/i18n/mythzoneminder_*.qm |
445e2012 | 661 | %endif |