diff --git a/qrupdate-1.1.2.tar.gz b/qrupdate-1.1.2.tar.gz new file mode 100644 index 0000000..4b578cd Binary files /dev/null and b/qrupdate-1.1.2.tar.gz differ diff --git a/qrupdate.spec b/qrupdate.spec new file mode 100644 index 0000000..078db7d --- /dev/null +++ b/qrupdate.spec @@ -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 - 1.1.2-1 +- First release.