diff --git a/1001-update-requirements-of-qat-and-usdm.patch b/1001-update-requirements-of-qat-and-usdm.patch new file mode 100644 index 0000000000000000000000000000000000000000..fd48917a8d8718a4fd90471c6d92dd44796dabb9 --- /dev/null +++ b/1001-update-requirements-of-qat-and-usdm.patch @@ -0,0 +1,50 @@ +From 9798f3f24d91006f80cde685e4462584d63292dd Mon Sep 17 00:00:00 2001 +Message-Id: <9798f3f24d91006f80cde685e4462584d63292dd.1683707300.git.llfl@linux.alibaba.com> +From: "Kun(llfl)" +Date: Wed, 10 May 2023 16:28:10 +0800 +Subject: [PATCH] update requirements of qat and usdm + +Signed-off-by: Kun(llfl) +--- + configure.ac | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 571184f..d867293 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -186,26 +186,26 @@ AS_IF([test ! -z "${ICP_ROOT}"], + ] + ) + +- AC_CHECK_LIB(qat, cpaDcCompressData2, , ++ AC_CHECK_LIB(qat_s, cpaDcCompressData2, , + [ AC_MSG_ERROR([cpaDcCompressData2 not found])], +- [-lusdm -lcrypto]) ++ [-lusdm_drv_s -lcrypto]) + + #check for icp_adf_get_numDevices/icp_sal_userIsQatAvailable + AC_CHECK_LIB(qat, icp_adf_get_numDevices, + [ADF_CFLAGS="-DADF_PCI_API" + AC_SUBST(ADF_CFLAGS)], + [ +- AC_CHECK_LIB(qat, icp_sal_userIsQatAvailable, ++ AC_CHECK_LIB(qat_s, icp_sal_userIsQatAvailable, + [SAL_CFLAGS="-DSAL_DEV_API" + AC_SUBST(SAL_CFLAGS)], + [AC_MSG_ERROR([icp_sal_userIsQatAvailable/icp_adf_get_numDevices not found])], +- [-lusdm -lcrypto] ++ [-lusdm_drv_s -lcrypto] + ) + ] + ) + + #check for usdm lib +- AC_CHECK_LIB(usdm, qaeMemAllocNUMA,, ++ AC_CHECK_LIB(usdm_drv_s, qaeMemAllocNUMA,, + [AC_MSG_ERROR([qaeMemAllocNUMA not found])]) + ]) + +-- +2.39.0 + diff --git a/qatzip.spec b/qatzip.spec index ddb88cdab8522185a3d5e515664722d56294ef13..94a50e8dc63458a57e550a16115ef3f9b844af2c 100644 --- a/qatzip.spec +++ b/qatzip.spec @@ -1,18 +1,20 @@ -%define anolis_release 2 +%define anolis_release 1 %global githubname QATzip %global libqatzip_soversion 3 Name: qatzip -Version: 1.0.9 +Version: 1.1.2 Release: %{anolis_release}%{?dist} Summary: Intel QuickAssist Technology (QAT) QATzip Library License: BSD URL: https://github.com/intel/%{githubname} Source0: https://github.com/intel/%{githubname}/archive/v%{version}.tar.gz +Patch1000: 1001-update-requirements-of-qat-and-usdm.patch + BuildRequires: gcc >= 4.8.5 autoconf automake libtool make -BuildRequires: zlib-devel >= 1.2.7 lz4-devel qatlib-devel >= 22.07.0 +BuildRequires: zlib-devel >= 1.2.7 lz4-devel qatlib-devel >= 23.02.0 usdm # The purpose of the package is to support hardware that only exists on x86_64 platforms ExclusiveArch: x86_64 @@ -43,6 +45,14 @@ Summary: Libraries for the qatzip package This package contains libraries for applications to use the QATzip APIs. +%package static +Summary: Provides the static lib for the qatzip package +Requires: %{name} = %{version}-%{release} + +%description static +This package contains libraries for applications to use +the QATzip APIs. + %package devel Summary: Development components for the libqatzip package Requires: %{name}-libs = %{version}-%{release} @@ -66,20 +76,13 @@ The %{name}-doc package contains documentation files for %{name}. %set_build_flags autoreconf -ivf -./configure \ - --enable-symbol \ - --prefix=%{_prefix} \ - --mandir=%{_mandir} \ - --bindir=%{_bindir} \ - --includedir=%{_includedir} \ - --libdir=%{_libdir} +%configure \ + --enable-symbol %make_build %install %make_install -rm %{buildroot}/%{_libdir}/libqatzip.a -rm %{buildroot}/%{_libdir}/libqatzip.la rm -vf %{buildroot}%{_mandir}/*.pdf %generate_compatibility_deps @@ -88,17 +91,22 @@ rm -vf %{buildroot}%{_mandir}/*.pdf %license LICENSE* %{_mandir}/man1/qzip.1* %{_bindir}/qzip +%{abidir}/qzip-option.list %files libs %dir %{abidir} %license LICENSE* %{_libdir}/libqatzip.so.%{libqatzip_soversion}* %{abidir}/libqatzip.dump -%{abidir}/qzip-option.list + +%files static +%{_libdir}/libqatzip.a + %files devel %{_includedir}/qatzip.h %{_libdir}/libqatzip.so +%{_libdir}/pkgconfig/qatzip.pc %doc docs/QATzip-man.pdf %files doc @@ -106,6 +114,9 @@ rm -vf %{buildroot}%{_mandir}/*.pdf %doc README.md %changelog +* Thu Aug 10 2023 Kun(llfl) - 1.1.2-1 +- update version to 1.1.2 + * Mon Apr 10 2023 Xuchun Shang - 1.0.9-2 - Update some defination diff --git a/v1.0.9.tar.gz b/v1.0.9.tar.gz deleted file mode 100644 index a9eed9fd197f83787876fc46cf906e621ab260fb..0000000000000000000000000000000000000000 Binary files a/v1.0.9.tar.gz and /dev/null differ diff --git a/v1.1.2.tar.gz b/v1.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..82ebda3b1bcf616445f0c95b752fff9ae97ae369 Binary files /dev/null and b/v1.1.2.tar.gz differ