SPECS (DEVEL): mythplugins.spec - complete bconds for each plugin

glen glen at pld-linux.org
Sat Nov 5 16:07:47 CET 2005


Author: glen                         Date: Sat Nov  5 15:07:47 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- complete bconds for each plugin

---- Files affected:
SPECS:
   mythplugins.spec (1.12.2.8 -> 1.12.2.9) 

---- Diffs:

================================================================
Index: SPECS/mythplugins.spec
diff -u SPECS/mythplugins.spec:1.12.2.8 SPECS/mythplugins.spec:1.12.2.9
--- SPECS/mythplugins.spec:1.12.2.8	Sat Nov  5 15:53:09 2005
+++ SPECS/mythplugins.spec	Sat Nov  5 16:07:42 2005
@@ -1,12 +1,32 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%bcond_without	binary		# skip binary plugins (build only mythweb)
-%bcond_without	mythmusic	# mythmusic plugin (broken now)
-%bcond_without	mythgallery	# mythgallery plugin (broken now)
-%bcond_without	mythbrowser	# mythbrowser plugin (broken now)
+%bcond_without	binary		# skip building binary plugins (build only mythweb)
+%bcond_without	mythbrowser	# disable building mythbrowser plugin
+%bcond_without	mythdvd		# disable building mythgallery plugin
+%bcond_without	mythgallery	# disable building mythgallery plugin
+%bcond_without	mythgame	# disable building mythgallery plugin
+%bcond_without	mythmusic	# disable building mythmusic plugin
+%bcond_without	mythnews	# disable building mythgallery plugin
+%bcond_without	mythphone	# disable building mythgallery plugin
+%bcond_without	mythvideo	# disable building mythgallery plugin
+%bcond_without	mythweather	# disable building mythgallery plugin
+%bcond_without	mythweb		# disable building mythgallery plugin
 %bcond_with	mythcontrols	# mythcontrols plugin (not done)
 #
+%if %{without binary}
+%undefine	with_mythbrowser
+%undefine	with_mythdvd
+%undefine	with_mythgallery
+%undefine	with_mythgame
+%undefine	with_mythmusic
+%undefine	with_mythnews
+%undefine	with_mythphone
+%undefine	with_mythvideo
+%undefine	with_mythweather
+%undefine	with_mythcontrols
+%endif
+#
 %include	/usr/lib/rpm/macros.perl
 Summary:	Main MythTV plugins
 Summary(pl):	Główne wtyczki MythTV
@@ -58,19 +78,19 @@
 BuildRequires:	zlib-devel
 %endif
 %{?with_mythbrowser:Requires:	mythbrowser}
-Requires:	mythdvd
+%{?with_mythdvd:Requires:	mythdvd}
 %{?with_mythgallery:Requires:	mythgallery}
-Requires:	mythgame
+%{?with_mythgame:Requires:	mythgame}
 %{?with_mythmysic:Requires:	mythmusic}
-Requires:	mythnews
-Requires:	mythphone
-Requires:	mythvideo
-Requires:	mythweather
-Requires:	mythweb
+%{?with_mythnews:Requires:	mythnews}
+%{?with_mythphone:Requires:	mythphone}
+%{?with_mythvideo:Requires:	mythvideo}
+%{?with_mythweather:Requires:	mythweather}
+%{?with_mythweb:Requires:	mythweb}
 ExclusiveArch:	%{ix86} %{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		api_ver %(echo %{version} | cut -d. -f1,2)
+%define		api_ver %(awk '/LIBVERSION/{print $3}' %%{_datadir}/mythtv/build/settings.pro)
 
 %description
 This is a consolidation of all the official MythTV plugins that used
@@ -275,6 +295,17 @@
 # Not gnu configure
 %configure \
 	--enable-all \
+	%{?without_mythbrowser:--disable-mythbrowser} \
+	%{?without_mythdvd:--disable-mythdvd} \
+	%{?without_mythgallery:--disable-mythgallery} \
+	%{?without_mythgame:--disable-mythgame} \
+	%{?without_mythmusic:--disable-mythmusic} \
+	%{?without_mythnews:--disable-mythnews} \
+	%{?without_mythphone:--disable-mythphone} \
+	%{?without_mythvideo:--disable-mythvideo} \
+	%{?without_mythweather:--disable-mythweather} \
+	%{?without_mythweb:--disable-mythweb} \
+	%{?without_mythcontrols:--disable-mythcontrols} \
 	--disable-festival
 
 #	--enable-opengl          enable OpenGL (Music and Gallery) [default=no]
@@ -299,14 +330,16 @@
 	INSTALL_ROOT=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT/var/lib/{mythmusic,mythvideo,pictures}
+%if %{with mythgame}
 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/nes/{roms,screens}
 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/snes/{roms,screens}
 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/xmame/{roms,screens,flyers,cabs}
 install -d $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC/screens
 cp -a mythgame/gamelist.xml $RPM_BUILD_ROOT%{_datadir}/mythtv/games/PC
 %endif
+%endif
 
-# mythweb
+%if %{with mythweb}
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mythweb,%{_datadir}/mythweb/{includes,languages},/var/cache/mythweb/{image_cache,php_sessions}}
 cp -a mythweb/*.{html,php} $RPM_BUILD_ROOT%{_datadir}/mythweb
 cp -a mythweb/languages/*.php $RPM_BUILD_ROOT%{_datadir}/mythweb/languages
@@ -315,6 +348,7 @@
 cp -a mythweb/config/*.{php,dat} $RPM_BUILD_ROOT%{_sysconfdir}/mythweb
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mythweb/apache.conf
 touch $RPM_BUILD_ROOT%{_sysconfdir}/mythweb/htpasswd
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -338,7 +372,6 @@
 %files
 %defattr(644,root,root,755)
 
-%if %{with binary}
 %if %{with mythmusic}
 %files -n mythmusic
 %defattr(644,root,root,755)
@@ -351,6 +384,7 @@
 %{_datadir}/mythtv/themes
 %endif
 
+%if %{with mythvideo}
 %files -n mythvideo
 %defattr(644,root,root,755)
 %doc mythvideo/README mythvideo/UPGRADING mythvideo/videodb
@@ -367,7 +401,9 @@
 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/imdb.pl
 %attr(755,root,root) %{_datadir}/mythtv/mythvideo/scripts/allocine.pl
 /var/lib/mythvideo
+%endif
 
+%if %{with mythweather}
 %files -n mythweather
 %defattr(644,root,root,755)
 %doc mythweather/README
@@ -391,6 +427,7 @@
 %{_datadir}/mythtv/themes/default/sunny.png
 %{_datadir}/mythtv/themes/default/thunshowers.png
 %{_datadir}/mythtv/themes/default/unknown.png
+%endif
 
 %if %{with mythgallery}
 %files -n mythgallery
@@ -404,6 +441,7 @@
 /var/lib/pictures
 %endif
 
+%if %{with mythgame}
 %files -n mythgame
 %defattr(644,root,root,755)
 %doc mythgame/README mythgame/UPGRADING
@@ -415,18 +453,22 @@
 %{_datadir}/mythtv/game_settings.xml
 %{_datadir}/mythtv/themes/default/game-ui.xml
 %{_datadir}/mythtv/i18n/mythgame_*.qm
+%endif
 
+%if %{with mythdvd}
 %files -n mythdvd
 %defattr(644,root,root,755)
 %doc mythdvd/README mythdvd/UPGRADING mythdvd/AUTHORS
+%attr(755,root,root) %{_bindir}/mtd
 %attr(755,root,root) %{_libdir}/mythtv/plugins/libmythdvd.so
 %{_datadir}/mythtv/dvd_settings.xml
 %{_datadir}/mythtv/dvdmenu.xml
 %{_datadir}/mythtv/themes/default/dvd-ui.xml
 %{_datadir}/mythtv/themes/default/md_*.png
 %{_datadir}/mythtv/i18n/mythdvd_*.qm
-%attr(755,root,root) %{_bindir}/mtd
+%endif
 
+%if %{with mythnews}
 %files -n mythnews
 %defattr(644,root,root,755)
 %doc mythnews/README mythnews/AUTHORS
@@ -435,6 +477,7 @@
 %{_datadir}/mythtv/themes/default/news-ui.xml
 %{_datadir}/mythtv/themes/default/news-info-bg.png
 %{_datadir}/mythtv/i18n/mythnews_*.qm
+%endif
 
 %if %{with mythbrowser}
 %files -n mythbrowser
@@ -446,6 +489,7 @@
 %{_datadir}/mythtv/i18n/mythbrowser_*.qm
 %endif
 
+%if %{with mythphone}
 %files -n mythphone
 %defattr(644,root,root,755)
 %doc mythphone/README mythphone/AUTHORS mythphone/TODO
@@ -457,6 +501,7 @@
 %{_datadir}/mythtv/i18n/mythphone_*.qm
 %endif
 
+%if %{with mythweb}
 %files -n mythweb
 %defattr(644,root,root,755)
 %doc mythweb/{README,TODO} mythweb/languages/*.{pl,txt}
@@ -469,6 +514,7 @@
 %dir /var/cache/mythweb
 %dir %attr(771,root,http) /var/cache/mythweb/image_cache
 %dir %attr(771,root,http) /var/cache/mythweb/php_sessions
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -476,6 +522,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12.2.9  2005/11/05 15:07:42  glen
+- complete bconds for each plugin
+
 Revision 1.12.2.8  2005/11/05 14:53:09  glen
 - mythmusic/gallery/browser build again
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mythplugins.spec?r1=1.12.2.8&r2=1.12.2.9&f=u




More information about the pld-cvs-commit mailing list