diff --git a/babassl-8.2.0.tar.gz b/Tongsuo-8.3.3.tar.gz similarity index 45% rename from babassl-8.2.0.tar.gz rename to Tongsuo-8.3.3.tar.gz index 48633aa7b81d0f2c19f13ef12b91b782fa5210a3..eebfb3fda21b8d16342aabff0844b34512b8bdec 100644 Binary files a/babassl-8.2.0.tar.gz and b/Tongsuo-8.3.3.tar.gz differ diff --git a/babassl.spec b/tongsuo.spec similarity index 41% rename from babassl.spec rename to tongsuo.spec index 5f5d6b61998a25c07e7cf9e62e84f3a95b2e0a2e..488871a136ba09a9a41a250a764179a72f76bf33 100644 --- a/babassl.spec +++ b/tongsuo.spec @@ -1,8 +1,6 @@ -%define anolis_release 2 +%define anolis_release 1 -%global debug_package %{nil} - -%define babassl_prefix /opt/babassl +%define install_prefix /opt/tongsuo %global _privatelibs libcrypto[.]so.* %global _privatelibs %{_privatelibs}|libssl[.]so.* @@ -14,24 +12,42 @@ %global PROJECT BabaSSL %global IMPORTNAME %{DOMAIN}/%{ORG}/%{PROJECT} -Name: babassl -Version: 8.2.0 +Name: tongsuo +Version: 8.3.3 Release: %{anolis_release}%{?dist} -Summary: A Brisk and Better Assured Cryptographic Toolkit +Summary: A Modern Cryptographic Primitives and Protocols Library Group: System Environment/Libraries License: Apache-2.0 -Url: https://codeup.openanolis.cn/codeup/projects/BabaSSL -Source0: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildRequires: coreutils, perl -BuildRequires: perl-Test-Harness, perl-core +Url: https://www.yuque.com/tsdoc +Source0: https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/Tongsuo-%{version}.tar.gz + +# For build +BuildRequires: perl(Config) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(FindBin) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Compare) +BuildRequires: perl(lib) +BuildRequires: /usr/bin/pod2html +# For tests +BuildRequires: perl(TAP::Harness), perl(Test::Harness) +BuildRequires: perl(Test::More), perl(Math::BigInt) +BuildRequires: perl(Module::Load::Conditional), perl(File::Temp) +BuildRequires: perl(Time::HiRes) + +Obsoletes: babassl < %{version} +Provides: babassl = %{version} + +# Keep silent on loongarch64 and turn it back on when needed +ExcludeArch: loongarch64 %description -BabaSSL is a modern cryptographic and secure protocol library developed by the - amazing people in Alibaba Digital Economy. +A Modern Cryptographic Primitives and Protocols Library. %prep -%setup -q -n BabaSSL-%{version} +%setup -q -n Tongsuo-%{version} %build sslarch=%{_os}-%{_target_cpu} @@ -47,37 +63,45 @@ sslarch=linux-aarch64 %endif ./Configure \ - --prefix=%{babassl_prefix} -Wl,-rpath,%{babassl_prefix}/lib \ + --prefix=%{install_prefix} -Wl,-rpath,%{install_prefix}/lib \ ${sslarch} enable-shared no-hw no-hw-padlock no-static-engine \ enable-dynamic-engine enable-tls1_3 enable-ssl3 enable-ssl3-method \ enable-weak-ssl-ciphers enable-evp-cipher-api-compat enable-status \ enable-crypto-mdebug-count enable-dynamic-ciphers enable-optimize-chacha \ enable-rsa-multi-prime-key-compat enable-session-lookup \ enable-session-reused-type enable-global-session-cache enable-verify-sni \ - enable-skip-scsv enable-ntls enable-sm2 --strict-warnings --release -fPIC + enable-skip-scsv enable-ntls enable-sm2 \ + %{build_cflags} %{build_ldflags} -make %{?_smp_mflags} +%make_build %check -make test +%make_build test %install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +%make_install -make install DESTDIR=$RPM_BUILD_ROOT +rm -f %{buildroot}%{install_prefix}{/bin/c_rehash,/ssl/misc/tsget*,/ssl/misc/*.pl} -%clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +export QA_RPATHS=$(( 0x0002 )) %files -%defattr(-,root,root,-) -%{babassl_prefix} -%exclude %{babassl_prefix}/bin/c_rehash -%exclude %{babassl_prefix}/ssl/misc/tsget* -%exclude %{babassl_prefix}/ssl/misc/*.pl +%license LICENSE +%{install_prefix} +%dir %{install_prefix} %changelog +* Mon Aug 28 2023 Tianjia Zhang - 8.3.3-1 +- Introduce v8.3.3 + +* Sun Aug 27 2023 Chunmei Xu - 8.3.2-2 +- backport patches from 8.3-stable + +* Tue Feb 14 2023 Funda Wang - 8.3.2-1 +- Import packge for anolis 23 + * Mon Jul 5 2021 Chenglong Zhang - 8.2.0-2 - Init version of 8.2.0 + * Tue Jun 8 2021 Liwei Ge - 8.2.0-1 - Init version of 8.2.0