Package init

This commit is contained in:
Hubble Zhu 2020-05-05 20:43:32 +08:00
parent 4bde045e5b
commit 27932efa8c
2 changed files with 54 additions and 0 deletions

BIN
qrupdate-1.1.2.tar.gz Normal file

Binary file not shown.

54
qrupdate.spec Normal file
View File

@ -0,0 +1,54 @@
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.