commit
2570e84b10
BIN
arpack-ng-3.5.0.tar.gz
Normal file
BIN
arpack-ng-3.5.0.tar.gz
Normal file
Binary file not shown.
112
arpack.spec
Normal file
112
arpack.spec
Normal file
@ -0,0 +1,112 @@
|
||||
Name: arpack
|
||||
Version: 3.5.0
|
||||
Release: 7
|
||||
Summary: Fortran 77 subroutines for solving large scale eigenvalue problems
|
||||
License: BSD
|
||||
URL: https://github.com/opencollab/arpack-ng
|
||||
Source0: https://github.com/opencollab/arpack-ng/archive/%{version}/arpack-ng-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc-gfortran atlas-devel openblas-devel libtool >= 2.4.2
|
||||
Provides: arpack-ng = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Calculating eigenvalues and eigenvectors of general n-times-n matrix A.
|
||||
|
||||
%package devel
|
||||
Summary: Files needed for developing arpack based applications
|
||||
Requires: arpack = %{version}-%{release}
|
||||
Provides: arpack-ng-devel = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package is used to build the so library link of arpack's Application.
|
||||
|
||||
%package help
|
||||
Summary: Examples for the use of arpack
|
||||
BuildArch: noarch
|
||||
Provides: %{name}-doc = %{version}-%{release}
|
||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
This package contains examples for the use of arpack.
|
||||
|
||||
%package static
|
||||
Summary: Static library for developing arpack based applications
|
||||
Requires: arpack-devel = %{version}-%{release}
|
||||
Provides: arpack-ng-static = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
Used to solve large-scale feature problems, including write library files.
|
||||
|
||||
%prep
|
||||
%autosetup -c
|
||||
mv arpack-ng-%{version} src
|
||||
pushd src
|
||||
autoreconf -vif
|
||||
popd
|
||||
cp -pr src src64
|
||||
|
||||
%build
|
||||
%global blaslib -L%{_libdir}/atlas -ltatlas
|
||||
%global blaslib -lopenblasp
|
||||
pushd src
|
||||
%configure --enable-shared --enable-static \
|
||||
--with-blas="%{blaslib}" \
|
||||
--with-lapack="%{blaslib}"
|
||||
%make_build
|
||||
popd
|
||||
pushd src64
|
||||
%configure --enable-shared --enable-static \
|
||||
LIBSUFFIX=64_ \
|
||||
SYMBOLSUFFIX=_64 \
|
||||
INTERFACE64=1 \
|
||||
--with-blas=%{blaslib}64_ \
|
||||
--with-lapack=%{blaslib}64_
|
||||
%make_build
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd src
|
||||
%make_install
|
||||
popd
|
||||
pushd src64
|
||||
%make_install
|
||||
popd
|
||||
rm -r %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%check
|
||||
pushd src
|
||||
%make_build check
|
||||
pushd EXAMPLES ; make clean ; popd
|
||||
popd
|
||||
pushd src64
|
||||
%make_build check
|
||||
pushd EXAMPLES ; make clean ; popd
|
||||
popd
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license src/COPYING
|
||||
%{_libdir}/libarpack.so.*
|
||||
%{_libdir}/libarpack64_.so.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/pkgconfig/arpack.pc
|
||||
%{_libdir}/libarpack.so
|
||||
%{_libdir}/pkgconfig/arpack64_.pc
|
||||
%{_libdir}/libarpack64_.so
|
||||
|
||||
%files help
|
||||
%doc src/EXAMPLES/ src/DOCUMENTS/ src/CHANGES src/README
|
||||
|
||||
%files static
|
||||
%{_libdir}/libarpack.a
|
||||
%{_libdir}/libarpack64_.a
|
||||
|
||||
%changelog
|
||||
* Sat Mar 07 2020 wangye <wangye54@huawei.com> - 3.5.0-7
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user