File mingw64-lapack.spec of Package mingw64-lapack

#
# spec file for package mingw64-lapack
#
# Copyright (c) 2014 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/
#


%define _basename lapack
Name:           mingw64-%{_basename}
Version:        3.10.0
Release:        0
#!BuildIgnore: post-build-checks
Summary:        Linear Algebra Package
License:        BSD-3-Clause
Group:          Development/Libraries/Parallel
Url:            http://www.netlib.org/lapack/
Source0:        http://www.netlib.org/lapack/lapack-%{version}.tgz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-fortran
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
%_mingw64_package_header_debug
BuildArch:      noarch

%description
LAPACK provides routines for solving systems of simultaneous linear
equations, least-squares solutions of linear systems of equations,
eigenvalue problems, and singular value problems. The associated matrix
factorizations (LU, Cholesky, QR, SVD, Schur, generalized Schur) are
also provided, as are related computations such as reordering of the
Schur factorizations and estimating condition numbers. Dense and banded
matrices are handled, but not general sparse matrices. In all areas,
similar functionality is provided for real and complex matrices, in
both single and double precision.

%package     -n mingw64-liblapack3
Summary:        LAPACK Shared Library
Group:          Development/Libraries/Parallel

%description -n mingw64-liblapack3
LAPACK provides routines for solving systems of simultaneous linear
equations, least-squares solutions of linear systems of equations,
eigenvalue problems, and singular value problems. The associated matrix
factorizations (LU, Cholesky, QR, SVD, Schur, generalized Schur) are
also provided, as are related computations such as reordering of the
Schur factorizations and estimating condition numbers. Dense and banded
matrices are handled, but not general sparse matrices. In all areas,
similar functionality is provided for real and complex matrices, in
both single and double precision.

%package     -n mingw64-libblas3
Summary:        BLAS Shared Library
Group:          Development/Libraries/Parallel

%description -n mingw64-libblas3
BLAS (Basic Linear Algebra Subprograms) is a standard library for
numerical algebra.  BLAS provides a number of basic algorithms for
linear algebra.

%package        devel
Summary:        Linear Algebra Package
Group:          Development/Libraries/Parallel
Requires:       mingw64-blas-devel = %{version}
Requires:       mingw64-liblapack3 = %{version}
Provides:       mingw64-lapack = %{version}

%description    devel
LAPACK provides routines for solving systems of simultaneous linear
equations, least-squares solutions of linear systems of equations,
eigenvalue problems, and singular value problems. The associated matrix
factorizations (LU, Cholesky, QR, SVD, Schur, generalized Schur) are
also provided, as are related computations such as reordering of the
Schur factorizations and estimating condition numbers. Dense and banded
matrices are handled, but not general sparse matrices. In all areas,
similar functionality is provided for real and complex matrices, in
both single and double precision.

%package     -n mingw64-blas-devel
Summary:        Basic Linear Algebra Subprograms
Group:          Development/Libraries/Parallel
Requires:       mingw64-libblas3 = %{version}
Provides:       mingw64-blas = %{version}

%description -n mingw64-blas-devel
BLAS (Basic Linear Algebra Subprograms) is a standard library for
numerical algebra. BLAS provides a number of basic algorithms for
linear algebra. BLAS is fast and well-tested, was written in FORTRAN 77
and built with gfortran.

%_mingw64_debug_package

%prep
%setup -q -n %{_basename}-%{version}

%build
%_mingw64_cmake -DCMAKE_Fortran_COMPILER=%{_mingw64_host}-gfortran
%_mingw64_cmake_build

%install
%_mingw64_cmake_install

rm -rf %{buildroot}%{_mingw64_libdir}/cmake/
rm -rf %{buildroot}%{_mingw64_libdir}/pkgconfig/

%files -n mingw64-liblapack3
%defattr(-,root,root,-)
%{_mingw64_bindir}/liblapack.dll
%doc LICENSE

%files -n mingw64-libblas3
%defattr(-,root,root,-)
%{_mingw64_bindir}/libblas.dll
%doc LICENSE

%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/liblapack.dll.a

%files -n mingw64-blas-devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/libblas.dll.a

%changelog
openSUSE Build Service is sponsored by