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
|
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
|
Group: Development/Libraries/Parallel
|
||||||
Url: http://www.netlib.org/lapack/
|
Url: http://www.netlib.org/lapack/
|
||||||
Source0: http://www.netlib.org/lapack/%{name}-%{version}.tgz
|
Source0: http://www.netlib.org/lapack/%{name}-%{version}.tgz
|
||||||
|
Source99: baselibs.conf
|
||||||
Patch1: lapack-3.2.2.patch
|
Patch1: lapack-3.2.2.patch
|
||||||
BuildRequires: doxygen >= 1.7
|
BuildRequires: doxygen >= 1.7
|
||||||
BuildRequires: gcc-fortran
|
BuildRequires: gcc-fortran
|
||||||
BuildRequires: python
|
BuildRequires: python
|
||||||
BuildRequires: update-alternatives
|
BuildRequires: update-alternatives
|
||||||
PreReq: update-alternatives
|
Requires(pre): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,6 +47,9 @@ both single and double precision.
|
|||||||
%package -n liblapack3
|
%package -n liblapack3
|
||||||
Summary: LAPACK Shared Library
|
Summary: LAPACK Shared Library
|
||||||
Group: Development/Libraries/Parallel
|
Group: Development/Libraries/Parallel
|
||||||
|
%if 0%{?suse_version} >= 1120
|
||||||
|
Requires(pre): update-alternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n liblapack3
|
%description -n liblapack3
|
||||||
LAPACK provides routines for solving systems of simultaneous linear
|
LAPACK provides routines for solving systems of simultaneous linear
|
||||||
@ -61,6 +65,9 @@ both single and double precision.
|
|||||||
%package -n libblas3
|
%package -n libblas3
|
||||||
Summary: BLAS Shared Library
|
Summary: BLAS Shared Library
|
||||||
Group: Development/Libraries/Parallel
|
Group: Development/Libraries/Parallel
|
||||||
|
%if 0%{?suse_version} >= 1120
|
||||||
|
Requires(pre): update-alternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n libblas3
|
%description -n libblas3
|
||||||
BLAS (Basic Linear Algebra Subprograms) is a standard library for
|
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
|
The blas-man package contains documentation for BLAS (Basic Linear
|
||||||
Algebra subprograms) routines, in the form of man pages.
|
Algebra subprograms) routines, in the form of man pages.
|
||||||
|
|
||||||
|
|
||||||
%package -n liblapacke3
|
%package -n liblapacke3
|
||||||
Summary: LAPACKE development files
|
Summary: LAPACKE development files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
|
||||||
%description -n liblapacke3
|
%description -n liblapacke3
|
||||||
This library provides a native C interface to LAPACK routines available
|
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.
|
for C programmers.
|
||||||
|
|
||||||
This implementation introduces:
|
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;
|
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);
|
without working arrays (high-level interface);
|
||||||
- input scalars passed by value;
|
- input scalars passed by value;
|
||||||
- error code as a return value instead of the INFO parameter.
|
- error code as a return value instead of the INFO parameter.
|
||||||
|
|
||||||
%package -n lapacke-devel
|
%package -n lapacke-devel
|
||||||
|
Summary: LAPACKE development files
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
Requires: liblapacke3 = %{version}
|
Requires: liblapacke3 = %{version}
|
||||||
Provides: lapacke = %{version}
|
Provides: lapacke = %{version}
|
||||||
Provides: lapacke-devel-static = %{version}
|
Provides: lapacke-devel-static = %{version}
|
||||||
Summary: LAPACKE development files
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
|
|
||||||
%description -n lapacke-devel
|
%description -n lapacke-devel
|
||||||
LAPACKE headers and development files.
|
LAPACKE headers and development files.
|
||||||
|
|
||||||
%package -n lapacke-devel-static
|
%package -n lapacke-devel-static
|
||||||
Requires: lapacke-devel = %{version}
|
|
||||||
Summary: LAPACKE development files - static libraries
|
Summary: LAPACKE development files - static libraries
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: lapacke-devel = %{version}
|
||||||
|
|
||||||
%description -n lapacke-devel-static
|
%description -n lapacke-devel-static
|
||||||
LAPACKE development files - static libraries.
|
LAPACKE development files - static libraries.
|
||||||
@ -202,7 +208,7 @@ case "$RPM_ARCH" in
|
|||||||
esac
|
esac
|
||||||
export PRECFLAGS
|
export PRECFLAGS
|
||||||
cp make.inc.example make.inc
|
cp make.inc.example make.inc
|
||||||
make cleanlib
|
make cleanlib %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} blaslib \
|
make %{?_smp_mflags} blaslib \
|
||||||
OPTS="%{optflags} -fPIC" \
|
OPTS="%{optflags} -fPIC" \
|
||||||
NOOPT="%{optflags} -O0 -fPIC"
|
NOOPT="%{optflags} -O0 -fPIC"
|
||||||
@ -212,7 +218,7 @@ mkdir tmp
|
|||||||
gfortran -shared -Wl,-soname=libblas.so.3 -o libblas.so.%{version} tmp/*.o
|
gfortran -shared -Wl,-soname=libblas.so.3 -o libblas.so.%{version} tmp/*.o
|
||||||
ln -s libblas.so.%{version} libblas.so
|
ln -s libblas.so.%{version} libblas.so
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
make cleanlib
|
make cleanlib %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} blaslib \
|
make %{?_smp_mflags} blaslib \
|
||||||
OPTS="%{optflags}" \
|
OPTS="%{optflags}" \
|
||||||
NOOPT="%{optflags} -O0"
|
NOOPT="%{optflags} -O0"
|
||||||
@ -228,7 +234,7 @@ else
|
|||||||
true # No failures
|
true # No failures
|
||||||
fi
|
fi
|
||||||
mv librefblas.a libblas.a
|
mv librefblas.a libblas.a
|
||||||
make cleanlib
|
make cleanlib %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} lapacklib \
|
make %{?_smp_mflags} lapacklib \
|
||||||
OPTS="%{optflags} -fPIC" \
|
OPTS="%{optflags} -fPIC" \
|
||||||
NOOPT="%{optflags} -O0 -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
|
gfortran -shared -Wl,-soname=liblapack.so.3 -o liblapack.so.%{version} tmp/*.o -L. -lblas
|
||||||
ln -s liblapack.so.%{version} liblapack.so
|
ln -s liblapack.so.%{version} liblapack.so
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
make cleanlib
|
make cleanlib %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} lapacklib \
|
make %{?_smp_mflags} lapacklib \
|
||||||
OPTS="%{optflags}" \
|
OPTS="%{optflags}" \
|
||||||
NOOPT="%{optflags} -O0"
|
NOOPT="%{optflags} -O0"
|
||||||
@ -250,10 +256,10 @@ make %{?_smp_mflags} lapacke \
|
|||||||
mv ../liblapacke.a liblapacke_pic.a
|
mv ../liblapacke.a liblapacke_pic.a
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
( cd tmp; ar x ../liblapacke_pic.a )
|
( 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
|
ln -s liblapacke.so.%{version} liblapacke.so
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
make cleanlib
|
make cleanlib %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} lapacke \
|
make %{?_smp_mflags} lapacke \
|
||||||
CFLAGS="%{optflags} -DADD_ -DHAVE_LAPACK_CONFIG_H -DLAPACK_COMPLEX_STRUCTURE"
|
CFLAGS="%{optflags} -DADD_ -DHAVE_LAPACK_CONFIG_H -DLAPACK_COMPLEX_STRUCTURE"
|
||||||
mv ../liblapacke.a liblapacke.a
|
mv ../liblapacke.a liblapacke.a
|
||||||
@ -272,7 +278,7 @@ else
|
|||||||
true # No failures
|
true # No failures
|
||||||
fi
|
fi
|
||||||
# Create man pages - and do some cleanup
|
# 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/TST*
|
rm -f DOCS/man/man3/TST*
|
||||||
rm -f DOCS/man/man3/MYSUB.3
|
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
|
ln -s DLADIV.3.gz %{buildroot}/%{_mandir}/man3/DLADIV2.3.gz
|
||||||
|
|
||||||
%post -n libblas3
|
%post -n libblas3
|
||||||
%_sbindir/update-alternatives --install \
|
%{_sbindir}/update-alternatives --install \
|
||||||
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/blas/libblas.so.3 50
|
%{_libdir}/libblas.so.3 libblas.so.3 %{_libdir}/blas/libblas.so.3 50
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun -n libblas3
|
%preun -n libblas3
|
||||||
if [ "$1" = 0 ] ; then
|
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
|
fi
|
||||||
|
|
||||||
%postun -n libblas3 -p /sbin/ldconfig
|
%postun -n libblas3 -p /sbin/ldconfig
|
||||||
@ -402,18 +408,18 @@ fi
|
|||||||
%posttrans -n libblas3
|
%posttrans -n libblas3
|
||||||
if [ "$1" = 0 ] ; then
|
if [ "$1" = 0 ] ; then
|
||||||
if ! [ -f %{_libdir}/libblas.so.3 ] ; then
|
if ! [ -f %{_libdir}/libblas.so.3 ] ; then
|
||||||
"%_sbindir/update-alternatives" --auto libblas.so.3
|
"%{_sbindir}/update-alternatives" --auto libblas.so.3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n liblapack3
|
%post -n liblapack3
|
||||||
%_sbindir/update-alternatives --install \
|
%{_sbindir}/update-alternatives --install \
|
||||||
%{_libdir}/liblapack.so.3 liblapack.so.3 %{_libdir}/lapack/liblapack.so.3 50
|
%{_libdir}/liblapack.so.3 liblapack.so.3 %{_libdir}/lapack/liblapack.so.3 50
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun -n liblapack3
|
%preun -n liblapack3
|
||||||
if [ "$1" = 0 ] ; then
|
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
|
fi
|
||||||
|
|
||||||
%postun -n liblapack3 -p /sbin/ldconfig
|
%postun -n liblapack3 -p /sbin/ldconfig
|
||||||
@ -421,11 +427,12 @@ fi
|
|||||||
%posttrans -n liblapack3
|
%posttrans -n liblapack3
|
||||||
if [ "$1" = 0 ] ; then
|
if [ "$1" = 0 ] ; then
|
||||||
if ! [ -f %{_libdir}/liblapack.so.3 ] ; then
|
if ! [ -f %{_libdir}/liblapack.so.3 ] ; then
|
||||||
"%_sbindir/update-alternatives" --auto liblapack.so.3
|
"%{_sbindir}/update-alternatives" --auto liblapack.so.3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n liblapacke3 -p /sbin/ldconfig
|
%post -n liblapacke3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n liblapacke3 -p /sbin/ldconfig
|
%postun -n liblapacke3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n liblapack3
|
%files -n liblapack3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user