Accepting request 241167 from devel:libraries:c_c++
- Add baselibs.conf to sources - Include update-alternatives dependency in subpackages that use it to guarantee it will be available. OBS-URL: https://build.opensuse.org/request/show/241167 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lapack?expand=0&rev=38
This commit is contained in:
parent
8545029829
commit
ecdab87c15
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 16 08:39:20 UTC 2014 - idonmez@suse.com
|
||||
|
||||
- Add baselibs.conf to sources
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 14 16:38:58 UTC 2014 - toddrme2178@gmail.com
|
||||
|
||||
- Include update-alternatives dependency in subpackages that use it
|
||||
to guarantee it will be available.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 18 08:15:19 UTC 2014 - dmitry_r@opensuse.org
|
||||
|
||||
|
49
lapack.spec
49
lapack.spec
@ -24,12 +24,13 @@ License: BSD-3-Clause
|
||||
Group: Development/Libraries/Parallel
|
||||
Url: http://www.netlib.org/lapack/
|
||||
Source0: http://www.netlib.org/lapack/%{name}-%{version}.tgz
|
||||
Source99: baselibs.conf
|
||||
Patch1: lapack-3.2.2.patch
|
||||
BuildRequires: doxygen >= 1.7
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRequires: python
|
||||
BuildRequires: update-alternatives
|
||||
PreReq: update-alternatives
|
||||
Requires(pre): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -46,6 +47,9 @@ both single and double precision.
|
||||
%package -n liblapack3
|
||||
Summary: LAPACK Shared Library
|
||||
Group: Development/Libraries/Parallel
|
||||
%if 0%{?suse_version} >= 1120
|
||||
Requires(pre): update-alternatives
|
||||
%endif
|
||||
|
||||
%description -n liblapack3
|
||||
LAPACK provides routines for solving systems of simultaneous linear
|
||||
@ -61,6 +65,9 @@ both single and double precision.
|
||||
%package -n libblas3
|
||||
Summary: BLAS Shared Library
|
||||
Group: Development/Libraries/Parallel
|
||||
%if 0%{?suse_version} >= 1120
|
||||
Requires(pre): update-alternatives
|
||||
%endif
|
||||
|
||||
%description -n libblas3
|
||||
BLAS (Basic Linear Algebra Subprograms) is a standard library for
|
||||
@ -155,38 +162,37 @@ BuildArch: noarch
|
||||
The blas-man package contains documentation for BLAS (Basic Linear
|
||||
Algebra subprograms) routines, in the form of man pages.
|
||||
|
||||
|
||||
%package -n liblapacke3
|
||||
Summary: LAPACKE development files
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n liblapacke3
|
||||
This library provides a native C interface to LAPACK routines available
|
||||
at www.netlib.org/lapack to facilitate usage of LAPACK functionality
|
||||
at www.netlib.org/lapack to facilitate usage of LAPACK functionality
|
||||
for C programmers.
|
||||
|
||||
This implementation introduces:
|
||||
- row-major and column-major matrix layout controlled by the first function
|
||||
- row-major and column-major matrix layout controlled by the first function
|
||||
parameter;
|
||||
- an implementation with working arrays (middle-level interface) as well as
|
||||
- an implementation with working arrays (middle-level interface) as well as
|
||||
without working arrays (high-level interface);
|
||||
- input scalars passed by value;
|
||||
- error code as a return value instead of the INFO parameter.
|
||||
|
||||
%package -n lapacke-devel
|
||||
Summary: LAPACKE development files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: liblapacke3 = %{version}
|
||||
Provides: lapacke = %{version}
|
||||
Provides: lapacke-devel-static = %{version}
|
||||
Summary: LAPACKE development files
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description -n lapacke-devel
|
||||
LAPACKE headers and development files.
|
||||
|
||||
%package -n lapacke-devel-static
|
||||
Requires: lapacke-devel = %{version}
|
||||
Summary: LAPACKE development files - static libraries
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: lapacke-devel = %{version}
|
||||
|
||||
%description -n lapacke-devel-static
|
||||
LAPACKE development files - static libraries.
|
||||
@ -202,7 +208,7 @@ case "$RPM_ARCH" in
|
||||
esac
|
||||
export PRECFLAGS
|
||||
cp make.inc.example make.inc
|
||||
make cleanlib
|
||||
make cleanlib %{?_smp_mflags}
|
||||
make %{?_smp_mflags} blaslib \
|
||||
OPTS="%{optflags} -fPIC" \
|
||||
NOOPT="%{optflags} -O0 -fPIC"
|
||||
@ -212,7 +218,7 @@ mkdir tmp
|
||||
gfortran -shared -Wl,-soname=libblas.so.3 -o libblas.so.%{version} tmp/*.o
|
||||
ln -s libblas.so.%{version} libblas.so
|
||||
rm -rf tmp
|
||||
make cleanlib
|
||||
make cleanlib %{?_smp_mflags}
|
||||
make %{?_smp_mflags} blaslib \
|
||||
OPTS="%{optflags}" \
|
||||
NOOPT="%{optflags} -O0"
|
||||
@ -228,7 +234,7 @@ else
|
||||
true # No failures
|
||||
fi
|
||||
mv librefblas.a libblas.a
|
||||
make cleanlib
|
||||
make cleanlib %{?_smp_mflags}
|
||||
make %{?_smp_mflags} lapacklib \
|
||||
OPTS="%{optflags} -fPIC" \
|
||||
NOOPT="%{optflags} -O0 -fPIC"
|
||||
@ -238,7 +244,7 @@ mkdir tmp
|
||||
gfortran -shared -Wl,-soname=liblapack.so.3 -o liblapack.so.%{version} tmp/*.o -L. -lblas
|
||||
ln -s liblapack.so.%{version} liblapack.so
|
||||
rm -rf tmp
|
||||
make cleanlib
|
||||
make cleanlib %{?_smp_mflags}
|
||||
make %{?_smp_mflags} lapacklib \
|
||||
OPTS="%{optflags}" \
|
||||
NOOPT="%{optflags} -O0"
|
||||
@ -250,10 +256,10 @@ make %{?_smp_mflags} lapacke \
|
||||
mv ../liblapacke.a liblapacke_pic.a
|
||||
mkdir tmp
|
||||
( cd tmp; ar x ../liblapacke_pic.a )
|
||||
gfortran -shared -Wl,-soname=liblapacke.so.3 -o liblapacke.so.%version tmp/*.o
|
||||
gfortran -shared -Wl,-soname=liblapacke.so.3 -o liblapacke.so.%{version} tmp/*.o
|
||||
ln -s liblapacke.so.%{version} liblapacke.so
|
||||
rm -rf tmp
|
||||
make cleanlib
|
||||
make cleanlib %{?_smp_mflags}
|
||||
make %{?_smp_mflags} lapacke \
|
||||
CFLAGS="%{optflags} -DADD_ -DHAVE_LAPACK_CONFIG_H -DLAPACK_COMPLEX_STRUCTURE"
|
||||
mv ../liblapacke.a liblapacke.a
|
||||
@ -272,7 +278,7 @@ else
|
||||
true # No failures
|
||||
fi
|
||||
# Create man pages - and do some cleanup
|
||||
make man
|
||||
make man %{?_smp_mflags}
|
||||
rm -f DOCS/man/man3/*tst*
|
||||
rm -f DOCS/man/man3/TST*
|
||||
rm -f DOCS/man/man3/MYSUB.3
|
||||
@ -388,13 +394,13 @@ ln -s DLADIV.3.gz %{buildroot}/%{_mandir}/man3/DLADIV1.3.gz
|
||||
ln -s DLADIV.3.gz %{buildroot}/%{_mandir}/man3/DLADIV2.3.gz
|
||||
|
||||
%post -n libblas3
|
||||
%_sbindir/update-alternatives --install \
|
||||
%{_sbindir}/update-alternatives --install \
|
||||
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/blas/libblas.so.3 50
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun -n libblas3
|
||||
if [ "$1" = 0 ] ; then
|
||||
%_sbindir/update-alternatives --remove libblas.so.3 %{_libdir}/blas/libblas.so.3
|
||||
%{_sbindir}/update-alternatives --remove libblas.so.3 %{_libdir}/blas/libblas.so.3
|
||||
fi
|
||||
|
||||
%postun -n libblas3 -p /sbin/ldconfig
|
||||
@ -402,18 +408,18 @@ fi
|
||||
%posttrans -n libblas3
|
||||
if [ "$1" = 0 ] ; then
|
||||
if ! [ -f %{_libdir}/libblas.so.3 ] ; then
|
||||
"%_sbindir/update-alternatives" --auto libblas.so.3
|
||||
"%{_sbindir}/update-alternatives" --auto libblas.so.3
|
||||
fi
|
||||
fi
|
||||
|
||||
%post -n liblapack3
|
||||
%_sbindir/update-alternatives --install \
|
||||
%{_sbindir}/update-alternatives --install \
|
||||
%{_libdir}/liblapack.so.3 liblapack.so.3 %{_libdir}/lapack/liblapack.so.3 50
|
||||
/sbin/ldconfig
|
||||
|
||||
%preun -n liblapack3
|
||||
if [ "$1" = 0 ] ; then
|
||||
%_sbindir/update-alternatives --remove liblapack.so.3 %{_libdir}/lapack/liblapack.so.3
|
||||
%{_sbindir}/update-alternatives --remove liblapack.so.3 %{_libdir}/lapack/liblapack.so.3
|
||||
fi
|
||||
|
||||
%postun -n liblapack3 -p /sbin/ldconfig
|
||||
@ -421,11 +427,12 @@ fi
|
||||
%posttrans -n liblapack3
|
||||
if [ "$1" = 0 ] ; then
|
||||
if ! [ -f %{_libdir}/liblapack.so.3 ] ; then
|
||||
"%_sbindir/update-alternatives" --auto liblapack.so.3
|
||||
"%{_sbindir}/update-alternatives" --auto liblapack.so.3
|
||||
fi
|
||||
fi
|
||||
|
||||
%post -n liblapacke3 -p /sbin/ldconfig
|
||||
|
||||
%postun -n liblapacke3 -p /sbin/ldconfig
|
||||
|
||||
%files -n liblapack3
|
||||
|
Loading…
x
Reference in New Issue
Block a user