SPECS: libsynaptics.spec - fix compilation with GCC-4.3 (gcc43.patch from D...

twittner twittner at pld-linux.org
Mon Sep 29 14:54:38 CEST 2008


Author: twittner                     Date: Mon Sep 29 12:54:38 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix compilation with GCC-4.3 (gcc43.patch from Debian)
- static_libs bcond added
- rel. 3

---- Files affected:
SPECS:
   libsynaptics.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/libsynaptics.spec
diff -u SPECS/libsynaptics.spec:1.9 SPECS/libsynaptics.spec:1.10
--- SPECS/libsynaptics.spec:1.9	Wed May 30 17:58:35 2007
+++ SPECS/libsynaptics.spec	Mon Sep 29 14:54:33 2008
@@ -1,13 +1,18 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs # don't build static libraries
+#
 Summary:	libsynaptics - a library for communication with Synaptics touchpad
 Summary(pl.UTF-8):	libsynaptics - biblioteka do komunikacji z touchpadami Synaptics
 Name:		libsynaptics
 Version:	0.14.6c
-Release:	2
+Release:	3
 License:	GPL
 Group:		Libraries
 Source0:	http://qsynaptics.sourceforge.net/%{name}-%{version}.tar.bz2
 # Source0-md5:	fedf8b31171d288954ff2e83b251de44
+Patch0:		%{name}-gcc43.patch
 URL:		http://qsynaptics.sourceforge.net/
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake
@@ -51,13 +56,15 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	--enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
 %{__make}
 
 %install
@@ -83,9 +90,11 @@
 %{_libdir}/lib*.la
 %{_includedir}/synaptics
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -93,7 +102,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.9  2007/05/30 15:58:35  shadzik
+Revision 1.10  2008/09/29 12:54:33  twittner
+- fix compilation with GCC-4.3 (gcc43.patch from Debian)
+- static_libs bcond added
+- rel. 3
+
+Revision 1.9  2007-05-30 15:58:35  shadzik
 - rel 2
 
 Revision 1.8  2007/02/24 14:39:45  rotom
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libsynaptics.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list