SHA256
1
0
forked from pool/fflas-ffpack
fflas-ffpack/fflas-ffpack.spec
Jan Engelhardt 55f9a526fe Accepting request 622370 from home:bmwiedemann:branches:science
Add reproducible.patch to disable compile-time CPU detection (boo#1100677)

without this patch, /usr/bin/fflas-ffpack-config differed between CPUs

OBS-URL: https://build.opensuse.org/request/show/622370
OBS-URL: https://build.opensuse.org/package/show/science/fflas-ffpack?expand=0&rev=31
2018-07-14 10:44:46 +00:00

122 lines
3.2 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
Patch0: reproducible.patch
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
%patch0 -p1
#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