Accepting request 155656 from home:jengelh:branches:science
- Remove redundant cleaning commands - Do not create .so.0.2.5. SO versions are not package release numbers. OBS-URL: https://build.opensuse.org/request/show/155656 OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=17
This commit is contained in:
parent
5af87aed22
commit
51108ac69e
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 17 14:10:55 UTC 2013 - jengelh@inai.de
|
||||
|
||||
- Remove redundant cleaning commands
|
||||
- Do not create .so.0.2.5. SO versions are not package release
|
||||
numbers.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 21 20:19:13 UTC 2013 - scorot@free.fr
|
||||
|
||||
|
@ -21,7 +21,7 @@ Version: 0.2.5
|
||||
Release: 0
|
||||
Summary: An optimized BLAS library based on GotoBLAS2
|
||||
License: BSD-3-Clause
|
||||
Group: System/Libraries
|
||||
Group: Productivity/Scientific/Math
|
||||
Url: https://github.com/xianyi/OpenBLAS/
|
||||
Source0: http://github.com/xianyi/OpenBLAS/tarball/v0.2.5/xianyi-OpenBLAS-v%{version}-0-ge01b3d4.tar.gz
|
||||
# LAPACK
|
||||
@ -108,7 +108,7 @@ This package contains the static libraries.
|
||||
%setup -q -c -T
|
||||
|
||||
# Untar source
|
||||
tar zxf %{SOURCE0}
|
||||
tar -zxf %{SOURCE0}
|
||||
mv xianyi-OpenBLAS-*/ xianyi-OpenBLAS
|
||||
cd xianyi-OpenBLAS
|
||||
%patch0 -p1
|
||||
@ -137,7 +137,6 @@ make -C threaded DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 LIBNAMESUFFIX=p \
|
||||
FC=gfortran CC=gcc COMMON_OPT="%{optflags}" NUM_THREADS=32
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
# Install serial library and headers
|
||||
make -C serial USE_THREAD=0 PREFIX=%{buildroot}%{_prefix} install
|
||||
|
||||
@ -150,30 +149,27 @@ rm -rf %{buildroot}%{_prefix}/lib
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
|
||||
# Install the serial library
|
||||
install -D -p -m 755 serial/libopenblas.so %{buildroot}%{_libdir}/lib%{name}.so.%{version}
|
||||
install -D -p -m 755 serial/libopenblas.so %{buildroot}%{_libdir}/lib%{name}.so.0
|
||||
install -D -p -m 644 serial/libopenblas.a %{buildroot}%{_libdir}/lib%{name}.a
|
||||
|
||||
# Install the OpenMP library
|
||||
install -D -p -m 755 openmp/libopenblaso.so %{buildroot}%{_libdir}/lib%{name}o.so.%{version}
|
||||
install -D -p -m 755 openmp/libopenblaso.so %{buildroot}%{_libdir}/lib%{name}o.so.0
|
||||
install -D -p -m 644 openmp/libopenblaso.a %{buildroot}%{_libdir}/lib%{name}o.a
|
||||
|
||||
# Install the threaded library
|
||||
install -D -p -m 755 threaded/libopenblasp.so %{buildroot}%{_libdir}/lib%{name}p.so.%{version}
|
||||
install -D -p -m 755 threaded/libopenblasp.so %{buildroot}%{_libdir}/lib%{name}p.so.0
|
||||
install -D -p -m 644 threaded/libopenblasp.a %{buildroot}%{_libdir}/lib%{name}p.a
|
||||
|
||||
# Fix source permissions (also applies to LAPACK)
|
||||
find -name \*.f -exec chmod 644 {} \;
|
||||
find -name \*.f -exec chmod 644 {} +
|
||||
|
||||
# Fix symlinks
|
||||
pushd %{buildroot}%{_libdir}
|
||||
# Serial libraries
|
||||
ln -sf lib%{name}.so.%{version} lib%{name}.so.0
|
||||
ln -sf lib%{name}.so.0 lib%{name}.so
|
||||
# OpenMP libraries
|
||||
ln -sf lib%{name}o.so.%{version} lib%{name}o.so.0
|
||||
ln -sf lib%{name}o.so.0 lib%{name}o.so
|
||||
# Threaded libraries
|
||||
ln -sf lib%{name}p.so.%{version} lib%{name}p.so.0
|
||||
ln -sf lib%{name}p.so.0 lib%{name}p.so
|
||||
|
||||
# Get rid of executable stacks
|
||||
@ -226,9 +222,6 @@ fi
|
||||
|
||||
%postun -n libopenblasp0 -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -n libopenblas0
|
||||
%defattr(-,root,root,-)
|
||||
%doc serial/Changelog.txt serial/GotoBLAS* serial/LICENSE serial/README.md
|
||||
|
Loading…
x
Reference in New Issue
Block a user