diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..1de2e5a --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libff-1_0_0 diff --git a/libff.changes b/libff.changes index 848bd90..d3e5ec6 100644 --- a/libff.changes +++ b/libff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 10 11:06:28 UTC 2025 - Martin Pluskal + +- Build AVX2 enabled hwcaps library for x86_64-v3 + ------------------------------------------------------------------- Tue Feb 13 12:30:27 UTC 2024 - Martin Pluskal diff --git a/libff.spec b/libff.spec index a52475a..ae9a2ff 100644 --- a/libff.spec +++ b/libff.spec @@ -1,7 +1,7 @@ # # spec file for package libff # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ Summary: C++ library for Finite Fields and Elliptic Curves License: MIT URL: https://github.com/scipr-lab/libff Source0: https://github.com/scipr-lab/libff/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source99: baselibs.conf Patch0: 00_no_bn128.patch Patch1: 01_shared_lib.patch Patch2: 02_config_hpp.patch @@ -31,20 +32,19 @@ BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gmp-devel BuildRequires: libopenssl-devel +%{?suse_build_hwcaps_libs} %description libff is a C++ library for finite fields and elliptic curves. %package -n %{lname} Summary: C++ library for finite fields and elliptic curves -Group: System/Libraries %description -n %{lname} libff is a C++ library for finite fields and elliptic curves. %package devel Summary: Development files for libff -Group: Development/Libraries/C and C++ Requires: %{lname} = %{version}-%{release} %description devel @@ -60,7 +60,8 @@ rm libff/algebra/scalar_multiplication/multiexp_profile.cpp %build %cmake \ - -DWITH_PROCPS=OFF -DPACKAGE_VERSION:STRING="%{version}" + -DWITH_PROCPS=OFF \ + -DPACKAGE_VERSION:STRING="%{version}" %cmake_build %check