[packages/arpack-ng] - new, maintained arpack replacement
qboosh
qboosh at pld-linux.org
Sun Jan 15 19:13:44 CET 2023
commit 1c8dd48f0283ac011bdb7bf2d70a51b55371b108
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 15 19:14:45 2023 +0100
- new, maintained arpack replacement
arpack-ng.spec | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 126 insertions(+)
---
diff --git a/arpack-ng.spec b/arpack-ng.spec
new file mode 100644
index 0000000..03743a8
--- /dev/null
+++ b/arpack-ng.spec
@@ -0,0 +1,126 @@
+# TODO: MPI, iso_c_binding
+#
+# Conditional build:
+%bcond_without static_libs
+
+Summary: Subroutines for solving large scale eigenvalue problems
+Summary(pl.UTF-8): Rozwiązywanie zagadnienia własnego dla dużych macierzy
+Name: arpack-ng
+Version: 3.8.0
+Release: 1
+License: BSD
+Group: Libraries
+#Source0Download: https://github.com/opencollab/arpack-ng/tags
+Source0: https://github.com/opencollab/arpack-ng/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: bb4cf448f2480a0ffe5517d579f980c3
+URL: https://github.com/opencollab/arpack-ng
+BuildRequires: autoconf >= 2.67
+BuildRequires: automake
+BuildRequires: blas-devel
+BuildRequires: gcc-g77
+BuildRequires: lapack-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:2.4.2
+BuildRequires: pkgconfig
+Provides: arpack = %{version}-%{release}
+Obsoletes: arpack < 3
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ARPACK software is capable of solving large scale symmetric,
+nonsymmetric, and generalized eigenproblems from significant
+application areas. The software is designed to compute a few (k)
+eigenvalues with user specified features such as those of largest real
+part or largest magnitude. Storage requirements are on the order of
+n*k locations. No auxiliary storage is required. A set of Schur basis
+vectors for the desired k-dimensional eigen-space is computed which is
+numerically orthogonal to working precision. Numerically accurate
+eigenvectors are available on request.
+
+%description -l pl.UTF-8
+Rozwiązywanie zagadnienia własnego (symetrycznego, niesymetrycznego,
+ogólnego) dla dużych macierzy. Macierz może być dowolna, przy czym
+procedury działają szczególnie dobrze w przypadku dużych macierzy
+rzadkich bądź macierzy ze znaną strukturą. Biblioteka służy do
+obliczenia kilku (k) wartości własnych o zadanych z góry własnościach,
+takich jak największa (najmniejsza) część rzeczywista albo największy
+(najmniejszy) moduł. Wymagania pamięciowe są rzędu n*k, żadna
+dodatkowa pamięć (np. dyskowa) nie jest wymagana.
+
+%package devel
+Summary: ARPACK development files
+Summary(pl.UTF-8): Pliki programistyczne ARPACK
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: blas-devel
+Provides: arpack-devel = %{version}-%{release}
+Obsoletes: arpack-devel < 3
+
+%description devel
+ARPACK development files.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne ARPACK.
+
+%package static
+Summary: Static ARPACK library
+Summary(pl.UTF-8): Statyczna biblioteka ARPACK
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+Provides: arpack-static = %{version}-%{release}
+Obsoletes: arpack-static < 3
+
+%description static
+Static ARPACK library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka ARPACK.
+
+%prep
+%setup -q
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%configure \
+ --enable-icb \
+ %{?with_static_libs:--enable-static}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libarpack.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES COPYING PARPACK_CHANGES README.md TODO
+%attr(755,root,root) %{_libdir}/libarpack.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libarpack.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%doc DOCUMENTS/*.doc
+%attr(755,root,root) %{_libdir}/libarpack.so
+%{_includedir}/arpack
+%{_pkgconfigdir}/arpack.pc
+%{_libdir}/cmake/arpack-ng
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libarpack.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/arpack-ng.git/commitdiff/1c8dd48f0283ac011bdb7bf2d70a51b55371b108
More information about the pld-cvs-commit
mailing list