Blame SPECS/librabbitmq.spec

71d765
# Fedora spec file for librabbitmq
71d765
#
71d765
# Copyright (c) 2012-2018 Remi Collet
71d765
# License: CC-BY-SA
71d765
# http://creativecommons.org/licenses/by-sa/4.0/
71d765
#
71d765
# Please, preserve the changelog entries
71d765
#
71d765
71d765
Name:      librabbitmq
71d765
Summary:   Client library for AMQP
71d765
Version:   0.9.0
71d765
Release:   1%{?dist}
71d765
License:   MIT
71d765
URL:       https://github.com/alanxz/rabbitmq-c
71d765
Source0:   https://github.com/alanxz/rabbitmq-c/archive/v%{version}.tar.gz
71d765
71d765
BuildRequires: gcc
71d765
BuildRequires: cmake > 2.8
71d765
BuildRequires: openssl-devel
71d765
# For tools
71d765
BuildRequires: popt-devel
71d765
# For man page
71d765
BuildRequires: xmlto
71d765
71d765
71d765
%description
71d765
This is a C-language AMQP client library for use with AMQP servers
71d765
speaking protocol versions 0-9-1.
71d765
71d765
71d765
%package devel
71d765
Summary:    Header files and development libraries for %{name}
71d765
Requires:   %{name}%{?_isa} = %{version}-%{release}
71d765
71d765
%description devel
71d765
This package contains the header files and development libraries
71d765
for %{name}.
71d765
71d765
71d765
%package tools
71d765
Summary:    Example tools built using the librabbitmq package
71d765
Requires:   %{name}%{?_isa} = %{version}
71d765
71d765
%description tools
71d765
This package contains example tools built using %{name}.
71d765
71d765
It provides:
71d765
amqp-consume        Consume messages from a queue on an AMQP server
71d765
amqp-declare-queue  Declare a queue on an AMQP server
71d765
amqp-delete-queue   Delete a queue from an AMQP server
71d765
amqp-get            Get a message from a queue on an AMQP server
71d765
amqp-publish        Publish a message on an AMQP server
71d765
71d765
71d765
%prep
71d765
%setup -q -n rabbitmq-c-%{version}
71d765
71d765
# Copy sources to be included in -devel docs.
71d765
cp -pr examples Examples
71d765
71d765
# This test requires a running server
71d765
sed -e '/test_basic/d' -i tests/CMakeLists.txt
71d765
71d765
%build
71d765
# static lib required for tests
71d765
%cmake \
71d765
  -DBUILD_TOOLS_DOCS:BOOL=ON \
71d765
  -DBUILD_STATIC_LIBS:BOOL=ON
71d765
71d765
make %{_smp_mflags}
71d765
71d765
71d765
%install
71d765
make install  DESTDIR="%{buildroot}"
71d765
71d765
rm %{buildroot}%{_libdir}/%{name}.a
71d765
71d765
71d765
%check
71d765
: check .pc is usable
71d765
grep @ %{buildroot}%{_libdir}/pkgconfig/%{name}.pc && exit 1
71d765
71d765
: upstream tests
71d765
make test
71d765
71d765
71d765
%files
71d765
%license LICENSE-MIT
71d765
%{_libdir}/%{name}.so.*
71d765
71d765
71d765
%files devel
71d765
%doc AUTHORS THANKS TODO *.md
71d765
%doc Examples
71d765
%{_libdir}/%{name}.so
71d765
%{_includedir}/amqp*
71d765
%{_libdir}/pkgconfig/%{name}.pc
71d765
71d765
%files tools
71d765
%{_bindir}/amqp-*
71d765
%doc %{_mandir}/man1/amqp-*.1*
71d765
%doc %{_mandir}/man7/librabbitmq-tools.7*
71d765
71d765
71d765
%changelog
71d765
* Thu Jun 28 2018 Than Ngo <than@redhat.com> - 0.9.0-1
71d765
- update to 0.9.0
71d765
71d765
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 0.8.0-7
71d765
- missing BR on C compiler
71d765
71d765
* Thu Feb 15 2018 Remi Collet <remi@remirepo.net> - 0.8.0-6
71d765
- drop ldconfig scriptlets
71d765
71d765
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
71d765
71d765
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
71d765
71d765
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
71d765
71d765
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
71d765
71d765
* Tue Apr 12 2016 Remi Collet <remi@fedoraproject.org> - 0.8.0-1
71d765
- update to 0.8.0
71d765
71d765
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
71d765
71d765
* Tue Oct 13 2015 Remi Collet <remi@fedoraproject.org> - 0.7.1-1
71d765
- update to 0.7.1
71d765
71d765
* Fri Jul  3 2015 Remi Collet <remi@fedoraproject.org> - 0.7.0-1
71d765
- update to 0.7.0
71d765
- swicth to cmake
71d765
- switch from upstream tarball to github sources
71d765
71d765
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
71d765
71d765
* Mon Apr 20 2015 Remi Collet <remi@fedoraproject.org> - 0.6.0-1
71d765
- update to 0.6.0
71d765
- soname changed to .4
71d765
71d765
* Mon Sep 15 2014 Remi Collet <remi@fedoraproject.org> - 0.5.2-1
71d765
- update to 0.5.2
71d765
71d765
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
71d765
71d765
* Wed Aug 13 2014 Remi Collet <remi@fedoraproject.org> - 0.5.1-1
71d765
- update to 0.5.1
71d765
- fix license handling
71d765
- move all documentation in devel subpackage
71d765
71d765
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
71d765
71d765
* Tue Apr 15 2014 Remi Collet <remi@fedoraproject.org> - 0.5.0-2
71d765
- upstream patch for missing function
71d765
71d765
* Mon Feb 17 2014 Remi Collet <remi@fedoraproject.org> - 0.5.0-1
71d765
- update to 0.5.0
71d765
- open https://github.com/alanxz/rabbitmq-c/issues/169 (version is 0.5.1-pre)
71d765
- open https://github.com/alanxz/rabbitmq-c/issues/170 (amqp_get_server_properties)
71d765
71d765
* Mon Jan 13 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-4
71d765
- drop BR python-simplejson
71d765
71d765
* Tue Jan  7 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-3
71d765
- fix broken librabbitmq.pc, #1039555
71d765
- add check for usable librabbitmq.pc
71d765
71d765
* Thu Jan  2 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-2
71d765
- fix Source0 URL
71d765
71d765
* Sat Sep 28 2013 Remi Collet <remi@fedoraproject.org> - 0.4.1-1
71d765
- update to 0.4.1
71d765
- add ssl support
71d765
71d765
* Thu Aug  1 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-3
71d765
- cleanups
71d765
71d765
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-2
71d765
- remove tools from main package
71d765
71d765
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-1
71d765
- update to 0.3.0
71d765
- create sub-package for tools
71d765
71d765
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.2.git2059570
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
71d765
71d765
* Wed Aug 01 2012 Remi Collet <remi@fedoraproject.org> - 0.2-0.1.git2059570
71d765
- update to latest snapshot (version 0.2, moved to github)
71d765
- License is now MIT
71d765
71d765
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-0.3.hgfb6fca832fd2
71d765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
71d765
71d765
* Sun Mar 11 2012 Remi Collet <remi@fedoraproject.org> - 0.1-0.2.hgfb6fca832fd2
71d765
- add %%check (per review comment)
71d765
71d765
* Sat Mar 10 2012 Remi Collet <remi@fedoraproject.org> - 0.1-0.1.hgfb6fca832fd2
71d765
- Initial RPM
71d765