diff --git a/intel-ipp-crypto-mb.spec b/intel-ipp-crypto-mb.spec index 0c43b1d67c4231285a63818e7f5c93505a5b7a3a..1a825764d7cd09f3f70db43a584ea9deca5fd701 100644 --- a/intel-ipp-crypto-mb.spec +++ b/intel-ipp-crypto-mb.spec @@ -1,38 +1,21 @@ %define anolis_release 1 - -%undefine __cmake_in_source_build -%global _lto_cflags %{nil} %define debug_package %{nil} - -# Versions numbers -%global release_version_major 1 -%global release_version_minor 0 -%global release_version_rev 5 -%global release_version_full %{release_version_major}.%{release_version_minor}.%{release_version_rev} - -# Interface version -%global interface_version_major 11 -%global interface_version_minor 4 -%global interface_version_full %{interface_version_major}.%{interface_version_minor} - -%global github_source_archive_name ippcp_2021.6 +%global github_source_archive_name ippcp_2021.7 Name: intel-ipp-crypto-mb Summary: Intel(R) IPP Cryptography multi-buffer library Release: %{anolis_release}%{?dist} -Version: %{release_version_full} -License: ASL 2.0 +Version: 1.0.6 +License: Apache-2.0 # Upstream exclusively uses x86_64-specific intrinsics ExclusiveArch: x86_64 URL: https://github.com/intel/ipp-crypto Source0: https://github.com/intel/ipp-crypto/archive/refs/tags/%{github_source_archive_name}.tar.gz -BuildRequires: coreutils -BuildRequires: make -BuildRequires: tar -BuildRequires: cmake >= 3.10 -BuildRequires: openssl-devel >= 1.1.0 -BuildRequires: gcc-c++ >= 8.2 +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: openssl-devel >= 1.1.0 %description A software crypto library optimized for Intel architecture for packet @@ -41,18 +24,20 @@ It contains universal and OpenSSL compatible APIs for cryptography operations. %package devel Summary: Intel(R) IPP Cryptography multi-buffer library (Development Files) -License: ASL 2.0 Requires: %{name} = %{version}-%{release} ExclusiveArch: x86_64 %description devel A software crypto library optimized for Intel architecture for packet processing applications. - It contains development libraries and header files. -For additional information please refer to: -%{github_crypto_mb_page} +%package static +Summary: Intel(R) IPP Cryptography multi-buffer library (Development Files) +Requires: %{name} = %{version}-%{release} + +%description static +Static file for %{name}. %package doc Summary: Documentation files for %{name} @@ -64,27 +49,26 @@ The %{name}-doc package contains documentation files for %{name}. %prep %autosetup -n ipp-crypto-%{github_source_archive_name} -p1 +sed -i 's/"lib\"/"lib64"/g' sources/ippcp/crypto_mb/src/CMakeLists.txt %build -cd sources/ippcp/crypto_mb -%cmake +pushd sources/ippcp/crypto_mb +%cmake \ + -DARCH=intel64 \ + -DMERGED_BLD:BOOL=off %cmake_build -cd - +popd %install -cd sources/ippcp/crypto_mb -install -d %{buildroot}/%{_includedir}/crypto_mb -install -p -m 0644 -t %{buildroot}/%{_includedir}/crypto_mb include/crypto_mb/*.h -install -d %{buildroot}/%{_libdir} -install -p -s -m 0755 %{_vpath_builddir}/bin/libcrypto_mb.so.%{interface_version_full} %{buildroot}/%{_libdir} -cd %{buildroot}/%{_libdir} -ln -s libcrypto_mb.so.%{interface_version_full} libcrypto_mb.so.%{interface_version_major} -ln -s libcrypto_mb.so.%{interface_version_full} libcrypto_mb.so +pushd sources/ippcp/crypto_mb +%cmake_install + +install -p -s -m 0755 %{__cmake_builddir}/bin/libcrypto_mb.so.11.5 %{buildroot}/%{_libdir} +popd %files %license LICENSE -%{_libdir}/libcrypto_mb.so.%{interface_version_full} -%{_libdir}/libcrypto_mb.so.%{interface_version_major} +%{_libdir}/libcrypto_mb.so.* %files devel %dir %{_includedir}/crypto_mb @@ -102,14 +86,21 @@ ln -s libcrypto_mb.so.%{interface_version_full} libcrypto_mb.so %{_includedir}/crypto_mb/status.h %{_includedir}/crypto_mb/version.h %{_includedir}/crypto_mb/x25519.h +%{_includedir}/crypto_mb/sm4_ccm.h +%{_includedir}/crypto_mb/sm4_gcm.h %{_libdir}/libcrypto_mb.so +%files static +%{_libdir}/libcrypto_mb.a + %files doc %doc README.md DEPRECATION_NOTES.md CHANGELOG.md %doc CONST_TIME_EXECUTION_TESTING.md SECURITY.md %doc sources/ippcp/crypto_mb/Readme.md - %changelog +* Mon Feb 27 2023 happy_orange - 1.0.6-1 +- Update to 1.0.6 + * Thu Oct 13 2022 happy_orange - 1.0.5-1 - Init package from upstream diff --git a/ippcp_2021.6.tar.gz b/ippcp_2021.7.tar.gz similarity index 40% rename from ippcp_2021.6.tar.gz rename to ippcp_2021.7.tar.gz index 908bf4b1933d5fbc929915503c426b34f3ac8403..21467b005d6dcdd002867d5450e16c259729dd6b 100644 Binary files a/ippcp_2021.6.tar.gz and b/ippcp_2021.7.tar.gz differ