[packages/mate-applets: 239/311] - added without modemlights bcond (modemlights applet doesn't build/work with system-tools-backend

glen glen at pld-linux.org
Thu Dec 27 20:43:12 CET 2012


commit 5328b8eacffe1339b991650a6724a8e2a1864fa6
Author: grzegol <grzegol at pld-linux.org>
Date:   Sat Aug 26 12:11:17 2006 +0000

    - added without modemlights bcond (modemlights applet doesn't build/work with
      system-tools-backends >= 1.9.0)
    - added modemlights-conditional patch (allow to build without modemlights
      applet)
    
    Changed files:
        gnome-applets.spec -> 1.177

 gnome-applets.spec | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/gnome-applets.spec b/gnome-applets.spec
index 474cbe1..3fae47c 100644
--- a/gnome-applets.spec
+++ b/gnome-applets.spec
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+%bcond_without	modemlights	# don't build modemlights applet
 Summary:	Small applications which embed themselves in the GNOME panel
 Summary(pl):	Aplety GNOME - ma�e aplikacje osadzaj�ce si� w panelu
 Summary(ru):	��������� ���������, �������������� � ������ GNOME
@@ -13,6 +16,7 @@ Source0:	http://ftp.gnome.org/pub/gnome/sources/gnome-applets/2.15/%{name}-%{ver
 Patch0:		%{name}-stickynotes-title-size.patch
 Patch1:		%{name}-m4_fix.patch
 Patch2:		%{name}-desktop.patch
+Patch3:		%{name}-modemlights-conditional.patch
 URL:		http://www.gnome.org/
 BuildRequires:	GConf2-devel >= 2.14.0
 BuildRequires:	autoconf
@@ -46,7 +50,10 @@ BuildRequires:	pkgconfig
 BuildRequires:	python-gnome-desktop-devel >= 2.15.90
 BuildRequires:	rpmbuild(macros) >= 1.197
 BuildRequires:	scrollkeeper >= 0.3.11-4
+%if %{with modemlights}
 BuildRequires:	system-tools-backends >= 1.4.0
+BuildRequires:	system-tools-backends < 1.9.0
+%endif
 Requires:	gnome-icon-theme >= 2.15.92
 Requires:	gnome-panel >= 2.15.92
 Requires:	gnome-vfs2 >= 2.15.92
@@ -268,7 +275,8 @@ Summary(pl):	Aplet kontrolek modemu
 Group:		X11/Applications
 Requires(post,postun):	gtk+2 >= 2.10.2
 Requires:	%{name} = %{epoch}:%{version}-%{release}
-Requires:	system-tools-backends >= 1.2.0
+Requires:	system-tools-backends >= 1.4.0
+Requires:	susyem-tools-backends < 1.9.0
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
 %description modemlights
@@ -328,6 +336,7 @@ Aplet 
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__gnome_doc_prepare}
@@ -343,7 +352,8 @@ Aplet 
 	--disable-static \
 	--disable-schemas-install \
 	--enable-mini-commander \
-	--enable-stickynotes
+	--enable-stickynotes \
+	%{!?with_modemlights:--disable-modemlights}
 %{__make}
 
 %install
@@ -504,11 +514,13 @@ EOF
 %postun mixer
 %scrollkeeper_update_postun
 
+%if %{with modemlights}
 %post modemlights
 %update_icon_cache hicolor
 
 %postun modemlights
 %update_icon_cache hicolor
+%endif
 
 %post multiload
 %scrollkeeper_update_post
@@ -799,6 +811,7 @@ EOF
 %lang(sv) %{_omf_dest_dir}/mixer_applet2/mixer_applet2-sv.omf
 %lang(uk) %{_omf_dest_dir}/mixer_applet2/mixer_applet2-uk.omf
 
+%if %{with modemlights}
 %files modemlights
 %defattr(644,root,root,755)
 %doc modemlights/ChangeLog
@@ -807,6 +820,7 @@ EOF
 %{_datadir}/gnome-2.0/ui/GNOME_ModemLights.xml
 %{_datadir}/%{name}/glade/modemlights.glade
 %{_iconsdir}/hicolor/*/apps/gnome-modem-monitor-applet.*
+%endif
 
 %files multiload -f multiload.lang
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mate-applets.git/commitdiff/65c1b73f8721e2c1dd8f5b7d875df06b87ad8453



More information about the pld-cvs-commit mailing list