diff --git a/flexiblas.spec b/flexiblas.spec index ec03c1c..27067a4 100644 --- a/flexiblas.spec +++ b/flexiblas.spec @@ -15,7 +15,7 @@ Name: flexiblas Version: %{major_version}.%{minor_version}.%{patch_version} -Release: 2%{?dist} +Release: 3%{?dist} Summary: A BLAS/LAPACK wrapper library with runtime exchangeable backends # GPLv3 except contributed/ and test/, which are BSD @@ -53,6 +53,14 @@ Requires: %{name}-%{default_backend}%{?_isa} = %{version}-%{release} %description netlib %_description This package contains the wrapper library with 32-bit integer support. +%package hook-profile +Summary: FlexiBLAS profile hook plugin +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-netlib%{?_isa} = %{version}-%{release} + +%description hook-profile %_description +This package contains a plugin that enables profiling support. + %package devel Summary: Development headers and libraries for FlexiBLAS Requires: %{name}%{?_isa} = %{version}-%{release} @@ -130,6 +138,14 @@ Requires: %{name}-%{default_backend}64%{?_isa} = %{version}-%{release} %description netlib64 %_description This package contains the wrapper library with 64-bit integer support. +%package hook-profile64 +Summary: FlexiBLAS profile hook plugin (64-bit) +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name}-netlib64%{?_isa} = %{version}-%{release} + +%description hook-profile64 %_description +This package contains a plugin that enables profiling support. + %ifnarch s390x %if %{with blis} %package blis-serial64 @@ -221,6 +237,9 @@ echo "default = %{default_backend}" > %{buildroot}%{_sysconfdir}/%{name}rc echo "default = %{default_backend}" > %{buildroot}%{_sysconfdir}/%{name}64rc %endif +# remove dummy hook +rm -f %{buildroot}%{_libdir}/%{name}*/lib%{name}_hook_dummy.so + # set Fedora-friendly names rename -- serial -serial %{buildroot}%{_libdir}/%{name}*/* || true rename -- openmp -openmp %{buildroot}%{_libdir}/%{name}*/* || true @@ -248,7 +267,6 @@ make -C build test %files %license COPYING COPYING.NETLIB %doc ISSUES.md README.md CHANGELOG -%{_mandir}/man3/%{name}_* %files netlib %config(noreplace) %{_sysconfdir}/%{name}rc @@ -264,10 +282,11 @@ make -C build test %dir %{_libdir}/%{name} %{_libdir}/%{name}/lib%{name}_fallback_lapack.so %{_libdir}/%{name}/lib%{name}_netlib.so -%{_libdir}/%{name}/lib%{name}_hook_dummy.so -%{_libdir}/%{name}/lib%{name}_hook_profile.so %{_mandir}/man1/%{name}.1* +%files hook-profile +%{_libdir}/%{name}/lib%{name}_hook_profile.so + %files devel %{_includedir}/%{name} %{_libdir}/lib%{name}.so @@ -283,6 +302,7 @@ make -C build test %{_libdir}/pkgconfig/%{name}64.pc %{_libdir}/pkgconfig/%{name}64_api.pc %endif +%{_mandir}/man3/%{name}_* %{_mandir}/man7/%{name}-api.7* %if %{with atlas} @@ -334,10 +354,11 @@ make -C build test %dir %{_libdir}/%{name}64 %{_libdir}/%{name}64/lib%{name}_fallback_lapack.so %{_libdir}/%{name}64/lib%{name}_netlib.so -%{_libdir}/%{name}64/lib%{name}_hook_dummy.so -%{_libdir}/%{name}64/lib%{name}_hook_profile.so %{_mandir}/man1/%{name}64.1* +%files hook-profile64 +%{_libdir}/%{name}64/lib%{name}_hook_profile.so + %ifnarch s390x %if %{with blis} %files blis-serial64 @@ -370,6 +391,11 @@ make -C build test %endif %changelog +* Wed Jul 01 2020 Iñaki Úcar - 3.0.0-3 +- Move man3 pages to devel subpackage +- Remove dummy hook (only useful for FlexiBLAS development) +- Move profile hook to a separate package (not needed for standard usage) + * Tue Jun 30 2020 Iñaki Úcar - 3.0.0-2 - Own provided directories - More robust file renaming