diff --git a/libqrupdate.spec b/libqrupdate.spec index 9e957e2..8c80bcd 100644 --- a/libqrupdate.spec +++ b/libqrupdate.spec @@ -1,20 +1,28 @@ Name: libqrupdate -Version: 1.1.2 -Release: 2mamba +Version: 1.1.5 +Release: 1mamba 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 +Packager: Silvan Calarco +URL: https://gitlab.mpi-magdeburg.mpg.de/koehlerm/qrupdate-ng +Source: https://gitlab.mpi-magdeburg.mpg.de/koehlerm/qrupdate-ng.git/v%{version}/qrupdate-ng-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN +BuildRequires: gcc-fortran +BuildRequires: glibc-devel +BuildRequires: libblas-devel +BuildRequires: libgcc +BuildRequires: liblapack-devel +BuildRequires: libopenblas-devel +%ifnarch arm aarch64 +BuildRequires: libquadmath-devel +%endif ## 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. @@ -30,19 +38,25 @@ This package contains libraries and header files for developing applications tha %debug_package %prep -%setup -q -n qrupdate-%{version} -sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile +%setup -q -n qrupdate-ng-%{version} +#sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile %build -%make FFLAGS="%{optflags} -fimplicit-none -funroll-loops" solib -%make test +%cmake -d build + +%make + +#% make FFLAGS="%{optflags} -fimplicit-none -funroll-loops" solib +#% make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -make install-shlib LIBDIR=%{_libdir} PREFIX="%{buildroot}" +%makeinstall -C build -# fixup strange shared library permissions -chmod 755 %{buildroot}%{_libdir}/*.so* +#make install-shlib LIBDIR=%{_libdir} PREFIX="%{buildroot}" + +## fixup strange shared library permissions +#chmod 755 %{buildroot}%{_libdir}/*.so* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -53,14 +67,20 @@ chmod 755 %{buildroot}%{_libdir}/*.so* %files %defattr(-,root,root) %{_libdir}/libqrupdate.so.* -%doc COPYING +%doc LICENSE %files devel %defattr(-,root,root) %{_libdir}/libqrupdate.so -%doc ChangeLog README +%dir %{_libdir}/cmake/qrupdate +%{_libdir}/cmake/qrupdate/qrupdate*.cmake +%{_libdir}/pkgconfig/qrupdate.pc +%doc README.md %changelog +* Thu May 26 2022 Silvan Calarco 1.1.5-1mamba +- update to 1.1.5 + * Fri Sep 19 2014 Davide Madrisan 1.1.2-2mamba - use the openmamaba build options (%%optflags) - run 'make test'