Martin Pluskal
2021-02-05 07:04:08 +00:00
committed by Git OBS Bridge
parent 6940042683
commit cfabec10b5
5 changed files with 18 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package libff
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,8 +23,7 @@ Summary: C++ library for Finite Fields and Elliptic Curves
License: MIT
Group: System/Libraries
URL: https://github.com/scipr-lab/libff
Source0: %{name}-%{version}.tar.xz
Source99: prepare_source.sh
Source0: https://github.com/scipr-lab/libff/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: 00_no_bn128.patch
Patch1: 01_shared_lib.patch
Patch2: 02_config_hpp.patch
@@ -45,19 +44,17 @@ Requires: libff = %{version}
The %{name}-devel package contains libraries and header files for developing applications that use libff.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%autosetup -p1
chmod 0644 LICENSE AUTHORS README.md
# see 00_no_bn128.patch
rm -r depends
rm -r libff/algebra/curves/bn128
rm libff/algebra/scalar_multiplication/multiexp_profile.cpp
%build
%cmake \
-DWITH_PROCPS=OFF
%if %suse_version > 1500
%cmake_build
%else
%make_jobs
%endif
%check
cd build
@@ -70,6 +67,8 @@ make %{?_smp_mflags} check
%postun -p /sbin/ldconfig
%files
%doc README.md
%license LICENSE AUTHORS
%{_libdir}/libff.so
%files devel