iucar / rpms / arpack

Forked from rpms/arpack 3 years ago
Clone
f0d6bc4
%global build64 0
48f9c7b
%if 0%{?fedora} >= 26 || 0%{?rhel} >= 7
01b99a3
%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64}
01b99a3
%ifnarch %{openblas_arches}
01b99a3
# matches openblas ExclusiveArch
01b99a3
%bcond_without atlas
f0d6bc4
%else
f0d6bc4
%if 0%{?__isa_bits} == 64
f0d6bc4
%global build64 1
f0d6bc4
%endif
01b99a3
%endif
01b99a3
%endif
eeff571
aee624e
d047e0c
Name:		arpack
bf79653
Version:	3.6.1
46af073
Release:	2%{dist}
d047e0c
Summary:	Fortran 77 subroutines for solving large scale eigenvalue problems
aee624e
d047e0c
License:	BSD
eeff571
URL:		https://github.com/opencollab/arpack-ng
Orion Poplawski 8007716
Source0:	https://github.com/opencollab/arpack-ng/archive/%{version}/arpack-ng-%{version}.tar.gz
d047e0c
d047e0c
BuildRequires:	gcc-gfortran
01b99a3
%if %{with atlas}
d047e0c
BuildRequires:	atlas-devel
01b99a3
%else
01b99a3
BuildRequires:	openblas-devel
01b99a3
%endif
01b99a3
BuildRequires:	libtool >= 2.4.2
d047e0c
Provides:	arpack-ng = %{version}-%{release}
aee624e
Provides:	arpack-ng%{?_isa} = %{version}-%{release}
4223f4b
4223f4b
%description
Björn Esser 4ce3982
ARPACK is a collection of Fortran 77 subroutines designed to solve large
Björn Esser 4ce3982
scale eigenvalue problems.
4223f4b
4223f4b
The package is designed to compute a few eigenvalues and corresponding
4223f4b
eigenvectors of a general n by n matrix A. It is most appropriate for
4223f4b
large sparse or structured matrices A where structured means that a
4223f4b
matrix-vector product w <- Av requires order n rather than the usual
4223f4b
order n**2 floating point operations. This software is based upon an
4223f4b
algorithmic variant of the Arnoldi process called the Implicitly
4223f4b
Restarted Arnoldi Method (IRAM).
4223f4b
aee624e
4223f4b
%package devel
d047e0c
Summary:	Files needed for developing arpack based applications
aee624e
Requires:	arpack%{?_isa} = %{version}-%{release}
d047e0c
Provides:	arpack-ng-devel = %{version}-%{release}
aee624e
Provides:	arpack-ng-devel%{?_isa} = %{version}-%{release}
4223f4b
4223f4b
%description devel
9d57fae
ARPACK is a collection of Fortran 77 subroutines designed to solve
4223f4b
large scale eigenvalue problems. This package contains the so
4223f4b
library links used for building arpack based applications.
4223f4b
aee624e
9d57fae
%package doc
d047e0c
Summary:	Examples for the use of arpack
aee624e
BuildArch:	noarch
9d57fae
9d57fae
%description doc
9d57fae
This package contains examples for the use of arpack.
9d57fae
aee624e
4223f4b
%package static
d047e0c
Summary:	Static library for developing arpack based applications
aee624e
Requires:	arpack-devel%{?_isa} = %{version}-%{release}
d047e0c
Provides:	arpack-ng-static = %{version}-%{release}
aee624e
Provides:	arpack-ng-static%{?_isa} = %{version}-%{release}
4223f4b
4223f4b
%description static
9d57fae
ARPACK is a collection of Fortran 77 subroutines designed to solve
4223f4b
large scale eigenvalue problems. This package contains the static
4223f4b
library and so links used for building arpack based applications.
4223f4b
aee624e
4223f4b
%prep
f0d6bc4
%autosetup -c
f0d6bc4
mv arpack-ng-%{version} src
f0d6bc4
pushd src
Dominik 'Rathann' Mierzejewski 6449af1
autoreconf -vif
f0d6bc4
popd
f0d6bc4
%if %{build64}
f0d6bc4
cp -pr src src64
f0d6bc4
%endif
4223f4b
aee624e
4223f4b
%build
01b99a3
%if %{with atlas}
Dominik 'Rathann' Mierzejewski 6449af1
%if 0%{?fedora} || 0%{?rhel} >= 7
19379f4
%global blaslib -L%{_libdir}/atlas -ltatlas
Orion Poplawski 937d992
%else
19379f4
%global blaslib -L%{_libdir}/atlas -lf77blas -latlas
Orion Poplawski 937d992
%endif
01b99a3
%else
01b99a3
%global blaslib -lopenblasp
01b99a3
%endif
f0d6bc4
pushd src
d047e0c
%configure --enable-shared --enable-static \
19379f4
    --with-blas="%{blaslib}" \
bf79653
    --with-lapack="%{blaslib}" \
bf79653
    --enable-icb
aee624e
%make_build
f0d6bc4
popd
f0d6bc4
%if %{build64}
f0d6bc4
pushd src64
f0d6bc4
%configure --enable-shared --enable-static \
f0d6bc4
    LIBSUFFIX=64_ \
f0d6bc4
    SYMBOLSUFFIX=_64 \
f0d6bc4
    INTERFACE64=1 \
f0d6bc4
    --with-blas=%{blaslib}64_ \
bf79653
    --with-lapack=%{blaslib}64_ \
bf79653
    --enable-icb
f0d6bc4
%make_build
f0d6bc4
popd
f0d6bc4
%endif
aee624e
4223f4b
%install
f0d6bc4
pushd src
f0d6bc4
%make_install
f0d6bc4
popd
f0d6bc4
%if %{build64}
f0d6bc4
pushd src64
aee624e
%make_install
f0d6bc4
popd
f0d6bc4
%endif
9d57fae
# Get rid of .la files
Dominik Mierzejewski 456b481
rm -r %{buildroot}%{_libdir}/*.la
bf79653
# Get rid of generic file names (https://github.com/opencollab/arpack-ng/issues/130)
bf79653
rm -f %{buildroot}%{_includedir}/debug_c.{h,hpp}
bf79653
rm -f %{buildroot}%{_includedir}/stat.h
bf79653
rm -f %{buildroot}%{_includedir}/stat_c.{h,hpp}
bf79653
rm -f %{buildroot}%{_includedir}/debug-arpack.h
aee624e
Dominik Mierzejewski 456b481
%check
f0d6bc4
pushd src
f0d6bc4
%make_build check
f0d6bc4
pushd EXAMPLES ; make clean ; popd
f0d6bc4
popd
f0d6bc4
%if %{build64}
f0d6bc4
pushd src64
aee624e
%make_build check
Dominik Mierzejewski 5e82a25
pushd EXAMPLES ; make clean ; popd
f0d6bc4
popd
f0d6bc4
%endif
4223f4b
e83c787
%ldconfig_scriptlets
4223f4b
4223f4b
%files
bf79653
%doc src/CHANGES src/README.md
f0d6bc4
%license src/COPYING
4223f4b
%{_libdir}/libarpack.so.*
f0d6bc4
%if %{build64}
f0d6bc4
%{_libdir}/libarpack64_.so.*
f0d6bc4
%endif
4223f4b
4223f4b
%files devel
d047e0c
%{_libdir}/pkgconfig/arpack.pc
4223f4b
%{_libdir}/libarpack.so
f0d6bc4
%if %{build64}
f0d6bc4
%{_libdir}/pkgconfig/arpack64_.pc
f0d6bc4
%{_libdir}/libarpack64_.so
f0d6bc4
%endif
bf79653
%{_includedir}/arpack.h
bf79653
%{_includedir}/arpack.hpp
aee624e
9d57fae
%files doc
f0d6bc4
%doc src/EXAMPLES/ src/DOCUMENTS/
bf79653
%doc src/CHANGES src/README.md
f0d6bc4
%license src/COPYING
aee624e
9d57fae
4223f4b
%files static
4223f4b
%{_libdir}/libarpack.a
f0d6bc4
%if %{build64}
f0d6bc4
%{_libdir}/libarpack64_.a
f0d6bc4
%endif
4223f4b
aee624e
4223f4b
%changelog
46af073
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-2
46af073
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
46af073
bf79653
* Sat Jun 23 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.6.1-1
bf79653
- Update to 3.6.1, adding C and C++ bindings.
bf79653
63062cd
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
63062cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
63062cd
7294ba7
* Wed Jan 31 2018 Björn Esser <besser82@fedoraproject.org> - 3.5.0-5
7294ba7
- Rebuilt for GCC8
7294ba7
9364c29
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-4
9364c29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9364c29
de913e4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
de913e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
de913e4
01b99a3
* Mon Jul 03 2017 Dominik Mierzejewski <rpm@greysector.net> - 3.5.0-2
01b99a3
- build against openblas on supported arches
01b99a3
- generating configure for 3.4.0+ requires new libtool
f0d6bc4
- build 64-bit ILP64 version (#1294201)
01b99a3
aee624e
* Sat May 20 2017 Björn Esser <besser82@fedoraproject.org> - 3.5.0-1
aee624e
- Update to 3.5.0 (#1451525)
aee624e
- Drop stuff needed for el5
aee624e
- Update spec-file to recent guidelines
aee624e
3efdd45
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-3
3efdd45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3efdd45
Björn Esser 4ce3982
* Sat Jan 28 2017 Björn Esser <besser82@fedoraproject.org> - 3.4.0-2
Björn Esser 4ce3982
- Rebuilt for GCC-7
Björn Esser 4ce3982
Orion Poplawski 8007716
* Thu Sep 29 2016 Orion Poplawski <orion@cora.nwra.com> - 3.4.0-1
Orion Poplawski 8007716
- Update to 3.4.0
Orion Poplawski 8007716
60c4d0e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2.b0f7a60git
60c4d0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
60c4d0e
Dominik 'Rathann' Mierzejewski 6449af1
* Mon Oct 19 2015 Dominik Mierzejewski <rpm@greysector.net> - 3.3.0-1.b0f7a600git
Dominik 'Rathann' Mierzejewski 6449af1
- Update to 3.3.0
Dominik 'Rathann' Mierzejewski 6449af1
- BR: libtool and call autoreconf
Dominik 'Rathann' Mierzejewski 6449af1
- simplify some conditions
Dominik 'Rathann' Mierzejewski 6449af1
eeff571
* Mon Sep 21 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.2.0-1.8fc8fbe3git
eeff571
- Update source URL.
eeff571
- Update to 3.2.0.
eeff571
89c2bef
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.5-2
89c2bef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
89c2bef
Dominik Mierzejewski 456b481
* Fri Mar 06 2015 Dominik Mierzejewski <rpm@greysector.net> - 3.1.5-1
Dominik Mierzejewski 456b481
- update to 3.1.5
Dominik Mierzejewski 456b481
- fix source URL
Dominik Mierzejewski 456b481
- example binary is no longer installed by default
Dominik Mierzejewski 456b481
- enable tests
Dominik Mierzejewski 5e82a25
- don't duplicate documentation and examples in -devel
Dominik Mierzejewski 5e82a25
- clean binaries in EXAMPLES after running testsuite
Dominik Mierzejewski 456b481
2047d87
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.3-4
2047d87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2047d87
67025c7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.3-3
67025c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
67025c7
Orion Poplawski fa22bab
* Sat Sep 21 2013 Orion Poplawski <orion@cora.nwra.com> - 3.1.3-2
Orion Poplawski 937d992
- Rebuild for atlas 3.10 using threaded library
Orion Poplawski 937d992
d047e0c
* Thu Sep 05 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 3.1.3-1
d047e0c
- Update to 3.1.3.
d047e0c
4ac5914
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-5
4ac5914
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4ac5914
7b82eaf
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-4
7b82eaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7b82eaf
8878993
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-3
8878993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8878993
040301a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
040301a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
040301a
9d57fae
* Tue Dec 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.0.1-1
9d57fae
- Change sources to arpack-ng, which provides an up-to-date version of ARPACK.
9d57fae
- Include examples and documentation in a new -doc package.
9d57fae
70c19b8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-13
70c19b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
70c19b8
336acdd
* Wed Jul  7 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1-12
2132a34
- Bump spec to fix update path.
2132a34
2709729
* Wed Apr  7 2010 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.1-11
2709729
- Change license to BSD (see RH bugs #234191 and #578873).
fd0f196
75672b8
* Wed Sep 24 2008 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> 2.1-10
75672b8
- fix libarpack.so: undefined reference to `etime_' with recent gfortran
75672b8
3305668
* Mon Aug 25 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.1-9
3305668
- Patch0 and %%patch make recent rpm silenty fail.
3305668
2c45c62
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-8
2c45c62
- fix license tag
2c45c62
4223f4b
* Wed Oct 24 2007 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> 2.1-7
4223f4b
- apply Frederic Hecht's patch for eigenvalue bug
4223f4b
- move static libs to separate package
4223f4b
4223f4b
* Mon Mar 26 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.1-6
4223f4b
- Add license and clarification note
4223f4b
- Add lapack support
4223f4b
4223f4b
* Thu Nov  9 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.1-4
4223f4b
- Freshen up for submitting to fedora extras.
4223f4b
- Fix permissions of so file.
4223f4b
- Add forgotten ldconfig
4223f4b
- Remove dot from summaries.
4223f4b
4223f4b
* Wed Jul 16 2003 Axel Thimm <Axel.Thimm@ATrpms.net>
4223f4b
- Initial build.