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

---- Files affected:
packages/lxsession-edit:
   lxsession-edit.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/lxsession-edit/lxsession-edit.spec
diff -u packages/lxsession-edit/lxsession-edit.spec:1.2 
packages/lxsession-edit/lxsession-edit.spec:1.3
--- packages/lxsession-edit/lxsession-edit.spec:1.2     Fri Jul 30 15:39:33 2010
+++ packages/lxsession-edit/lxsession-edit.spec Mon Aug 15 10:30:11 2011
@@ -1,15 +1,25 @@
 # $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:       Tool to manage desktop session autostarts
 Name:          lxsession-edit
-Version:       0.1.1
+Version:       0.2.0
 Release:       1
 License:       GPL v3
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
-# Source0-md5: 55b4553869209e0932cc73e8daefc854
+# Source0-md5: 1e763a9b7f297ba964cd41b30edfccd7
 URL:           http://www.lxde.org/
 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)
 
@@ -21,17 +31,17 @@
 %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}
 
@@ -51,6 +61,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2011/08/15 08:30:11  glen
+- up to 0.2.0, gtk3 bcond
+
 Revision 1.2  2010/07/30 13:39:33  sparky
 - BR: gettext-devel, pkgconfig
 - workaround for broken po/Makefile, consider rerunning autotools
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lxsession-edit/lxsession-edit.spec?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to