|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
# Fedora spec file for librabbitmq
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2012-2021 Remi Collet
|
|
|
|
|
# License: CC-BY-SA
|
|
|
|
|
# Copyright (c) 2012-2023 Remi Collet
|
|
|
|
|
# License: CC-BY-SA-4.0
|
|
|
|
|
# http://creativecommons.org/licenses/by-sa/4.0/
|
|
|
|
|
#
|
|
|
|
|
# Please, preserve the changelog entries
|
|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
%global gh_commit a64c08c68aff34d49a2ac152f04988cd921084f9
|
|
|
|
|
%global gh_commit 124722b5045baa41a24ce2e2d7c52a47467e7ac0
|
|
|
|
|
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
|
|
|
|
%global gh_owner alanxz
|
|
|
|
|
%global gh_project rabbitmq-c
|
|
|
|
@ -18,25 +18,18 @@
|
|
|
|
|
|
|
|
|
|
Name: %{libname}
|
|
|
|
|
Summary: Client library for AMQP
|
|
|
|
|
Version: 0.11.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 0.14.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/alanxz/rabbitmq-c
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
|
|
|
|
|
|
|
|
|
|
# don't install static library
|
|
|
|
|
Patch0: %{gh_project}-static.patch
|
|
|
|
|
# fix version for cmake module
|
|
|
|
|
Patch1: %{gh_project}-version.patch
|
|
|
|
|
# CVE-2023-35789
|
|
|
|
|
Patch2: rabbitmq-c-CVE-2023-35789.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: cmake > 2.8
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: cmake >= 3.12
|
|
|
|
|
BuildRequires: openssl-devel >= 1.1.1
|
|
|
|
|
# For tools
|
|
|
|
|
BuildRequires: popt-devel > 1.14
|
|
|
|
|
BuildRequires: popt-devel >= 1.14
|
|
|
|
|
# For man page
|
|
|
|
|
BuildRequires: xmlto
|
|
|
|
|
BuildRequires: make
|
|
|
|
@ -73,9 +66,6 @@ amqp-publish Publish a message on an AMQP server
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{gh_project}-%{gh_commit}
|
|
|
|
|
%patch -P0 -p1
|
|
|
|
|
%patch -P1 -p1
|
|
|
|
|
%patch -P2 -p1
|
|
|
|
|
|
|
|
|
|
# Copy sources to be included in -devel docs.
|
|
|
|
|
cp -pr examples Examples
|
|
|
|
@ -87,11 +77,13 @@ sed -e '/test_basic/d' -i tests/CMakeLists.txt
|
|
|
|
|
%build
|
|
|
|
|
# static lib required for tests
|
|
|
|
|
%cmake \
|
|
|
|
|
-DBUILD_TOOLS:BOOL=ON \
|
|
|
|
|
-DBUILD_TOOLS_DOCS:BOOL=ON \
|
|
|
|
|
-DENABLE_SSL_ENGINE_API:BOOL=OFF \
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
-DINSTALL_STATIC_LIBS:BOOL=OFF \
|
|
|
|
|
%else
|
|
|
|
|
-DBUILD_TESTS:BOOL=OFF \
|
|
|
|
|
-DBUILD_TESTING:BOOL=OFF \
|
|
|
|
|
-DBUILD_STATIC_LIBS:BOOL=OFF \
|
|
|
|
|
%endif
|
|
|
|
|
-S .
|
|
|
|
@ -114,9 +106,11 @@ make install DESTDIR="%{buildroot}"
|
|
|
|
|
%check
|
|
|
|
|
: check .pc is usable
|
|
|
|
|
grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1
|
|
|
|
|
grep %{version} %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc || exit 1
|
|
|
|
|
: check cmake files are usable
|
|
|
|
|
grep static %{buildroot}%{_libdir}/cmake/rabbitmq-c/*.cmake && exit 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
: upstream tests
|
|
|
|
|
%if 0%{?ctest:1}
|
|
|
|
@ -130,15 +124,17 @@ make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE-MIT
|
|
|
|
|
%{_libdir}/%{libname}.so.%{soname}*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_libdir}/%{libname}.so.%{soname}
|
|
|
|
|
%{_libdir}/%{libname}.so.%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc AUTHORS THANKS TODO *.md
|
|
|
|
|
%doc AUTHORS THANKS *.md
|
|
|
|
|
%doc Examples
|
|
|
|
|
%{_libdir}/%{libname}.so
|
|
|
|
|
%{_includedir}/amqp*
|
|
|
|
|
%{_includedir}/rabbitmq-c
|
|
|
|
|
%{_libdir}/pkgconfig/%{libname}.pc
|
|
|
|
|
%{_libdir}/cmake/rabbitmq-c
|
|
|
|
|
|
|
|
|
@ -149,24 +145,60 @@ make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jun 23 2023 Than Ngo <than@redhat.com> - 0.11.0-7
|
|
|
|
|
- add missing gating.yaml
|
|
|
|
|
- fix rpminspect issue
|
|
|
|
|
Related: #2215766
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.14.0-3
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.14.0-2
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Apr 03 2024 Than Ngo <than@redhat.com> - 0.14.0-1
|
|
|
|
|
- update to 0.14.0
|
|
|
|
|
- fix rpminspect rpmdeps
|
|
|
|
|
- fix gating-yaml-checks
|
|
|
|
|
|
|
|
|
|
Related: RHEL-31259
|
|
|
|
|
|
|
|
|
|
* Tue Apr 02 2024 Than Ngo <than@redhat.com> - 0.13.0-6
|
|
|
|
|
- Resolves: RHEL-31259, Conditionally enable SSL engine APIs
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 29 2023 Than Ngo <than@redhat.com> - 0.13.0-2
|
|
|
|
|
- fix security issue, CVE-2023-35789
|
|
|
|
|
|
|
|
|
|
* Mon Feb 6 2023 Remi Collet <remi@remirepo.net> - 0.13.0-1
|
|
|
|
|
- update to 0.13.0
|
|
|
|
|
- drop patches merged upstream
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 23 2023 Than Ngo <than@redhat.com> - 0.11.0-6
|
|
|
|
|
- Resolves: #2215766, insecure credentials submission
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.11.0-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.11.0-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.11.0-4
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.11.0-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 1 2021 Remi Collet <remi@remirepo.net> - 0.11.0-2
|
|
|
|
|
- add patch to fix version in cmake file from
|
|
|
|
|