Accepting request 617822 from openSUSE:Factory:RISCV
- 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
This commit is contained in:
parent
6d4d79e44e
commit
06758816f3
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 19 15:49:54 UTC 2018 - schwab@suse.de
|
||||||
|
|
||||||
|
- Add option to build without openblas
|
||||||
|
- Use %license for COPYING.LESSER
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 25 17:03:23 UTC 2017 - jengelh@inai.de
|
Mon Dec 25 17:03:23 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package fflas-ffpack
|
# spec file for package fflas-ffpack
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,12 +22,14 @@
|
|||||||
%define atlas %_libdir/atlas
|
%define atlas %_libdir/atlas
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%bcond_without openblas
|
||||||
|
|
||||||
Name: fflas-ffpack
|
Name: fflas-ffpack
|
||||||
%define lname libfflas0
|
%define lname libfflas0
|
||||||
Version: 2.3.2
|
Version: 2.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Finite Field Linear Algebra Subroutines
|
Summary: Finite Field Linear Algebra Subroutines
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1-or-later
|
||||||
Group: Productivity/Scientific/Math
|
Group: Productivity/Scientific/Math
|
||||||
Url: https://linbox-team.github.io/fflas-ffpack/
|
Url: https://linbox-team.github.io/fflas-ffpack/
|
||||||
|
|
||||||
@ -38,7 +40,12 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gmp-devel >= 3.1.1
|
BuildRequires: gmp-devel >= 3.1.1
|
||||||
BuildRequires: libtool >= 2.2
|
BuildRequires: libtool >= 2.2
|
||||||
|
%if %{with openblas}
|
||||||
BuildRequires: openblas-devel
|
BuildRequires: openblas-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: blas-devel
|
||||||
|
BuildRequires: cblas-devel
|
||||||
|
%endif
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: pkgconfig(givaro)
|
BuildRequires: pkgconfig(givaro)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -82,7 +89,12 @@ if [ ! -e configure ]; then
|
|||||||
fi
|
fi
|
||||||
trap "cat config.log; exit 1" ERR
|
trap "cat config.log; exit 1" ERR
|
||||||
%configure \
|
%configure \
|
||||||
--with-blas-cflags=" " --with-blas-libs="-lopenblas" \
|
--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
|
--enable-doc --with-docdir="%_docdir/%name" --disable-simd
|
||||||
trap "" ERR
|
trap "" ERR
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -94,7 +106,8 @@ rm -f "%buildroot/%_docdir/%name/fflas-ffpack-html/INSTALL"
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc ChangeLog COPYING.LESSER
|
%doc ChangeLog
|
||||||
|
%license COPYING.LESSER
|
||||||
%_bindir/fflas-ffpack-config
|
%_bindir/fflas-ffpack-config
|
||||||
%_includedir/fflas-ffpack/
|
%_includedir/fflas-ffpack/
|
||||||
%_libdir/pkgconfig/ff*.pc
|
%_libdir/pkgconfig/ff*.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user