qrupdate/qrupdate.spec
2020-05-05 20:43:32 +08:00

55 lines
1.3 KiB
RPMSpec

Name: qrupdate
Version: 1.1.2
Release: 1
Summary: A Fortran library for fast updates of QR and Cholesky decompositions
License: GPLv3+
URL: http://qrupdate.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc-gfortran
BuildRequires: openblas-devel
%description
qrupdate is a Fortran library for fast updates of QR and Cholesky
decompositions.
%package devel
Summary: Development libraries for %{name}
Requires: %{name} = %{version}-%{release}
Requires: openblas-devel%{?_isa}
%description devel
This package contains the development libraries for %{name}.
%prep
%setup -q
# Modify install location
sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile
%build
%make_build solib FC=gfortran FFLAGS="%{optflags} -fimplicit-none -funroll-loops" BLAS="-lopenblas" LAPACK=
%install
make install-shlib LIBDIR=%{_libdir} PREFIX="%{buildroot}"
# Verify attributes
chmod 755 %{buildroot}%{_libdir}/libqrupdate.*
%check
make test FC=gfortran FFLAGS="%{optflags} -fimplicit-none -funroll-loops" BLAS="-lopenblas" LAPACK=
%ldconfig_scriptlets
%files
%license COPYING
%doc README ChangeLog
%{_libdir}/libqrupdate.so.*
%files devel
%{_libdir}/libqrupdate.so
%changelog
* Tue May 05 2020 Hubble Zhu <zhuhengbo1@huawei.com> - 1.1.2-1
- First release.