Accepting request 515927 from home:Dmitry_R:branches:science
OBS-URL: https://build.opensuse.org/request/show/515927 OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=53
This commit is contained in:
parent
e2a59c91a4
commit
2dc7521b9a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 9 19:45:54 UTC 2017 - dmitry_r@opensuse.org
|
||||||
|
|
||||||
|
- Remove migration %post scripts for old library names
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Jul 29 16:08:38 UTC 2017 - badshah400@gmail.com
|
Sat Jul 29 16:08:38 UTC 2017 - badshah400@gmail.com
|
||||||
|
|
||||||
|
@ -65,25 +65,14 @@ Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
Obsoletes: lib%{name}0 < %{version}
|
Obsoletes: lib%{name}0
|
||||||
Provides: lib%{name}0 = %{version}
|
Obsoletes: lib%{name}o0
|
||||||
|
|
||||||
%description -n lib%{name}_openmp0
|
%description -n lib%{name}_openmp0
|
||||||
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
||||||
|
|
||||||
This package contains the library compiled with OpenMP support.
|
This package contains the library compiled with OpenMP support.
|
||||||
|
|
||||||
# libopenblaso0 can be deleted after openSUSE 13.2 EOL
|
|
||||||
%package -n lib%{name}o0
|
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2, OpenMP version
|
|
||||||
Group: System/Libraries
|
|
||||||
Requires: lib%{name}_openmp0 = %{version}
|
|
||||||
|
|
||||||
%description -n lib%{name}o0
|
|
||||||
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
|
||||||
|
|
||||||
This package contains files for backward compatibility.
|
|
||||||
|
|
||||||
%package -n lib%{name}_openmp-devel
|
%package -n lib%{name}_openmp-devel
|
||||||
Summary: Development libraries for OpenBLAS, OpenMP version
|
Summary: Development libraries for OpenBLAS, OpenMP version
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
@ -100,25 +89,14 @@ Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
Obsoletes: lib%{name}0 < %{version}
|
Obsoletes: lib%{name}0
|
||||||
Provides: lib%{name}0 = %{version}
|
Obsoletes: lib%{name}p0
|
||||||
|
|
||||||
%description -n lib%{name}_pthreads0
|
%description -n lib%{name}_pthreads0
|
||||||
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
||||||
|
|
||||||
This package contains the library compiled with threading support.
|
This package contains the library compiled with threading support.
|
||||||
|
|
||||||
# libopenblasp0 can be deleted after openSUSE 13.2 EOL
|
|
||||||
%package -n lib%{name}p0
|
|
||||||
Summary: An optimized BLAS library based on GotoBLAS2, pthreads version
|
|
||||||
Group: System/Libraries
|
|
||||||
Requires: lib%{name}_pthreads0 = %{version}
|
|
||||||
|
|
||||||
%description -n lib%{name}p0
|
|
||||||
OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
|
|
||||||
|
|
||||||
This package contains files for backward compatibility.
|
|
||||||
|
|
||||||
%package -n lib%{name}_pthreads-devel
|
%package -n lib%{name}_pthreads-devel
|
||||||
Summary: Development headers and libraries for OpenBLAS, pthreads version
|
Summary: Development headers and libraries for OpenBLAS, pthreads version
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
@ -247,12 +225,8 @@ ln -sf lib%{name}.so.0 lib%{name}.so
|
|||||||
ln -sf lib%{name}_serial.so.0 lib%{name}_serial.so
|
ln -sf lib%{name}_serial.so.0 lib%{name}_serial.so
|
||||||
# OpenMP libraries
|
# OpenMP libraries
|
||||||
ln -sf lib%{name}_openmp.so.0 lib%{name}_openmp.so
|
ln -sf lib%{name}_openmp.so.0 lib%{name}_openmp.so
|
||||||
ln -sf lib%{name}_openmp.so.0 lib%{name}o.so.0
|
|
||||||
ln -sf lib%{name}o.so.0 lib%{name}o.so
|
|
||||||
# Threaded libraries
|
# Threaded libraries
|
||||||
ln -sf lib%{name}_pthreads.so.0 lib%{name}_pthreads.so
|
ln -sf lib%{name}_pthreads.so.0 lib%{name}_pthreads.so
|
||||||
ln -sf lib%{name}_pthreads.so.0 lib%{name}p.so.0
|
|
||||||
ln -sf lib%{name}p.so.0 lib%{name}p.so
|
|
||||||
|
|
||||||
# Fix cmake config file
|
# Fix cmake config file
|
||||||
sed -i 's|%{buildroot}||g' %{buildroot}%{_libdir}/cmake/%{name}/*.cmake
|
sed -i 's|%{buildroot}||g' %{buildroot}%{_libdir}/cmake/%{name}/*.cmake
|
||||||
@ -292,13 +266,6 @@ if [ "$1" = 0 ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n lib%{name}_openmp0
|
%post -n lib%{name}_openmp0
|
||||||
# Migration script can be deleted after openSUSE 13.2 EOL
|
|
||||||
# Check config
|
|
||||||
config_blas_mode=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Status:' | sed -e 's/Status: //g')
|
|
||||||
config_blas_value=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Value:' | grep -o 'openblas.')
|
|
||||||
config_lapack_mode=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Status:' | sed -e 's/Status: //g')
|
|
||||||
config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Value:' | grep -o 'openblas.')
|
|
||||||
# Install
|
|
||||||
%{_sbindir}/update-alternatives --install \
|
%{_sbindir}/update-alternatives --install \
|
||||||
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/lib%{name}_openmp.so.0 20
|
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/lib%{name}_openmp.so.0 20
|
||||||
%{_sbindir}/update-alternatives --install \
|
%{_sbindir}/update-alternatives --install \
|
||||||
@ -311,16 +278,6 @@ config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | g
|
|||||||
%else
|
%else
|
||||||
%{_libdir}/lib%{name}.so.0 lib%{name}.so.0 %{_libdir}/lib%{name}_openmp.so.0 50
|
%{_libdir}/lib%{name}.so.0 lib%{name}.so.0 %{_libdir}/lib%{name}_openmp.so.0 50
|
||||||
%endif
|
%endif
|
||||||
# Reconfigure
|
|
||||||
if [ ${config_blas_mode} = "manual" ] && [ ${config_blas_value} = "openblaso" ]; then
|
|
||||||
%{_sbindir}/update-alternatives --set libblas.so.3 %{_libdir}/lib%{name}_openmp.so.0
|
|
||||||
fi
|
|
||||||
if [ ${config_lapack_mode} = "manual" ] && [ ${config_lapack_value} == "openblaso" ]; then
|
|
||||||
%{_sbindir}/update-alternatives --set liblapack.so.3 %{_libdir}/lib%{name}_openmp.so.0
|
|
||||||
fi
|
|
||||||
# Remove old variants
|
|
||||||
%{_sbindir}/update-alternatives --remove libblas.so.3 %{_libdir}/lib%{name}o.so.0
|
|
||||||
%{_sbindir}/update-alternatives --remove liblapack.so.3 %{_libdir}/lib%{name}o.so.0
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun -n lib%{name}_openmp0
|
%preun -n lib%{name}_openmp0
|
||||||
@ -341,13 +298,6 @@ if [ "$1" = 0 ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n lib%{name}_pthreads0
|
%post -n lib%{name}_pthreads0
|
||||||
# Migration script can be deleted after openSUSE 13.2 EOL
|
|
||||||
# Check config
|
|
||||||
config_blas_mode=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Status:' | sed -e 's/Status: //g')
|
|
||||||
config_blas_value=$(%{_sbindir}/update-alternatives --query libblas.so.3 | grep 'Value:' | grep -o 'openblas.')
|
|
||||||
config_lapack_mode=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Status:' | sed -e 's/Status: //g')
|
|
||||||
config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | grep 'Value:' | grep -o 'openblas.')
|
|
||||||
# Install
|
|
||||||
%{_sbindir}/update-alternatives --install \
|
%{_sbindir}/update-alternatives --install \
|
||||||
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/lib%{name}_pthreads.so.0 20
|
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/lib%{name}_pthreads.so.0 20
|
||||||
%{_sbindir}/update-alternatives --install \
|
%{_sbindir}/update-alternatives --install \
|
||||||
@ -360,16 +310,6 @@ config_lapack_value=$(%{_sbindir}/update-alternatives --query liblapack.so.3 | g
|
|||||||
%else
|
%else
|
||||||
%{_libdir}/lib%{name}.so.0 lib%{name}.so.0 %{_libdir}/lib%{name}_pthreads.so.0 20
|
%{_libdir}/lib%{name}.so.0 lib%{name}.so.0 %{_libdir}/lib%{name}_pthreads.so.0 20
|
||||||
%endif
|
%endif
|
||||||
# Reconfigure
|
|
||||||
if [ ${config_blas_mode} = "manual" ] && [ ${config_blas_value} = "openblasp" ]; then
|
|
||||||
%{_sbindir}/update-alternatives --set libblas.so.3 %{_libdir}/lib%{name}_pthreads.so.0
|
|
||||||
fi
|
|
||||||
if [ ${config_lapack_mode} = "manual" ] && [ ${config_lapack_value} == "openblasp" ]; then
|
|
||||||
%{_sbindir}/update-alternatives --set liblapack.so.3 %{_libdir}/lib%{name}_pthreads.so.0
|
|
||||||
fi
|
|
||||||
# Remove old variants
|
|
||||||
%{_sbindir}/update-alternatives --remove libblas.so.3 %{_libdir}/lib%{name}p.so.0
|
|
||||||
%{_sbindir}/update-alternatives --remove liblapack.so.3 %{_libdir}/lib%{name}p.so.0
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun -n lib%{name}_pthreads0
|
%preun -n lib%{name}_pthreads0
|
||||||
@ -417,14 +357,9 @@ fi
|
|||||||
%ghost %{_sysconfdir}/alternatives/libcblas.so.3
|
%ghost %{_sysconfdir}/alternatives/libcblas.so.3
|
||||||
%ghost %{_sysconfdir}/alternatives/liblapack.so.3
|
%ghost %{_sysconfdir}/alternatives/liblapack.so.3
|
||||||
|
|
||||||
%files -n lib%{name}o0
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/lib%{name}o.so.0
|
|
||||||
|
|
||||||
%files -n lib%{name}_openmp-devel
|
%files -n lib%{name}_openmp-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/lib%{name}_openmp.so
|
%{_libdir}/lib%{name}_openmp.so
|
||||||
%{_libdir}/lib%{name}o.so
|
|
||||||
|
|
||||||
%files -n lib%{name}_pthreads0
|
%files -n lib%{name}_pthreads0
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -438,14 +373,9 @@ fi
|
|||||||
%ghost %{_sysconfdir}/alternatives/libcblas.so.3
|
%ghost %{_sysconfdir}/alternatives/libcblas.so.3
|
||||||
%ghost %{_sysconfdir}/alternatives/liblapack.so.3
|
%ghost %{_sysconfdir}/alternatives/liblapack.so.3
|
||||||
|
|
||||||
%files -n lib%{name}p0
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_libdir}/lib%{name}p.so.0
|
|
||||||
|
|
||||||
%files -n lib%{name}_pthreads-devel
|
%files -n lib%{name}_pthreads-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/lib%{name}_pthreads.so
|
%{_libdir}/lib%{name}_pthreads.so
|
||||||
%{_libdir}/lib%{name}p.so
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user