[packages/rabbitmq-c] - updated to 0.10.0, switched to cmake (autotools dropped upstream)

qboosh qboosh at pld-linux.org
Sun Feb 16 01:16:03 CET 2020


commit a01144138f60957c065c50f455df157992b1ebe5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 16 01:16:29 2020 +0100

    - updated to 0.10.0, switched to cmake (autotools dropped upstream)

 rabbitmq-c.spec | 31 ++++++++++++-------------------
 1 file changed, 12 insertions(+), 19 deletions(-)
---
diff --git a/rabbitmq-c.spec b/rabbitmq-c.spec
index 53bd7cc..1373d6b 100644
--- a/rabbitmq-c.spec
+++ b/rabbitmq-c.spec
@@ -5,17 +5,15 @@
 Summary:	RabbitMQ C AMQP client library
 Summary(pl.UTF-8):	Biblioteka kliencka C RabbitMQ AMQP
 Name:		rabbitmq-c
-Version:	0.8.0
-Release:	2
+Version:	0.10.0
+Release:	1
 License:	MIT
 Group:		Libraries
 #Source0Download: https://github.com/alanxz/rabbitmq-c
-Source0:	https://github.com/alanxz/rabbitmq-c/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	c15dbcd2dbb8e254c1de0494c1bb8c91
+Source0:	https://github.com/alanxz/rabbitmq-c/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	6f09f0cb07cea221657a768bd9c7dff7
 URL:		https://github.com/alanxz/rabbitmq-c
-BuildRequires:	autoconf >= 2.59
-BuildRequires:	automake >= 1:1.9
-BuildRequires:	libtool >= 2:2.2
+BuildRequires:	cmake >= 2.8.12
 BuildRequires:	openssl-devel >= 0.9.8
 BuildRequires:	popt-devel
 BuildRequires:	pkgconfig >= 1:0.17
@@ -72,25 +70,20 @@ Przykładowe narzędzia wykorzystujące bibliotekę rabbitmq-c.
 %setup -q
 
 %build
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
-	--disable-silent-rules \
-	%{?with_static_libs:--enable-static}
+install -d build
+cd build
+%cmake .. \
+	%{!?with_static_libs:-DBUILD_STATIC_LIBS=OFF} \
+	-DBUILD_TOOLS_DOCS=ON
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rabbitmq-c.git/commitdiff/a01144138f60957c065c50f455df157992b1ebe5



More information about the pld-cvs-commit mailing list