|
|
|
@ -1,45 +1,29 @@
|
|
|
|
|
# Fedora spec file for librabbitmq
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2012-2021 Remi Collet
|
|
|
|
|
# Copyright (c) 2012-2018 Remi Collet
|
|
|
|
|
# License: CC-BY-SA
|
|
|
|
|
# http://creativecommons.org/licenses/by-sa/4.0/
|
|
|
|
|
#
|
|
|
|
|
# Please, preserve the changelog entries
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
%global gh_commit a64c08c68aff34d49a2ac152f04988cd921084f9
|
|
|
|
|
%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: %{libname}
|
|
|
|
|
Name: librabbitmq
|
|
|
|
|
Summary: Client library for AMQP
|
|
|
|
|
Version: 0.11.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 0.9.0
|
|
|
|
|
Release: 5%{?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
|
|
|
|
|
Source0: https://github.com/alanxz/rabbitmq-c/archive/v%{version}.tar.gz
|
|
|
|
|
Patch0: rabbitmq-c-0.9.0-CVE-2019-18609.patch
|
|
|
|
|
Patch1: rabbitmq-c-CVE-2023-35789.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: cmake > 2.8
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
# For tools
|
|
|
|
|
BuildRequires: popt-devel > 1.14
|
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
|
# For man page
|
|
|
|
|
BuildRequires: xmlto
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -72,10 +56,9 @@ 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
|
|
|
|
|
%setup -q -n rabbitmq-c-%{version}
|
|
|
|
|
%patch0 -p1 -b .CVE-2019-18609
|
|
|
|
|
%patch1 -p1 -b .CVE-2023-35789
|
|
|
|
|
|
|
|
|
|
# Copy sources to be included in -devel docs.
|
|
|
|
|
cp -pr examples Examples
|
|
|
|
@ -83,64 +66,40 @@ cp -pr examples Examples
|
|
|
|
|
# This test requires a running server
|
|
|
|
|
sed -e '/test_basic/d' -i tests/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# static lib required for tests
|
|
|
|
|
%cmake \
|
|
|
|
|
-DBUILD_TOOLS_DOCS:BOOL=ON \
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
-DINSTALL_STATIC_LIBS:BOOL=OFF \
|
|
|
|
|
%else
|
|
|
|
|
-DBUILD_TESTS:BOOL=OFF \
|
|
|
|
|
-DBUILD_STATIC_LIBS:BOOL=OFF \
|
|
|
|
|
%endif
|
|
|
|
|
-S .
|
|
|
|
|
|
|
|
|
|
%if 0%{?cmake_build:1}
|
|
|
|
|
%cmake_build
|
|
|
|
|
%else
|
|
|
|
|
-DBUILD_STATIC_LIBS:BOOL=ON
|
|
|
|
|
|
|
|
|
|
make %{_smp_mflags}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if 0%{?cmake_install:1}
|
|
|
|
|
%cmake_install
|
|
|
|
|
%else
|
|
|
|
|
make install DESTDIR="%{buildroot}"
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{_libdir}/%{name}.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
: check .pc is usable
|
|
|
|
|
grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1
|
|
|
|
|
: check cmake files are usable
|
|
|
|
|
grep static %{buildroot}%{_libdir}/cmake/rabbitmq-c/*.cmake && exit 1
|
|
|
|
|
grep @ %{buildroot}%{_libdir}/pkgconfig/%{name}.pc && exit 1
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
: upstream tests
|
|
|
|
|
%if 0%{?ctest:1}
|
|
|
|
|
%ctest
|
|
|
|
|
%else
|
|
|
|
|
make test
|
|
|
|
|
%endif
|
|
|
|
|
%else
|
|
|
|
|
: Tests disabled
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE-MIT
|
|
|
|
|
%{_libdir}/%{libname}.so.%{soname}*
|
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc AUTHORS THANKS TODO *.md
|
|
|
|
|
%doc Examples
|
|
|
|
|
%{_libdir}/%{libname}.so
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_includedir}/amqp*
|
|
|
|
|
%{_libdir}/pkgconfig/%{libname}.pc
|
|
|
|
|
%{_libdir}/cmake/rabbitmq-c
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
|
%{_bindir}/amqp-*
|
|
|
|
@ -149,59 +108,22 @@ 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
|
|
|
|
|
|
|
|
|
|
* Fri Jun 23 2023 Than Ngo <than@redhat.com> - 0.11.0-6
|
|
|
|
|
- Resolves: #2215766, insecure credentials submission
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* 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 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
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 13 2020 Remi Collet <remi@remirepo.net> - 0.10.0-3
|
|
|
|
|
- fix cmake macros usage, FTBFS #1863670
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Dec 2 2019 Remi Collet <remi@remirepo.net> - 0.10.0-1
|
|
|
|
|
- update to 0.10.0
|
|
|
|
|
* Tue Nov 28 2023 Than Ngo <than@redhat.com> - 0.9.0-5
|
|
|
|
|
- Resolves: RHEL-17851, rebuild for adding librabbitmq-tools
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 0.9.0-4
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Mon Feb 4 2019 Remi Collet <remi@remirepo.net> - 0.9.0-3
|
|
|
|
|
- fix cmake invocation and FTBFS
|
|
|
|
|
* Fri Jun 23 2023 Than Ngo <than@redhat.com> - 0.9.0-4
|
|
|
|
|
- Resolves: #2215765, insecure credentials submission
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Tue Sep 29 2020 Than Ngo <than@redhat.com> - 0.9.0-3
|
|
|
|
|
- Resolves: #1857831, rpmdiff
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Mon Apr 06 2020 Than Ngo <than@redhat.com> - 0.9.0-2
|
|
|
|
|
- Resolves: #1809992, CVE-2019-18609
|
|
|
|
|
|
|
|
|
|
* Tue May 15 2018 Remi Collet <remi@remirepo.net> - 0.9.0-1
|
|
|
|
|
* Thu Jun 28 2018 Than Ngo <than@redhat.com> - 0.9.0-1
|
|
|
|
|
- update to 0.9.0
|
|
|
|
|
|
|
|
|
|
* Tue Feb 20 2018 Remi Collet <remi@remirepo.net> - 0.8.0-7
|
|
|
|
|