diff --git a/librabbitmq.spec b/librabbitmq.spec index a9fd71f..78d0443 100644 --- a/librabbitmq.spec +++ b/librabbitmq.spec @@ -1,21 +1,19 @@ -%global git_commit a64c08c68aff34d49a2ac152f04988cd921084f9 -%global git_short_commit %(tmp=%{git_commit}; echo ${tmp:0:7}) %global project_name rabbitmq-c Name: librabbitmq -Version: 0.11.0 -Release: 2 +Version: 0.13.0 +Release: 1 Summary: The AMQP client library License: MIT URL: https://github.com/alanxz/rabbitmq-c -Source0: https://github.com/alanxz/%{project_name}/archive/%{git_commit}/%{project_name}-%{version}-%{git_short_commit}.tar.gz +Source0: https://github.com/alanxz/%{project_name}/archive/refs/tags/v%{version}.tar.gz Patch0: CVE-2023-35789.patch -BuildRequires: cmake > 2.8 +BuildRequires: cmake > 3.12 BuildRequires: popt-devel > 1.14 BuildRequires: openssl-devel xmlto gcc Provides: %{name}-tools @@ -38,11 +36,11 @@ Summary: Help manual for %{name} The %{name}-help package conatins man manual etc %prep -%autosetup -n %{project_name}-%{git_commit} -p1 +%autosetup -n %{project_name}-%{version} -p1 sed -e '/test_basic/d' -i tests/CMakeLists.txt %build -%cmake -DBUILD_TOOLS_DOCS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON +%cmake -DBUILD_TOOLS:BOOL=ON -DBUILD_TOOLS_DOCS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON %make_build %install @@ -54,15 +52,17 @@ grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1 make test %files -%license LICENSE-MIT AUTHORS -%doc THANKS TODO *.md +%license LICENSE AUTHORS +%doc THANKS *.md %{_libdir}/%{name}.so.4* +%{_libdir}/%{name}.so.%{version} %{_bindir}/amqp-* %{_libdir}/cmake/rabbitmq-c/* %files devel %{_libdir}/%{name}.so %{_includedir}/amqp* +%{_includedir}/%{project_name}/*.h %{_libdir}/pkgconfig/%{name}.pc %files help @@ -70,6 +70,9 @@ make test %doc %{_mandir}/man7/librabbitmq-tools.7* %changelog +* Thu Oct 12 2023 Ge Wang - 0.13.0-1 +- Update to version 0.13.0 + * Fri Jun 30 2023 yaoxin - 0.11.0-2 - Fix CVE-2023-35789 diff --git a/rabbitmq-c-0.11.0-a64c08c.tar.gz b/rabbitmq-c-0.11.0-a64c08c.tar.gz deleted file mode 100644 index 10793f0..0000000 Binary files a/rabbitmq-c-0.11.0-a64c08c.tar.gz and /dev/null differ diff --git a/v0.13.0.tar.gz b/v0.13.0.tar.gz new file mode 100644 index 0000000..7749fc4 Binary files /dev/null and b/v0.13.0.tar.gz differ