- update to 0.7.0

- swicth to cmake
- switch from upstream tarball to github sources
This commit is contained in:
Remi Collet 2015-07-03 13:38:42 +02:00
parent 943d146ad5
commit 931dd4c5b3
3 changed files with 26 additions and 22 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ clog
/rabbitmq-c-0.5.1.tar.gz /rabbitmq-c-0.5.1.tar.gz
/rabbitmq-c-0.5.2.tar.gz /rabbitmq-c-0.5.2.tar.gz
/rabbitmq-c-0.6.0.tar.gz /rabbitmq-c-0.6.0.tar.gz
/rabbitmq-c-0.7.0-4dde30c.tar.gz

View File

@ -1,4 +1,4 @@
# spec file for librabbitmq # Fedora spec file for librabbitmq
# #
# Copyright (c) 2012-2015 Remi Collet # Copyright (c) 2012-2015 Remi Collet
# License: CC-BY-SA # License: CC-BY-SA
@ -7,20 +7,24 @@
# Please, preserve the changelog entries # Please, preserve the changelog entries
# #
%global libname librabbitmq %global gh_commit 4dde30ce8d984edda540349f57eb7995a87ba9de
%global soname 4 %global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner alanxz
%global gh_project rabbitmq-c
%global libname librabbitmq
%global soname 4
Name: librabbitmq Name: %{libname}
Summary: Client library for AMQP Summary: Client library for AMQP
Version: 0.6.0 Version: 0.7.0
Release: 2%{?dist} Release: 1%{?dist}
License: MIT License: MIT
Group: System Environment/Libraries Group: System Environment/Libraries
URL: https://github.com/alanxz/rabbitmq-c URL: https://github.com/alanxz/rabbitmq-c
Source0: https://github.com/alanxz/rabbitmq-c/releases/download/v%{version}/rabbitmq-c-%{version}.tar.gz Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
BuildRequires: libtool BuildRequires: cmake > 2.8
BuildRequires: openssl-devel BuildRequires: openssl-devel
# For tools # For tools
BuildRequires: popt-devel BuildRequires: popt-devel
@ -60,22 +64,17 @@ amqp-publish Publish a message on an AMQP server
%prep %prep
%setup -q -n rabbitmq-c-%{version} %setup -q -n %{gh_project}-%{gh_commit}
# Copy sources to be included in -devel docs. # Copy sources to be included in -devel docs.
cp -pr examples Examples cp -pr examples Examples
%build %build
autoreconf -i # static lib required for tests
%configure \ %cmake \
--enable-tools \ -DBUILD_TOOLS_DOCS:BOOL=ON \
--enable-docs \ -DBUILD_STATIC_LIBS:BOOL=ON
--with-ssl=openssl
# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{_smp_mflags} make %{_smp_mflags}
@ -83,7 +82,7 @@ make %{_smp_mflags}
%install %install
make install DESTDIR="%{buildroot}" make install DESTDIR="%{buildroot}"
rm %{buildroot}%{_libdir}/%{libname}.la rm %{buildroot}%{_libdir}/%{libname}.a
%check %check
@ -91,8 +90,7 @@ rm %{buildroot}%{_libdir}/%{libname}.la
grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1 grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1
: upstream tests : upstream tests
export LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test
make check
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -120,6 +118,11 @@ make check
%changelog %changelog
* Fri Jul 3 2015 Remi Collet <remi@fedoraproject.org> - 0.7.0-1
- update to 0.7.0
- swicth to cmake
- switch from upstream tarball to github sources
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

View File

@ -1 +1 @@
80b350ce0de3f44cbd7b501bbbd8daf3 rabbitmq-c-0.6.0.tar.gz ebb34c7f395490c4a24808c5410556f6 rabbitmq-c-0.7.0-4dde30c.tar.gz