packages: atkmm/atkmm.spec - add -static subpackage and static_libs bcond

lisu lisu at pld-linux.org
Wed Oct 13 20:29:20 CEST 2010


Author: lisu                         Date: Wed Oct 13 18:29:20 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add -static subpackage and static_libs bcond

---- Files affected:
packages/atkmm:
   atkmm.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/atkmm/atkmm.spec
diff -u packages/atkmm/atkmm.spec:1.1 packages/atkmm/atkmm.spec:1.2
--- packages/atkmm/atkmm.spec:1.1	Wed Oct 13 19:56:16 2010
+++ packages/atkmm/atkmm.spec	Wed Oct 13 20:29:15 2010
@@ -1,9 +1,13 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+#
 Summary:	A C++ interface for atk library
 Summary(pl.UTF-8):	Interfejs C++ dla biblioteki atk
 Name:		atkmm
 Version:	2.22.0
-Release:	1
+Release:	2
 License:	LGPL v2.1
 Group:		Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/atkmm/2.22/%{name}-%{version}.tar.bz2
@@ -19,7 +23,6 @@
 Requires:	glibmm >= 2.24.0
 Provides:	gtkmm-atk
 Obsoletes:	gtkmm-atk
-Obsoletes:	gtkmm-atk-static
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -56,6 +59,19 @@
 %description apidocs -l pl.UTF-8
 Dokumentacja API biblioteki atkmm.
 
+%package static
+Summary:	atkmm static library
+Summary(pl.UTF-8):	Biblioteka statyczna atkmm
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Obsoletes:	gtkmm-atk-static
+
+%description static
+Static atkmm library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka atkmm.
+
 %prep
 %setup -q
 
@@ -65,7 +81,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{?with_static_libs:--enable-static}
 %{__make}
 
 %install
@@ -100,12 +117,21 @@
 %defattr(644,root,root,755)
 %{_gtkdocdir}/atkmm-1.6
 
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libatkmm-1.6.a
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2010/10/13 18:29:15  lisu
+- add -static subpackage and static_libs bcond
+
 Revision 1.1  2010/10/13 17:56:16  megabajt
 - new
 
================================================================

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



More information about the pld-cvs-commit mailing list