2015-07-03 11:38:42 +00:00
|
|
|
# Fedora spec file for librabbitmq
|
2013-09-28 07:33:11 +00:00
|
|
|
#
|
2023-02-02 06:55:38 +00:00
|
|
|
# Copyright (c) 2012-2023 Remi Collet
|
|
|
|
# License: CC-BY-SA-4.0
|
2015-04-21 12:40:21 +00:00
|
|
|
# http://creativecommons.org/licenses/by-sa/4.0/
|
2013-09-28 07:33:11 +00:00
|
|
|
#
|
|
|
|
# Please, preserve the changelog entries
|
|
|
|
#
|
|
|
|
|
2021-04-01 09:52:33 +00:00
|
|
|
%bcond_without tests
|
|
|
|
|
2023-02-06 07:39:23 +00:00
|
|
|
%global gh_commit 974d71adceae6d742ae20a4c880d99c131f1460a
|
2015-07-03 11:38:42 +00:00
|
|
|
%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
|
2015-04-21 12:40:21 +00:00
|
|
|
|
2015-07-03 11:38:42 +00:00
|
|
|
Name: %{libname}
|
2013-08-01 13:25:48 +00:00
|
|
|
Summary: Client library for AMQP
|
2023-02-06 07:39:23 +00:00
|
|
|
Version: 0.13.0
|
2023-02-02 06:55:38 +00:00
|
|
|
Release: 1%{?dist}
|
2012-08-01 13:10:50 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/alanxz/rabbitmq-c
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2015-07-03 11:38:42 +00:00
|
|
|
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
|
2014-02-17 15:00:10 +00:00
|
|
|
|
2018-02-20 09:29:17 +00:00
|
|
|
BuildRequires: gcc
|
2023-02-02 06:55:38 +00:00
|
|
|
BuildRequires: cmake > 3.12
|
|
|
|
BuildRequires: openssl-devel >= 1.1.1
|
2012-03-12 15:19:34 +00:00
|
|
|
# For tools
|
2018-05-15 07:45:33 +00:00
|
|
|
BuildRequires: popt-devel > 1.14
|
2012-03-12 15:19:34 +00:00
|
|
|
# For man page
|
|
|
|
BuildRequires: xmlto
|
2021-01-05 02:34:43 +00:00
|
|
|
BuildRequires: make
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a C-language AMQP client library for use with AMQP servers
|
|
|
|
speaking protocol versions 0-9-1.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files and development libraries for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the header files and development libraries
|
2013-03-13 08:34:56 +00:00
|
|
|
for %{name}.
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Example tools built using the librabbitmq package
|
|
|
|
Requires: %{name}%{?_isa} = %{version}
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
%description tools
|
|
|
|
This package contains example tools built using %{name}.
|
|
|
|
|
|
|
|
It provides:
|
|
|
|
amqp-consume Consume messages from a queue on an AMQP server
|
|
|
|
amqp-declare-queue Declare a queue on an AMQP server
|
|
|
|
amqp-delete-queue Delete a queue from an AMQP server
|
|
|
|
amqp-get Get a message from a queue on an AMQP server
|
|
|
|
amqp-publish Publish a message on an AMQP server
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2015-07-03 11:38:42 +00:00
|
|
|
%setup -q -n %{gh_project}-%{gh_commit}
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
# Copy sources to be included in -devel docs.
|
2013-03-13 08:34:56 +00:00
|
|
|
cp -pr examples Examples
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2018-05-15 07:45:33 +00:00
|
|
|
# This test requires a running server
|
|
|
|
sed -e '/test_basic/d' -i tests/CMakeLists.txt
|
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
%build
|
2015-07-03 11:38:42 +00:00
|
|
|
# static lib required for tests
|
|
|
|
%cmake \
|
2023-02-02 06:55:38 +00:00
|
|
|
-DBUILD_TOOLS:BOOL=ON \
|
2015-07-03 11:38:42 +00:00
|
|
|
-DBUILD_TOOLS_DOCS:BOOL=ON \
|
2021-04-01 09:52:33 +00:00
|
|
|
%if %{with tests}
|
|
|
|
-DINSTALL_STATIC_LIBS:BOOL=OFF \
|
|
|
|
%else
|
2023-02-02 06:55:38 +00:00
|
|
|
-DBUILD_TESTING:BOOL=OFF \
|
2021-04-01 09:52:33 +00:00
|
|
|
-DBUILD_STATIC_LIBS:BOOL=OFF \
|
|
|
|
%endif
|
2020-08-13 06:44:55 +00:00
|
|
|
-S .
|
2013-09-28 07:33:11 +00:00
|
|
|
|
2020-08-13 06:44:55 +00:00
|
|
|
%if 0%{?cmake_build:1}
|
|
|
|
%cmake_build
|
|
|
|
%else
|
2012-03-12 15:19:34 +00:00
|
|
|
make %{_smp_mflags}
|
2020-08-13 06:44:55 +00:00
|
|
|
%endif
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-08-13 06:44:55 +00:00
|
|
|
%if 0%{?cmake_install:1}
|
|
|
|
%cmake_install
|
|
|
|
%else
|
2012-03-12 15:19:34 +00:00
|
|
|
make install DESTDIR="%{buildroot}"
|
2020-08-13 06:44:55 +00:00
|
|
|
%endif
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2014-01-07 06:51:30 +00:00
|
|
|
: check .pc is usable
|
|
|
|
grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1
|
2023-02-02 06:55:38 +00:00
|
|
|
grep %{version} %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc || exit 1
|
2021-04-01 09:52:33 +00:00
|
|
|
: check cmake files are usable
|
|
|
|
grep static %{buildroot}%{_libdir}/cmake/rabbitmq-c/*.cmake && exit 1
|
2014-01-07 06:51:30 +00:00
|
|
|
|
2023-02-02 06:55:38 +00:00
|
|
|
|
2021-04-01 09:52:33 +00:00
|
|
|
%if %{with tests}
|
2014-01-07 06:51:30 +00:00
|
|
|
: upstream tests
|
2020-08-13 06:44:55 +00:00
|
|
|
%if 0%{?ctest:1}
|
|
|
|
%ctest
|
|
|
|
%else
|
2015-07-03 11:38:42 +00:00
|
|
|
make test
|
2020-08-13 06:44:55 +00:00
|
|
|
%endif
|
2021-04-01 09:52:33 +00:00
|
|
|
%else
|
|
|
|
: Tests disabled
|
|
|
|
%endif
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2023-02-02 06:55:38 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/%{libname}.so.%{soname}
|
|
|
|
%{_libdir}/%{libname}.so.%{version}
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
2023-02-06 07:39:23 +00:00
|
|
|
%doc AUTHORS THANKS *.md
|
2013-03-13 08:34:56 +00:00
|
|
|
%doc Examples
|
2015-04-21 12:40:21 +00:00
|
|
|
%{_libdir}/%{libname}.so
|
2012-03-12 15:19:34 +00:00
|
|
|
%{_includedir}/amqp*
|
2023-02-02 06:55:38 +00:00
|
|
|
%{_includedir}/rabbitmq-c
|
2015-04-21 12:40:21 +00:00
|
|
|
%{_libdir}/pkgconfig/%{libname}.pc
|
2021-04-01 09:52:33 +00:00
|
|
|
%{_libdir}/cmake/rabbitmq-c
|
2012-03-12 15:19:34 +00:00
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
%files tools
|
|
|
|
%{_bindir}/amqp-*
|
|
|
|
%doc %{_mandir}/man1/amqp-*.1*
|
2014-08-13 07:56:08 +00:00
|
|
|
%doc %{_mandir}/man7/librabbitmq-tools.7*
|
2013-03-13 08:34:56 +00:00
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-02-06 07:39:23 +00:00
|
|
|
* Mon Feb 6 2023 Remi Collet <remi@remirepo.net> - 0.13.0-1
|
|
|
|
- update to 0.13.0
|
|
|
|
- drop patches merged upstream
|
|
|
|
|
2023-02-02 06:55:38 +00:00
|
|
|
* Wed Feb 1 2023 Remi Collet <remi@remirepo.net> - 0.12.0-1
|
|
|
|
- update to 0.12.0
|
|
|
|
- add patch to not install the static library, from
|
|
|
|
https://github.com/alanxz/rabbitmq-c/pull/749
|
|
|
|
- add patch to fix version in pkgconfig file, from
|
|
|
|
https://github.com/alanxz/rabbitmq-c/pull/751
|
|
|
|
|
2023-01-19 17:15:12 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-21 18:46:45 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-01-20 17:03:51 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-09-14 17:06:30 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.11.0-4
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-07-22 12:11:25 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-01 12:54:20 +00:00
|
|
|
* Thu Apr 1 2021 Remi Collet <remi@remirepo.net> - 0.11.0-2
|
|
|
|
- add patch to fix version in cmake file from
|
|
|
|
https://github.com/alanxz/rabbitmq-c/pull/667
|
|
|
|
|
2021-04-01 09:52:33 +00:00
|
|
|
* Thu Apr 1 2021 Remi Collet <remi@remirepo.net> - 0.11.0-1
|
|
|
|
- update to 0.11.0
|
|
|
|
- add patch to not install the static library, from
|
|
|
|
https://github.com/alanxz/rabbitmq-c/pull/665
|
|
|
|
|
2021-01-26 17:50:11 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-08-13 06:44:55 +00:00
|
|
|
* Thu Aug 13 2020 Remi Collet <remi@remirepo.net> - 0.10.0-3
|
|
|
|
- fix cmake macros usage, FTBFS #1863670
|
2020-07-28 05:25:20 +00:00
|
|
|
|
2020-01-29 10:10:04 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-02 10:33:58 +00:00
|
|
|
* Mon Dec 2 2019 Remi Collet <remi@remirepo.net> - 0.10.0-1
|
|
|
|
- update to 0.10.0
|
|
|
|
|
2019-07-25 14:13:02 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-04 09:36:33 +00:00
|
|
|
* Mon Feb 4 2019 Remi Collet <remi@remirepo.net> - 0.9.0-3
|
|
|
|
- fix cmake invocation and FTBFS
|
|
|
|
|
2019-02-01 08:03:44 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 08:43:32 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-15 07:45:33 +00:00
|
|
|
* Tue May 15 2018 Remi Collet <remi@remirepo.net> - 0.9.0-1
|
|
|
|
- update to 0.9.0
|
|
|
|
|
2018-02-20 09:29:17 +00:00
|
|
|
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 0.8.0-7
|
|
|
|
- missing BR on C compiler
|
|
|
|
|
2018-02-15 08:01:01 +00:00
|
|
|
* Thu Feb 15 2018 Remi Collet <remi@remirepo.net> - 0.8.0-6
|
|
|
|
- drop ldconfig scriptlets
|
|
|
|
|
2018-02-07 23:08:37 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 02:08:46 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 19:35:28 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 19:20:33 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-04-12 13:05:05 +00:00
|
|
|
* Tue Apr 12 2016 Remi Collet <remi@fedoraproject.org> - 0.8.0-1
|
|
|
|
- update to 0.8.0
|
|
|
|
|
2016-02-04 03:49:01 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-10-13 11:46:55 +00:00
|
|
|
* Tue Oct 13 2015 Remi Collet <remi@fedoraproject.org> - 0.7.1-1
|
|
|
|
- update to 0.7.1
|
|
|
|
|
2015-07-03 11:38:42 +00:00
|
|
|
* 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
|
|
|
|
|
2015-06-17 16:27:54 +00:00
|
|
|
* 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
|
|
|
|
|
2015-04-21 12:40:21 +00:00
|
|
|
* Mon Apr 20 2015 Remi Collet <remi@fedoraproject.org> - 0.6.0-1
|
|
|
|
- update to 0.6.0
|
|
|
|
- soname changed to .4
|
|
|
|
|
2014-09-15 12:44:25 +00:00
|
|
|
* Mon Sep 15 2014 Remi Collet <remi@fedoraproject.org> - 0.5.2-1
|
|
|
|
- update to 0.5.2
|
|
|
|
|
2014-08-17 05:38:44 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-13 07:56:08 +00:00
|
|
|
* Wed Aug 13 2014 Remi Collet <remi@fedoraproject.org> - 0.5.1-1
|
|
|
|
- update to 0.5.1
|
|
|
|
- fix license handling
|
|
|
|
- move all documentation in devel subpackage
|
|
|
|
|
2014-06-07 05:11:24 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-15 05:31:20 +00:00
|
|
|
* Tue Apr 15 2014 Remi Collet <remi@fedoraproject.org> - 0.5.0-2
|
|
|
|
- upstream patch for missing function
|
|
|
|
|
2014-02-17 15:00:10 +00:00
|
|
|
* Mon Feb 17 2014 Remi Collet <remi@fedoraproject.org> - 0.5.0-1
|
|
|
|
- update to 0.5.0
|
|
|
|
- open https://github.com/alanxz/rabbitmq-c/issues/169 (version is 0.5.1-pre)
|
|
|
|
- open https://github.com/alanxz/rabbitmq-c/issues/170 (amqp_get_server_properties)
|
|
|
|
|
2014-01-13 19:53:02 +00:00
|
|
|
* Mon Jan 13 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-4
|
|
|
|
- drop BR python-simplejson
|
|
|
|
|
2014-01-07 06:51:30 +00:00
|
|
|
* Tue Jan 7 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-3
|
2014-01-02 07:03:36 +00:00
|
|
|
- fix broken librabbitmq.pc, #1039555
|
2014-01-07 06:51:30 +00:00
|
|
|
- add check for usable librabbitmq.pc
|
|
|
|
|
|
|
|
* Thu Jan 2 2014 Remi Collet <remi@fedoraproject.org> - 0.4.1-2
|
2014-01-02 07:03:36 +00:00
|
|
|
- fix Source0 URL
|
|
|
|
|
2013-09-28 07:33:11 +00:00
|
|
|
* Sat Sep 28 2013 Remi Collet <remi@fedoraproject.org> - 0.4.1-1
|
|
|
|
- update to 0.4.1
|
|
|
|
- add ssl support
|
|
|
|
|
2013-08-01 13:25:48 +00:00
|
|
|
* Thu Aug 1 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-3
|
|
|
|
- cleanups
|
|
|
|
|
2013-03-13 09:05:09 +00:00
|
|
|
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-2
|
|
|
|
- remove tools from main package
|
|
|
|
|
2013-03-13 08:34:56 +00:00
|
|
|
* Wed Mar 13 2013 Remi Collet <remi@fedoraproject.org> - 0.3.0-1
|
|
|
|
- update to 0.3.0
|
|
|
|
- create sub-package for tools
|
|
|
|
|
2013-02-14 05:09:12 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.2.git2059570
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-01 13:10:50 +00:00
|
|
|
* Wed Aug 01 2012 Remi Collet <remi@fedoraproject.org> - 0.2-0.1.git2059570
|
|
|
|
- update to latest snapshot (version 0.2, moved to github)
|
|
|
|
- License is now MIT
|
|
|
|
|
2012-07-19 21:00:21 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-0.3.hgfb6fca832fd2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-12 15:19:34 +00:00
|
|
|
* Sun Mar 11 2012 Remi Collet <remi@fedoraproject.org> - 0.1-0.2.hgfb6fca832fd2
|
|
|
|
- add %%check (per review comment)
|
|
|
|
|
|
|
|
* Sat Mar 10 2012 Remi Collet <remi@fedoraproject.org> - 0.1-0.1.hgfb6fca832fd2
|
|
|
|
- Initial RPM
|
|
|
|
|