Include pkgconf file

Signed-off-by: SuperSix173 <liuchao173@huawei.com>
This commit is contained in:
SuperSix173 2024-02-21 09:13:52 +00:00 committed by Gitee
parent c674661db4
commit 53b43b07f5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Name: openblas Name: openblas
Version: 0.3.25 Version: 0.3.25
Release: 2 Release: 3
Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version Summary: An optimized BLAS library based on GotoBLAS2 1.13 BSD version
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/xianyi/OpenBLAS/ URL: https://github.com/xianyi/OpenBLAS/
@ -345,8 +345,9 @@ ln -sf ${pname64_}.so lib%{name}p64_.so.0
# Get rid of generated CMake config # Get rid of generated CMake config
rm -rf %{buildroot}%{_libdir}/cmake rm -rf %{buildroot}%{_libdir}/cmake
# Get rid of generated pkgconfig # Variables overrided above lead to include buildroot path,
rm -rf %{buildroot}%{_libdir}/pkgconfig # which we need to get rid of in the resulting pkgconf file
sed -i -e 's|%{buildroot}||' "%{buildroot}%{_libdir}/pkgconfig/%{name}.pc"
%post %post
/sbin/ldconfig /sbin/ldconfig
@ -361,6 +362,7 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
%{_libdir}/lib%{name}*.so.* %{_libdir}/lib%{name}*.so.*
%{_libdir}/R/lib/libRblas.so %{_libdir}/R/lib/libRblas.so
%{_libdir}/lib%{name}*.a %{_libdir}/lib%{name}*.a
%{_libdir}/pkgconfig/%{name}.pc
%files devel %files devel
%{_includedir}/%{name}/ %{_includedir}/%{name}/
@ -371,6 +373,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig
%{_libdir}/lib%{name}*64_.so %{_libdir}/lib%{name}*64_.so
%changelog %changelog
* Wed Feb 21 2024 Liu Chao <liuchao173@huawei.com> - 0.3.25-3
- Include pkgconf file
* Tue Jan 16 2024 jiahua.yu <jiahua.yu@shingroup.cn> - 0.3.25-2 * Tue Jan 16 2024 jiahua.yu <jiahua.yu@shingroup.cn> - 0.3.25-2
- init support for arch ppc64le - init support for arch ppc64le