diff --git a/README.md b/README.md index 0114c9d..fc50c71 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libqrupdate +qrupdate is a Fortran library for fast updates of QR and Cholesky decompositions. + diff --git a/libqrupdate.spec b/libqrupdate.spec new file mode 100644 index 0000000..9e957e2 --- /dev/null +++ b/libqrupdate.spec @@ -0,0 +1,69 @@ +Name: libqrupdate +Version: 1.1.2 +Release: 2mamba +Summary: A Fortran library for fast updates of QR and Cholesky decompositions +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: http://qrupdate.sourceforge.net/ +Source: http://downloads.sourceforge.net/qrupdate/qrupdate-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: gcc-fortran +BuildRequires: libblas-devel +BuildRequires: liblapack-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +qrupdate is a Fortran library for fast updates of QR and Cholesky decompositions. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n qrupdate-%{version} +sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile + +%build +%make FFLAGS="%{optflags} -fimplicit-none -funroll-loops" solib +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +make install-shlib LIBDIR=%{_libdir} PREFIX="%{buildroot}" + +# fixup strange shared library permissions +chmod 755 %{buildroot}%{_libdir}/*.so* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libqrupdate.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_libdir}/libqrupdate.so +%doc ChangeLog README + +%changelog +* Fri Sep 19 2014 Davide Madrisan 1.1.2-2mamba +- use the openmamaba build options (%%optflags) +- run 'make test' + +* Thu Sep 18 2014 Davide Madrisan 1.1.2-1mamba +- package created using the webbuild interface