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