File gf2x.spec of Package gf2x
#
# spec file for package gf2x
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: gf2x
%define lname libgf2x3
Version: 1.3.0
Release: 0
Summary: Library for multiplication over the GF(2) field
License: GPL-3.0-or-later
Group: Productivity/Scientific/Math
URL: https://gitlab.inria.fr/gf2x/gf2x
Source: https://gitlab.inria.fr/gf2x/gf2x/uploads/c46b1047ba841c20d1225ae73ad6e4cd/gf2x-1.3.0.tar.gz
Patch1: gcc14.patch
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
%description
gf2x is a library for multiplication of polynomials over the
GF(2) binary field.
%package -n %lname
Summary: Library for multiplication over the GF(2) field
Group: System/Libraries
%description -n %lname
gf2x is a library for multiplication of polynomials over the
GF(2) binary field.
%package devel
Summary: Development headers for libgf2x
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
gf2x is a library for fast multiplication of polynomials over the
GF(2) binary field.
This package contains the interface definitions for the gf2x library.
%prep
%autosetup -p1
%build
autoreconf -fi
# SSE2 may not be available on all x86_32 machines.
# PCLMUL may not be available on all machines.
%configure --disable-static \
%ifarch %ix86
--disable-sse2 \
%endif
--disable-pclmul \
--enable-fft-interface
%make_build
%check
%make_build check
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%_libdir/libgf2x.so.*
%_libdir/libgf2x-fft.so.*
%license COPYING
%files devel
%_includedir/gf2x*
%_libdir/libgf2x.so
%_libdir/libgf2x-fft.so
%_libdir/pkgconfig/*.pc
%changelog