fflas-ffpack/fflas-ffpack.spec

104 lines
2.9 KiB
RPMSpec

#
# spec file for package fflas-ffpack
#
# Copyright (c) 2013 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/
#
%ifarch %ix86
%define atlas %{_libdir}/atlas-sse2
%else
%define atlas %{_libdir}/atlas
%endif
Name: fflas-ffpack
%define lname libfflas0
Version: 2.0.0
Release: 0
Summary: Finite Field Linear Algebra Subroutines
License: LGPL-2.1+
Group: Productivity/Scientific/Math
Url: http://linalg.org/projects/fflas-ffpack
#SVN-Clone: svn://linalg.org/fflas-ffpack
Source: http://linalg.org/%name-%version.tar.gz
Source2: http://linalg.org/%name-ChangeLog-%version
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: givaro-devel
BuildRequires: gmp-devel >= 3.1.1
BuildRequires: lapack-devel
BuildRequires: libatlas3-devel
BuildRequires: xz
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++
Requires: libatlas3-devel
%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
%configure \
--with-blas-cflags=" " \
--with-blas-libs="-L%{atlas} -lcblas -ltatlas" \
--enable-doc --with-docdir="%_docdir/%name"
make %{?_smp_mflags}
%install
b="%buildroot";
make install DESTDIR="$b";
cp "%{S:2}" "$b/%_docdir/%name/"
rm -f "$b/%_docdir/%name/fflas-ffpack-html/INSTALL"
%fdupes %buildroot/%_prefix
%files devel
%defattr(-,root,root)
%_bindir/fflas-ffpack-config
%_includedir/fflas-ffpack/
%files doc
%defattr(-,root,root)
%_docdir/%name/
%changelog