2017-09-11 20:30:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package linbox
|
|
|
|
#
|
2021-12-14 12:46:37 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-09-11 20:30:25 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-05 14:29:07 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-09-11 20:30:25 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-08-15 20:59:27 +02:00
|
|
|
%bcond_without openblas
|
|
|
|
|
2017-09-11 20:30:25 +02:00
|
|
|
Name: linbox
|
|
|
|
%define lname liblinbox0
|
2021-12-14 12:46:37 +01:00
|
|
|
Version: 1.7.0
|
2017-09-11 20:30:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C++ library for computation with matrices over ints and finite fields
|
2018-06-23 10:59:02 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2017-09-11 20:30:25 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2019-09-05 14:29:07 +02:00
|
|
|
URL: https://linalg.org/
|
2017-09-11 20:30:25 +02:00
|
|
|
|
|
|
|
Source: https://github.com/linbox-team/linbox/releases/download/v%version/linbox-%version.tar.gz
|
|
|
|
BuildRequires: autoconf >= 2.61
|
|
|
|
BuildRequires: automake >= 1.8
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: iml-devel
|
|
|
|
BuildRequires: libm4ri-devel
|
|
|
|
BuildRequires: libm4rie-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: mpfr-devel
|
|
|
|
BuildRequires: ntl-devel
|
2018-08-15 20:59:27 +02:00
|
|
|
%if %{with openblas}
|
2017-09-11 20:30:25 +02:00
|
|
|
BuildRequires: openblas-devel
|
2018-08-15 20:59:27 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: blas-devel
|
|
|
|
BuildRequires: cblas-devel
|
|
|
|
%endif
|
2017-12-25 20:58:25 +01:00
|
|
|
BuildRequires: pkgconfig(fflas-ffpack) >= 2.3.0
|
2017-09-11 20:30:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
LinBox is a C++ template library for exact, high-performance linear
|
|
|
|
algebra computation with dense, sparse, and structured matrices over
|
|
|
|
the integers and over finite fields.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: C++ library for computation with matrices over ints and finite fields
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
LinBox is a C++ template library for exact, high-performance linear
|
|
|
|
algebra computation with dense, sparse, and structured matrices over
|
|
|
|
the integers and over finite fields.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for LinBox, a library for computation over finite fields
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
LinBox is a C++ template library for exact, high-performance linear
|
|
|
|
algebra computation with dense, sparse, and structured matrices over
|
|
|
|
the integers and over finite fields.
|
|
|
|
|
2021-12-14 12:46:37 +01:00
|
|
|
This subpackage contains the include files and library links for
|
2017-09-11 20:30:25 +02:00
|
|
|
developing against the Givaro library.
|
|
|
|
|
|
|
|
%prep
|
2019-09-05 14:29:07 +02:00
|
|
|
%autosetup -p1
|
2017-09-11 20:30:25 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2017-12-25 21:02:28 +01:00
|
|
|
%configure --disable-static \
|
|
|
|
%ifarch %ix86
|
|
|
|
--disable-sse --disable-sse2 \
|
|
|
|
%endif
|
|
|
|
--disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42 \
|
2021-12-14 12:46:37 +01:00
|
|
|
--disable-avx --disable-avx2 --disable-fma --disable-fma4 \
|
|
|
|
--without-archnative
|
|
|
|
%make_build
|
2017-09-11 20:30:25 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%_libdir/liblinbox.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_bindir/*-config
|
|
|
|
%_includedir/%name/
|
|
|
|
%_libdir/liblinbox.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%_mandir/man1/*.1*
|
2019-09-05 14:29:07 +02:00
|
|
|
%license COPYING*
|
2017-09-11 20:30:25 +02:00
|
|
|
|
|
|
|
%changelog
|