#5 [Draft] Add pkgconfig files
Opened a year ago by hhorak. Modified a year ago
rpms/ hhorak/openblas add-pkgconfig  into  rawhide

file modified
+9 -3
@@ -15,7 +15,7 @@ 

  

  Name:           openblas

  Version:        0.3.21

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        An optimized BLAS library based on GotoBLAS2

  License:        BSD

  URL:            https://github.com/xianyi/OpenBLAS/
@@ -556,8 +556,9 @@ 

  

  # Get rid of generated CMake config

  rm -rf %{buildroot}%{_libdir}/cmake

- # Get rid of generated pkgconfig

- rm -rf %{buildroot}%{_libdir}/pkgconfig

+ # Variables overrided above lead to include buildroot path,

+ # which we need to get rid of in the resulting pkgconf file

+ sed -i -e 's|%{buildroot}||' "%{buildroot}%{_libdir}/pkgconfig/%{name}.pc"

  

  %ldconfig_scriptlets

  
@@ -631,6 +632,7 @@ 

  %{_libdir}/lib%{name}o64_.so

  %{_libdir}/lib%{name}p64_.so

  %endif

+ %{_libdir}/pkgconfig/%{name}.pc

  

  %files static

  %{_libdir}/lib%{name}.a
@@ -646,6 +648,10 @@ 

  %endif

  

  %changelog

+ * Fri Aug 26 2022 Honza Horak <hhorak@redhat.com> - 0.3.21-3

+ - Include pkgconf file

+   Resolves: #1574517

+ 

  * Wed Aug 24 2022 Honza Horak <hhorak@redhat.com> - 0.3.21-2

  - Fix SBGEMM test to work with INTERFACE64

    Resolves: #2120974

This is the simplest option how to address missing pkgconf for openblas. What would be a proper way needs to be discussed in https://bugzilla.redhat.com/show_bug.cgi?id=1574517#c11 though. Please, do not merge until the discussion reaches some conclusion.

Resolves: #1574517

Metadata