SPECS: mythplugins.spec - compiles
glen
glen at pld-linux.org
Thu Sep 8 15:42:34 CEST 2005
Author: glen Date: Thu Sep 8 13:42:34 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- compiles
---- Files affected:
SPECS:
mythplugins.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/mythplugins.spec
diff -u SPECS/mythplugins.spec:1.2 SPECS/mythplugins.spec:1.3
--- SPECS/mythplugins.spec:1.2 Thu Sep 8 03:51:51 2005
+++ SPECS/mythplugins.spec Thu Sep 8 15:42:28 2005
@@ -1,4 +1,7 @@
# $Revision$, $Date$
+# disable mythmusic,mythphone due to https://bugs.pld-linux.org/?do=details&id=5687
+%bcond_with mythmusic
+%bcond_with mythphone
Summary: Main MythTV plugins.
Name: mythplugins
Version: 0.18.1
@@ -9,7 +12,8 @@
Source0: http://www.mythtv.org/mc/%{name}-%{version}.tar.bz2
# Source0-md5: 1d94d19e2a13c24a408ced9b6c4f5b47
###
-Patch1: mythmusic-0.18-fftw2singleprec.patch
+Patch0: %{name}-configure.patch
+#Patch1: mythmusic-0.18-fftw2singleprec.patch
#Patch2: mythmusic-0.12-cdda.patch
#Patch10: mythvideo-0.16-math.patch
BuildRequires: SDL-devel
@@ -45,8 +49,8 @@
Requires: mythgame
Requires: mythmusic
Requires: mythnews
-Requires: mythphone
-Requires: mythvideo
+%{?with_mythphone:Requires: mythphone}
+%{?with_mythvideo:Requires: mythvideo}
Requires: mythweather
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -145,6 +149,7 @@
%prep
%setup -q
+%patch0 -p1
# lib64 fix
find '(' -name '*.[ch]' -o -name '*.cpp' -o -name '*.pro' ')' | \
@@ -165,13 +170,13 @@
#%endif
-%patch1 -p0 -b .sfftw
+#%patch1 -p0 -b .sfftw
cd mythmusic
#%patch2 -p0 -b .cdda
# Fix /mnt/store -> /var/lib/mythmusic
-perl -pi -e's|/mnt/store/music|%{_varlibdir}/mythmusic|' mythmusic/globalsettings.cpp
+perl -pi -e's|/mnt/store/music|/var/lib/mythmusic|' mythmusic/globalsettings.cpp
cd ..
cd mythvideo
@@ -180,7 +185,7 @@
#find . -type f -name \*.pro | xargs grep -l /lib$ | xargs perl -pi -e's,/lib$,/%{_lib},'
# Fix /mnt/store -> /var/lib/mythmusic
-perl -pi -e's|/share/Movies/dvd|%{_varlibdir}/mythvideo|' mythvideo/globalsettings.cpp
+perl -pi -e's|/share/Movies/dvd|/var/lib/mythvideo|' mythvideo/globalsettings.cpp
cd ..
cd mythweather
@@ -225,10 +230,8 @@
%configure \
--enable-all \
--disable-festival \
- --disable-mythmusic \
- --disable-mythphone
-
-# disable mythmusic,mythphone due to https://bugs.pld-linux.org/?do=details&id=5687
+ %{!?with_mythmusic:--disable-mythmusic} \
+ %{!?with_mythphone:--disable-mythphone}
# --enable-all Enable all options
# --enable-opengl enable OpenGL (Music and Gallery) [default=no]
@@ -254,15 +257,17 @@
%install
rm -rf $RPM_BUILD_ROOT
+
+export QTDIR="%{_prefix}"
%{__make} install INSTALL_ROOT=$RPM_BUILD_ROOT
-%{__make} install INSTALL_ROOT=$RPM_BUILD_ROOT -C mythbrowser
+#%{__make} install INSTALL_ROOT=$RPM_BUILD_ROOT -C mythbrowser
-install -d $RPM_BUILD_ROOT%{_varlibdir}/mythmusic
-install -d $RPM_BUILD_ROOT%{_varlibdir}/mythvideo
-install -d $RPM_BUILD_ROOT%{_varlibdir}/pictures
+install -d $RPM_BUILD_ROOT/var/lib/mythmusic
+install -d $RPM_BUILD_ROOT/var/lib/mythvideo
+install -d $RPM_BUILD_ROOT/var/lib/pictures
install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens}
install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens}
-#mkdir -p %{buildroot}%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
+#install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens
install -d $RPM_BUILD_ROOT%{_datadir}/xmame
ln -s %{_datadir}/xmame $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame
@@ -277,11 +282,12 @@
%files
%defattr(644,root,root,755)
+%if %{with mythmusic}
%files -n mythmusic
%defattr(644,root,root,755)
%doc mythmusic/README mythmusic/UPGRADING mythmusic/COPYING mythmusic/AUTHORS mythmusic/musicdb
%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythmusic.so
-%{_varlibdir}/mythmusic
+/var/lib/mythmusic
%{_datadir}/mythtv/musicmenu.xml
%{_datadir}/mythtv/music_settings.xml
%{_datadir}/mythtv/i18n/mythmusic_*.qm
@@ -332,6 +338,7 @@
%{_datadir}/mythtv/themes/default/text_button_on.png
%{_datadir}/mythtv/themes/default/text_button_pushed.png
%{_datadir}/mythtv/themes/default/track_info_background.png
+%endif
%files -n mythvideo
%defattr(644,root,root,755)
@@ -346,7 +353,7 @@
%{_datadir}/mythtv/mythvideo/scripts/README
%{_datadir}/mythtv/mythvideo/scripts/imdb.pl
%{_datadir}/mythtv/mythvideo/scripts/allocine.pl
-%{_varlibdir}/mythvideo
+/var/lib/mythvideo
%files -n mythweather
%defattr(644,root,root,755)
@@ -379,14 +386,14 @@
%{_datadir}/mythtv/themes/default/gallery-ui.xml
%{_datadir}/mythtv/themes/default/gallery-*.png
%{_datadir}/mythtv/i18n/mythgallery_*.qm
-%{_varlibdir}/pictures
+/var/lib/pictures
%files -n mythgame
%defattr(644,root,root,755)
%doc mythgame/README mythgame/UPGRADING
%attr(755,root,root) %{_libdir}/mythtv/plugins/libmythgame.so
%{_datadir}/mythtv/games
-%config %{_datadir}/mythtv/games/PC/gamelist.xml
+#%config %{_datadir}/mythtv/games/PC/gamelist.xml
%{_datadir}/xmame/screens
%{_datadir}/xmame/flyers
%{_datadir}/mythtv/game_settings.xml
@@ -421,6 +428,7 @@
%{_datadir}/mythtv/themes/default/webpage.png
%{_datadir}/mythtv/i18n/mythbrowser_*.qm
+%if %{with mythphone}
%files -n mythphone
%defattr(644,root,root,755)
%doc mythphone/README mythphone/COPYING mythphone/AUTHORS mythphone/TODO
@@ -430,6 +438,7 @@
%{_datadir}/mythtv/themes/default/mp_*.png
%{_datadir}/mythtv/themes/default/phone.png
%{_datadir}/mythtv/i18n/mythphone_*.qm
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -437,6 +446,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2005/09/08 13:42:28 glen
+- compiles
+
Revision 1.2 2005/09/08 01:51:51 glen
- save
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mythplugins.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list