Accepting request 106299 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/106299 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/suitesparse?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
SuiteSparse-3.7.0.tar.bz2
Normal file
3
SuiteSparse-3.7.0.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:32fc2bcc191e15c2ee331c9cb393abe7435c30eae9fe2ee364c4c44294432cd5
|
||||
size 22494649
|
7
suitesparse-rpmlintrc
Normal file
7
suitesparse-rpmlintrc
Normal file
@@ -0,0 +1,7 @@
|
||||
# False positives
|
||||
addFilter("shlib-unversioned-lib")
|
||||
addFilter("shlib-policy-missing-lib")
|
||||
|
||||
# rpmlint could be smarter
|
||||
addFilter("shlib-policy-nonversioned-dir")
|
||||
addFilter("no-binary")
|
46
suitesparse.changes
Normal file
46
suitesparse.changes
Normal file
@@ -0,0 +1,46 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 19 06:41:09 UTC 2012 - i@marguerite.su
|
||||
|
||||
- fix timestamp error in changelog, dont know why it omit zero in
|
||||
time format.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 18 16:15:32 UTC 2012 - jengelh@medozas.de
|
||||
|
||||
- add rpmlintrc to shut up false positives (after inquiry by
|
||||
MargueriteSu)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 17 14:01:01 UTC 2012 - i@marguerite.su
|
||||
|
||||
- fix libraries version tags of suitesparse-devel requires.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 07:36:47 UTC 2012 - i@marguerite.su
|
||||
|
||||
- fix bug#746867. cholmod is licensed under GPL-2.0 and LGPL-2.0 only,
|
||||
GPL-2.0 only prevents other components to be licensed under a high
|
||||
version of the same license.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 7 17:10:48 UTC 2012 - jengelh@medozas.de
|
||||
|
||||
- Apply shared library policy
|
||||
http://en.opensuse.org/openSUSE:Shared_library_packaging_policy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 4 11:38:15 UTC 2012 - i@marguerite.su
|
||||
|
||||
- update to version 3.7.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 21 00:00:00 UTC 2011 - coyoteuser@gmail.com
|
||||
|
||||
- updated to latest version 3.2.0
|
||||
- added gcc4.3.2 fix for spqr.hpp
|
||||
- changed source to bz2 archive
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 8 00:00:00 UTC 2008 - coyoyeuser@gmail.com
|
||||
|
||||
- Initial release
|
333
suitesparse.spec
Normal file
333
suitesparse.spec
Normal file
@@ -0,0 +1,333 @@
|
||||
#
|
||||
# spec file for package suitesparse
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
|
||||
Name: suitesparse
|
||||
Summary: A collection of sparse matrix libraries
|
||||
Version: 3.7.0
|
||||
Release: 0
|
||||
Group: Productivity/Scientific/Math
|
||||
License: GPL-2.0 and LGPL-2.0
|
||||
Url: http://www.cise.ufl.edu/research/sparse/SuiteSparse
|
||||
Source: SuiteSparse-%{version}.tar.bz2
|
||||
Source2: %name-rpmlintrc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
BuildRequires: gcc gcc-c++
|
||||
BuildRequires: gcc-fortran
|
||||
BuildRequires: blas
|
||||
|
||||
%description
|
||||
suitesparse is a collection of libraries for computations involving sparse
|
||||
matrices.
|
||||
|
||||
%package devel
|
||||
Summary: Development headers for SuiteSparse
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libamd-2_2_3 = 2.2.3
|
||||
Requires: libbtf-1_1_3 = 1.1.3
|
||||
Requires: libcamd-2_2_3 = 2.2.3
|
||||
Requires: libccolamd-2_7_4 = 2.7.4
|
||||
Requires: libcholmod-1_7_4 = 1.7.4
|
||||
Requires: libcolamd-2_7_4 = 2.7.4
|
||||
Requires: libcxsparse-2_2_6 = 2.2.6
|
||||
Requires: libklu-1_1_3 = 1.1.3
|
||||
Requires: libldl-2_0_4 = 2.0.4
|
||||
Requires: librbio-2_0_2 = 2.0.2
|
||||
Requires: libspqr-1_2_3 = 1.2.3
|
||||
Requires: libumfpack-5_5_2 = 5.5.2
|
||||
Provides: suitesparse-common-devel = %{version}-%{release}
|
||||
Obsoletes: suitesparse-common-devel < %{version}-%{release}
|
||||
Provides: amd-devel = 2.2.3
|
||||
Obsoletes: amd-devel < 2.2.3
|
||||
Provides: umfpack-devel = 5.5.2
|
||||
Obsoletes: umfpack-devel < 5.5.2
|
||||
|
||||
# includes also UFconfig (i. e. UFconfig.h)
|
||||
|
||||
%description devel
|
||||
The suitesparse-devel package contains files needed for developing
|
||||
applications which use the suitesparse libraries.
|
||||
|
||||
%package devel-static
|
||||
Summary: Static version of SuiteSparse libraries
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description devel-static
|
||||
The suitesparse-static package contains the statically linkable
|
||||
version of the suitesparse libraries.
|
||||
|
||||
%package -n libamd-2_2_3
|
||||
Version: 2.2.3
|
||||
Summary: Symmetric Approximate Minimum Degree
|
||||
|
||||
%description -n libamd-2_2_3
|
||||
AMD as part of SuiteSparse features symmetric approximate minimum degree.
|
||||
|
||||
%package -n libbtf-1_1_3
|
||||
Version: 1.1.3
|
||||
Summary: Permutation to Block Triangular Form
|
||||
|
||||
%description -n libbtf-1_1_3
|
||||
BTF as part of SuiteSparse features permutation to block triangular form.
|
||||
|
||||
%package -n libcamd-2_2_3
|
||||
Version: 2.2.3
|
||||
Summary: Symmetric Approximate Minimum Degree
|
||||
|
||||
%description -n libcamd-2_2_3
|
||||
CAMD as part of SuiteSparse features symmetric approximate minimum degree.
|
||||
|
||||
%package -n libccolamd-2_7_4
|
||||
Version: 2.7.4
|
||||
Summary: Constrained Column Approximate Minimum Degree
|
||||
|
||||
%description -n libccolamd-2_7_4
|
||||
CCOLAMD as part of SuiteSparse features constrained column approximate minimum degree.
|
||||
|
||||
%package -n libcholmod-1_7_4
|
||||
Version: 1.7.4
|
||||
Summary: Sparse Supernodal Cholesky Factorization and Update/Downdate
|
||||
|
||||
%description -n libcholmod-1_7_4
|
||||
CHOLMOD as part of SuiteSparse features sparse supernodal Cholesky factorization and update/downdate.
|
||||
|
||||
%package -n libcolamd-2_7_4
|
||||
Version: 2.7.4
|
||||
Summary: Column Approximate Minimum Degree
|
||||
|
||||
%description -n libcolamd-2_7_4
|
||||
COLAMD as part of SuiteSparse features column approximate minimum degree.
|
||||
|
||||
%package -n libcxsparse-2_2_6
|
||||
Version: 2.2.6
|
||||
Summary: An extended version of CSparse
|
||||
|
||||
%description -n libcxsparse-2_2_6
|
||||
CXSparse as part of SuiteSparse features an extended version of CSparse.
|
||||
|
||||
%package -n libklu-1_1_3
|
||||
Version: 1.1.3
|
||||
Summary: Sparse LU Factorization, for Circuit Simulation
|
||||
|
||||
%description -n libklu-1_1_3
|
||||
KLU as part of SuiteSparse features sparse LU factorization, for circuit simulation.
|
||||
|
||||
%package -n libldl-2_0_4
|
||||
Version: 2.0.4
|
||||
Summary: A Simple LDL^T Factorization
|
||||
|
||||
%description -n libldl-2_0_4
|
||||
LDL as part of SuiteSparse features a simple LDL^T factorization.
|
||||
|
||||
%package -n librbio-2_0_2
|
||||
Version: 2.0.2
|
||||
Summary: MATLAB Toolbox for Reading/Writing Sparse Matrices
|
||||
|
||||
%description -n librbio-2_0_2
|
||||
RBio as part of SuiteSparse features MATLAB toolbox for reading/writing sparse matrices.
|
||||
|
||||
%package -n libspqr-1_2_3
|
||||
Version: 1.2.3
|
||||
Summary: Multifrontal Sparse QR
|
||||
|
||||
%description -n libspqr-1_2_3
|
||||
SPQR as part of SuiteSparse features multifrontal sparse QR.
|
||||
|
||||
%package -n libumfpack-5_5_2
|
||||
Version: 5.5.2
|
||||
Summary: Sparse Multifrontal LU Factorization
|
||||
|
||||
%description -n libumfpack-5_5_2
|
||||
UMFPACK as part of SuiteSparse features sparse multifrontal LU factorization.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n SuiteSparse
|
||||
sed 's/^CHOLMOD_CONFIG =.*/CHOLMOD_CONFIG = -DNPARTITION/' -i UFconfig/UFconfig.mk
|
||||
sed 's/^\(METIS =\).*//' -i UFconfig/UFconfig.mk
|
||||
|
||||
%build
|
||||
for dir in AMD BTF CAMD CCOLAMD CHOLMOD COLAMD CXSparse KLU LDL RBio SPQR UMFPACK; do
|
||||
pushd $dir
|
||||
ver=$(grep -E "^VERSION =" Makefile | sed "s:VERSION = ::")
|
||||
pushd Lib
|
||||
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||
dir_l=$(echo "$dir" | tr "[A-Z]" "[a-z]")
|
||||
gcc -shared -Wl,-soname -Wl,"lib${dir_l}-$ver.so" -o "lib${dir_l}-$ver.so" *.o -lm
|
||||
ln -s "lib${dir_l}-$ver.so" "lib${dir_l}.so"
|
||||
popd
|
||||
popd
|
||||
done
|
||||
# specialities
|
||||
# -- CHOLMOD
|
||||
pushd CHOLMOD
|
||||
cp Cholesky/License.txt Doc/Cholesky_License.txt
|
||||
cp Core/License.txt Doc/Core_License.txt
|
||||
cp MatrixOps/License.txt Doc/MatrixOps_License.txt
|
||||
cp Partition/License.txt Doc/Partition_License.txt
|
||||
cp Supernodal/License.txt Doc/Supernodal_License.txt
|
||||
popd
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_includedir}/%{name}
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}-devel
|
||||
cp -a UFconfig/UFconfig.h %{buildroot}%{_includedir}/%{name}
|
||||
cp -a README.txt %{buildroot}%{_docdir}/%{name}
|
||||
for dir in AMD BTF CAMD CCOLAMD CHOLMOD COLAMD CXSparse KLU LDL RBio SPQR UMFPACK; do
|
||||
pushd $dir
|
||||
ver=$(grep -E "^VERSION =" Makefile | sed "s:VERSION = ::")
|
||||
cp -a Lib/*.a Lib/*.so* %{buildroot}/%{_libdir}
|
||||
cp -a Include/*.h %{buildroot}%{_includedir}/%{name}
|
||||
mkdir %{buildroot}%{_docdir}/%{name}/$dir-$ver
|
||||
mkdir %{buildroot}%{_docdir}/%{name}-devel/$dir
|
||||
cp -a README.txt Doc/{License,ChangeLog,*.txt} %{buildroot}%{_docdir}/%{name}/$dir-$ver > /dev/null 2>&1 | true
|
||||
cp -a $dir/Doc/*.pdf %{buildroot}%{_docdir}/%{name}-devel/$dir > /dev/null 2>&1 | true
|
||||
popd
|
||||
done
|
||||
|
||||
%post -n libamd-2_2_3 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libamd-2_2_3 -p /sbin/ldconfig
|
||||
|
||||
%post -n libbtf-1_1_3 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libbtf-1_1_3 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcamd-2_2_3 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcamd-2_2_3 -p /sbin/ldconfig
|
||||
|
||||
%post -n libccolamd-2_7_4 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libccolamd-2_7_4 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcholmod-1_7_4 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcholmod-1_7_4 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcolamd-2_7_4 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcolamd-2_7_4 -p /sbin/ldconfig
|
||||
|
||||
%post -n libcxsparse-2_2_6 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libcxsparse-2_2_6 -p /sbin/ldconfig
|
||||
|
||||
%post -n libklu-1_1_3 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libklu-1_1_3 -p /sbin/ldconfig
|
||||
|
||||
%post -n libldl-2_0_4 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libldl-2_0_4 -p /sbin/ldconfig
|
||||
|
||||
%post -n librbio-2_0_2 -p /sbin/ldconfig
|
||||
|
||||
%postun -n librbio-2_0_2 -p /sbin/ldconfig
|
||||
|
||||
%post -n libspqr-1_2_3 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libspqr-1_2_3 -p /sbin/ldconfig
|
||||
|
||||
%post -n libumfpack-5_5_2 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libumfpack-5_5_2 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/README.txt
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/lib*.so
|
||||
%exclude %_libdir/lib*-*.so
|
||||
%doc %{_docdir}/%{name}-devel
|
||||
|
||||
%files devel-static
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/lib*.a
|
||||
|
||||
%files -n libamd-2_2_3
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libamd-2.2.3.so
|
||||
%doc %{_docdir}/%{name}/AMD-2.2.3
|
||||
|
||||
%files -n libbtf-1_1_3
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libbtf-1.1.3.so
|
||||
%doc %{_docdir}/%{name}/BTF-1.1.3
|
||||
|
||||
%files -n libcamd-2_2_3
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libcamd-2.2.3.so
|
||||
%doc %{_docdir}/%{name}/CAMD-2.2.3
|
||||
|
||||
%files -n libccolamd-2_7_4
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libccolamd-2.7.4.so
|
||||
%doc %{_docdir}/%{name}/CCOLAMD-2.7.4
|
||||
|
||||
%files -n libcholmod-1_7_4
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libcholmod-1.7.4.so
|
||||
%doc %{_docdir}/%{name}/CHOLMOD-1.7.4
|
||||
|
||||
%files -n libcolamd-2_7_4
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libcolamd-2.7.4.so
|
||||
%doc %{_docdir}/%{name}/COLAMD-2.7.4
|
||||
|
||||
%files -n libcxsparse-2_2_6
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libcxsparse-2.2.6.so
|
||||
%doc %{_docdir}/%{name}/CXSparse-2.2.6
|
||||
|
||||
%files -n libklu-1_1_3
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libklu-1.1.3.so
|
||||
%doc %{_docdir}/%{name}/KLU-1.1.3
|
||||
|
||||
%files -n libldl-2_0_4
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libldl-2.0.4.so
|
||||
%doc %{_docdir}/%{name}/LDL-2.0.4
|
||||
|
||||
%files -n librbio-2_0_2
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/librbio-2.0.2.so
|
||||
%doc %{_docdir}/%{name}/RBio-2.0.2
|
||||
|
||||
%files -n libspqr-1_2_3
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libspqr-1.2.3.so
|
||||
%doc %{_docdir}/%{name}/SPQR-1.2.3
|
||||
|
||||
%files -n libumfpack-5_5_2
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libumfpack-5.5.2.so
|
||||
%doc %{_docdir}/%{name}/UMFPACK-5.5.2
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user