[packages/lapack] fix build without static libs
atler
atler at pld-linux.org
Wed May 6 12:55:25 CEST 2020
commit 208f9952ccd93b5729ef26d4c42ba56434d097e7
Author: Jan Palus <atler at pld-linux.org>
Date: Wed May 6 12:55:00 2020 +0200
fix build without static libs
lapack.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/lapack.spec b/lapack.spec
index f56a169..06c3156 100644
--- a/lapack.spec
+++ b/lapack.spec
@@ -347,9 +347,11 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/lapack.pc
%{_libdir}/cmake/lapack-%{version}
+%if %{with static_liba}
%files static
%defattr(644,root,root,755)
%{_libdir}/liblapack.a
+%endif
%files -n blas
%defattr(644,root,root,755)
@@ -361,9 +363,11 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libblas.so
%{_pkgconfigdir}/blas.pc
+%if %{with static_liba}
%files -n blas-static
%defattr(644,root,root,755)
%{_libdir}/libblas.a
+%endif
%files -n cblas
%defattr(644,root,root,755)
@@ -377,9 +381,11 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/cblas.pc
%{_libdir}/cmake/cblas-%{version}
+%if %{with static_liba}
%files -n cblas-static
%defattr(644,root,root,755)
%{_libdir}/libcblas.a
+%endif
%files -n lapacke -f lapackemans.list
%defattr(644,root,root,755)
@@ -395,7 +401,9 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/lapacke.pc
%{_libdir}/cmake/lapacke-%{version}
+%if %{with static_liba}
%files -n lapacke-static
%defattr(644,root,root,755)
%{_libdir}/liblapacke.a
%{_libdir}/libtmglib.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lapack.git/commitdiff/208f9952ccd93b5729ef26d4c42ba56434d097e7
More information about the pld-cvs-commit
mailing list