libqrupdate/libqrupdate.spec

90 lines
2.4 KiB
RPMSpec

Name: libqrupdate
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: Silvan Calarco <silvan.calarco@mambasoft.it>
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
%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-ng-%{version}
#sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile
%build
%cmake -d build
%make
#% make FFLAGS="%{optflags} -fimplicit-none -funroll-loops" solib
#% make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
#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 LICENSE
%files devel
%defattr(-,root,root)
%{_libdir}/libqrupdate.so
%dir %{_libdir}/cmake/qrupdate
%{_libdir}/cmake/qrupdate/qrupdate*.cmake
%{_libdir}/pkgconfig/qrupdate.pc
%doc README.md
%changelog
* Thu May 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-1mamba
- update to 1.1.5
* Fri Sep 19 2014 Davide Madrisan <davide.madrisan@gmail.com> 1.1.2-2mamba
- use the openmamaba build options (%%optflags)
- run 'make test'
* Thu Sep 18 2014 Davide Madrisan <davide.madrisan@gmail.com> 1.1.2-1mamba
- package created using the webbuild interface