packages: lxappearance/lxappearance.spec - remove tt_RU locale dir, gtk3 bcond

glen glen at pld-linux.org
Mon Aug 15 10:03:21 CEST 2011


Author: glen                         Date: Mon Aug 15 08:03:21 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- remove tt_RU locale dir, gtk3 bcond

---- Files affected:
packages/lxappearance:
   lxappearance.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/lxappearance/lxappearance.spec
diff -u packages/lxappearance/lxappearance.spec:1.6 packages/lxappearance/lxappearance.spec:1.7
--- packages/lxappearance/lxappearance.spec:1.6	Mon Aug 15 09:11:34 2011
+++ packages/lxappearance/lxappearance.spec	Mon Aug 15 10:03:16 2011
@@ -1,17 +1,25 @@
 # $Revision$, $Date$
-# TODO
-# - gtk3 possible:   --enable-gtk3           enable to use gtk-3.0 instead of gtk-2.0
+#
+# 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:	Desktop-independent theme switcher for GTK+
 Name:		lxappearance
 Version:	0.5.1
-Release:	1
+Release:	2
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
 # Source0-md5:	34d157a7fe97ef0b93db8fab3f251e07
 URL:		http://wiki.lxde.org/en/LXAppearance
 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:	intltool
 BuildRequires:	pkgconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -32,15 +40,17 @@
 %setup -q
 
 %build
-%configure
+%configure \
+	%{?with_gtk3:--enable-gtk3}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU
+
 %find_lang %{name}
 
 %clean
@@ -66,6 +76,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2011/08/15 08:03:16  glen
+- remove tt_RU locale dir, gtk3 bcond
+
 Revision 1.6  2011/08/15 07:11:34  glen
 - up to 0.5.1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lxappearance/lxappearance.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list