Jan Engelhardt
06758816f3
- Add option to build without openblas - Use %license for COPYING.LESSER OBS-URL: https://build.opensuse.org/request/show/617822 OBS-URL: https://build.opensuse.org/package/show/science/fflas-ffpack?expand=0&rev=29
120 lines
3.1 KiB
RPMSpec
120 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package fflas-ffpack
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
%ifarch %ix86
|
|
%define atlas %_libdir/atlas-sse2
|
|
%else
|
|
%define atlas %_libdir/atlas
|
|
%endif
|
|
|
|
%bcond_without openblas
|
|
|
|
Name: fflas-ffpack
|
|
%define lname libfflas0
|
|
Version: 2.3.2
|
|
Release: 0
|
|
Summary: Finite Field Linear Algebra Subroutines
|
|
License: LGPL-2.1-or-later
|
|
Group: Productivity/Scientific/Math
|
|
Url: https://linbox-team.github.io/fflas-ffpack/
|
|
|
|
#Git-Clone: https://github.com/linbox-team/fflas-ffpack
|
|
Source: https://github.com/linbox-team/%name/archive/v%version.tar.gz
|
|
BuildRequires: doxygen
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gmp-devel >= 3.1.1
|
|
BuildRequires: libtool >= 2.2
|
|
%if %{with openblas}
|
|
BuildRequires: openblas-devel
|
|
%else
|
|
BuildRequires: blas-devel
|
|
BuildRequires: cblas-devel
|
|
%endif
|
|
BuildRequires: pkg-config
|
|
BuildRequires: pkgconfig(givaro)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The FFLAS-FFPACK library provides functionalities for dense linear
|
|
algebra over word size prime finite field.
|
|
|
|
%package devel
|
|
Summary: Development files for FFLAS-FFPACK
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description devel
|
|
The FFLAS-FFPACK library provides functionalities for dense linear
|
|
algebra over word size prime finite field.
|
|
|
|
This subpackage contains the include files and library links for
|
|
developing against the fflas-ffpack library.
|
|
|
|
%package doc
|
|
Summary: API documentation for FFLAS-FFPACK
|
|
Group: Documentation/HTML
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
The FFLAS-FFPACK library provides functionalities for dense linear
|
|
algebra over word size prime finite field.
|
|
|
|
This subpackage contains the Doxygen-generated HTML documentation for
|
|
the FFLAS-FFPACK API.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
#Do not compile in DATE and TIME
|
|
sed '/HTML_TIMESTAMP/s/YES/NO/' -i doc/Doxyfile
|
|
|
|
%build
|
|
if [ ! -e configure ]; then
|
|
autoreconf -fi
|
|
fi
|
|
trap "cat config.log; exit 1" ERR
|
|
%configure \
|
|
--with-blas-cflags=" " \
|
|
%if %{with openblas}
|
|
--with-blas-libs="-lopenblas" \
|
|
%else
|
|
--with-blas-libs="-lcblas -lblas" \
|
|
%endif
|
|
--enable-doc --with-docdir="%_docdir/%name" --disable-simd
|
|
trap "" ERR
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
rm -f "%buildroot/%_docdir/%name/fflas-ffpack-html/INSTALL"
|
|
%fdupes %buildroot/%_prefix
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog
|
|
%license COPYING.LESSER
|
|
%_bindir/fflas-ffpack-config
|
|
%_includedir/fflas-ffpack/
|
|
%_libdir/pkgconfig/ff*.pc
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%_docdir/%name/
|
|
|
|
%changelog
|