[packages/libcmis] - updated to 0.3.0 (new soname; introduced libcmis-c library) - added link patch to fix libcmis-c li

qboosh qboosh at pld-linux.org
Fri Sep 21 22:06:32 CEST 2012


commit 3a43359e46e0a4025d772f4f0b14b5561424a456
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Sep 21 22:07:28 2012 +0200

    - updated to 0.3.0 (new soname; introduced libcmis-c library)
    - added link patch to fix libcmis-c linking

 libcmis-link.patch | 10 ++++++++++
 libcmis.spec       | 44 +++++++++++++++++++++++++++++---------------
 2 files changed, 39 insertions(+), 15 deletions(-)
---
diff --git a/libcmis.spec b/libcmis.spec
index 412bab7..40602db 100644
--- a/libcmis.spec
+++ b/libcmis.spec
@@ -5,19 +5,24 @@
 Summary:	A C++ client library for the CMIS interface
 Summary(pl.UTF-8):     Biblioteka klienta C++ dla inferfejsu CMIS
 Name:		libcmis
-Version:	0.2.3
-Release:	2
+Version:	0.3.0
+Release:	1
 License:	GPL v2+ or LGPL v2+ or MPL v1.1
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libcmis/%{name}-%{version}.tar.gz
-# Source0-md5:	0d2dcdfbf28d6208751b33057f5361f0
+# Source0-md5:	b2371dc7cf4811c9d32146eec913d296
+Patch0:		%{name}-link.patch
 URL:		http://sourceforge.net/projects/libcmis/
+BuildRequires:	autoconf >= 2.63
+BuildRequires:	automake
 BuildRequires:	boost-devel
 BuildRequires:	curl-devel >= 7.12.3
-BuildRequires:	docbook2X
+BuildRequires:	docbook2X >= 0.8.8-4
 BuildRequires:	libstdc++-devel
+BuildRequires:	libtool >= 2:1.5
 BuildRequires:	libxml2-devel >= 2.0
 BuildRequires:	pkgconfig
+BuildRequires:	sed >= 4.0
 Requires:	curl-libs >= 7.12.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -77,10 +82,17 @@ poleceń.
 
 %prep
 %setup -q
-sed -i -e 's/docbook-to-man/docbook2X2man/' configure
+%patch0 -p1
+
+%{__sed} -i -e 's/docbook-to-man/docbook2X2man/' configure.ac
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
 %configure \
+	--disable-silent-rules \
 	%{!?with_static_libs:--disable-static} \
 	--disable-tests \
 	--disable-werror
@@ -90,13 +102,9 @@ sed -i -e 's/docbook-to-man/docbook2X2man/' configure
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
-
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-cp -p %{name}-0.2.pc %{buildroot}/%{_libdir}/pkgconfig
-
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
@@ -109,19 +117,25 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_libdir}/%{name}-0.2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcmis-0.2.so.2
+%attr(755,root,root) %{_libdir}/libcmis-0.3.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcmis-0.3.so.3
+%attr(755,root,root) %{_libdir}/libcmis-c-0.3.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcmis-c-0.3.so.3
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/%{name}-0.2.so
-%{_includedir}/%{name}-0.2
-%{_pkgconfigdir}/libcmis-0.2.pc
+%attr(755,root,root) %{_libdir}/libcmis-0.3.so
+%attr(755,root,root) %{_libdir}/libcmis-c-0.3.so
+%{_includedir}/libcmis-0.3
+%{_includedir}/libcmis-c-0.3
+%{_pkgconfigdir}/libcmis-0.3.pc
+%{_pkgconfigdir}/libcmis-c-0.3.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libcmis-0.2.a
+%{_libdir}/libcmis-0.3.a
+%{_libdir}/libcmis-c-0.3.a
 %endif
 
 %files tools
diff --git a/libcmis-link.patch b/libcmis-link.patch
new file mode 100644
index 0000000..08f1a30
--- /dev/null
+++ b/libcmis-link.patch
@@ -0,0 +1,10 @@
+--- libcmis-0.3.0/src/libcmis-c/Makefile.am.orig	2012-09-12 15:52:37.000000000 +0200
++++ libcmis-0.3.0/src/libcmis-c/Makefile.am	2012-09-21 18:58:37.403887089 +0200
+@@ -36,6 +36,7 @@
+ libcmis_c_ at LIBCMIS_API_VERSION@_la_LDFLAGS = -export-dynamic -no-undefined -version-info 3:0:0
+ 
+ libcmis_c_ at LIBCMIS_API_VERSION@_la_LIBADD = \
++	$(top_builddir)/src/libcmis/libcmis- at LIBCMIS_API_VERSION@.la \
+ 	$(XML2_LIBS) \
+ 	$(CURL_LIBS) \
+ 	$(BOOST_SMART_PTR_LIBS) \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcmis.git/commitdiff/3a43359e46e0a4025d772f4f0b14b5561424a456



More information about the pld-cvs-commit mailing list