File gf2x.spec of Package gf2x
#
# spec file for package gf2x
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: gf2x
%define lname libgf2x1
Version: 1.1
Release: 0
Group: Productivity/Scientific/Math
Summary: Library for multiplication over the GF(2) field
License: GPL-2.0+
URL: https://gforge.inria.fr/projects/gf2x/
Source: https://gforge.inria.fr/frs/download.php/30873/%name-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gf2x is a library for fast 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 fast multiplication of polynomials over the
GF(2) binary field.
%package devel
Summary: Development files 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 headers for the gf2x library.
%prep
%setup -q
%build
# PCLMUL may not be available on all machines
%configure --disable-static --disable-pclmul
make %{?_smp_mflags};
%check
make check %{?_smp_mflags};
%install
b="%buildroot";
make install DESTDIR="$b";
rm -f "$b/%_libdir"/*.la;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%_libdir/*gf2x.so.*
%files devel
%defattr(-,root,root)
%_includedir/gf2x*
%_libdir/*gf2x.so
%changelog