qrupdate-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. %define pkg_name qrupdate
  2. %define pkg_version 1.1.2
  3. %define pkg_release 3%{?_dist_release}
  4. %ifarch %{ix86}
  5. %define LIB_DIR lib
  6. %endif
  7. %ifarch x86_64
  8. %define LIB_DIR lib64
  9. %endif
  10. Summary: A Fortran library for fast updates of QR and Cholesky decompositions
  11. Name: %{pkg_name}
  12. Version: %{pkg_version}
  13. Release: %{pkg_release}
  14. License: GPLv2
  15. Group: System Environment/Libraries
  16. URL: https://sourceforge.net/projects/qrupdate/
  17. Source0: qrupdate-%{version}.tar.gz
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: gcc-gfortran
  20. BuildRequires: blas-devel lapack-devel
  21. Requires: blas lapack
  22. %if %{?_dist_release} == "vl7"
  23. %ifarch %{ix86}
  24. Provides: libqrupdate.so.1
  25. %endif
  26. %ifarch x86_64
  27. Provides: libqrupdate.so.1()(64bit)
  28. %endif
  29. %endif
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. Packager: ara_t
  33. %description
  34. qrupdate is a Fortran library for fast updates of QR and Cholesky
  35. decompositions.
  36. %prep
  37. %{__rm} -rf ${RPM_BUILD_ROOT}
  38. %setup -q
  39. %build
  40. %{__make} solib %{?_smp_mflags}
  41. %install
  42. %{__make} install-shlib \
  43. PREFIX=%{_prefix} LIBDIR=%{LIB_DIR} DESTDIR=${RPM_BUILD_ROOT}
  44. %clean
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %post -p %{_syssbindir}/ldconfig
  47. %postun -p %{_syssbindir}/ldconfig
  48. %files
  49. %defattr(-,root,root)
  50. %doc ChangeLog COPYING README
  51. %{_libdir}/libqrupdate.so*
  52. %changelog
  53. * Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 1.1.2-3
  54. - correct SPEC file
  55. * Tue Mar 22 2016 Toshiaki Ara <ara_t@384.jp> 1.1.2-2
  56. - fix %{_syssbindir}/ldconfig
  57. - add Provides: libqrupdate.so.1()
  58. * Sat Mar 19 2016 Toshiaki Ara <ara_t@384.jp> 1.1.2-1
  59. - new package