packages: lxrandr/lxrandr.spec - up to 0.1.2, gtk3 bcond

glen glen at pld-linux.org
Mon Aug 15 10:28:08 CEST 2011


Author: glen                         Date: Mon Aug 15 08:28:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.1.2, gtk3 bcond

---- Files affected:
packages/lxrandr:
   lxrandr.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/lxrandr/lxrandr.spec
diff -u packages/lxrandr/lxrandr.spec:1.4 packages/lxrandr/lxrandr.spec:1.5
--- packages/lxrandr/lxrandr.spec:1.4	Tue Sep 14 21:48:55 2010
+++ packages/lxrandr/lxrandr.spec	Mon Aug 15 10:28:02 2011
@@ -1,36 +1,46 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with		gtk3		# build GTK+3 disables GTK+2
+%bcond_without		gtk2	# build with GTK+2
+
+%if %{with gtk3}
+%undefine	with_gtk2
+%endif
+
 Summary:	a GTK+2 interface to XRandR for LXDE desktop
 Name:		lxrandr
-Version:	0.1.1
+Version:	0.1.2
 Release:	1
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
-# Source0-md5:	ab2c7f6be7e4fe6d1a26e324d836453e
+# Source0-md5:	8a7391581541bba58839ac11dbf5b575
 URL:		http://wiki.lxde.org/en/LXRandR
 BuildRequires:	gettext-devel
-BuildRequires:	gtk+2-devel >= 2:2.12.0
+%{?with_gtk2:BuildRequires:	gtk+2-devel >= 2:2.12.0}
+%{?with_gtk3:BuildRequires:	gtk+3-devel}
 BuildRequires:	pkgconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-a GTK+2 interface to XRandR for LXDE desktop.
+A GTK+ interface to XRandR for LXDE desktop.
 
 %prep
 %setup -q
 
 %build
-%configure
+%configure \
+	%{?with_gtk3:--enable-gtk3}
 touch po/stamp-it
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK}
 
 %find_lang %{name}
 
@@ -50,6 +60,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2011/08/15 08:28:02  glen
+- up to 0.1.2, gtk3 bcond
+
 Revision 1.4  2010/09/14 19:48:55  glen
 - more precise urls
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lxrandr/lxrandr.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list