2016-03-26 16:45:04 +00:00
|
|
|
%global genname superlu
|
2018-04-13 09:45:33 +00:00
|
|
|
%global libver 5
|
2016-03-26 16:45:04 +00:00
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
Name: SuperLU
|
2021-01-29 17:26:31 +00:00
|
|
|
Version: 5.2.2
|
2021-07-21 17:05:52 +00:00
|
|
|
Release: 2%{?dist}
|
2020-04-18 19:56:47 +00:00
|
|
|
Summary: Subroutines to solve sparse linear systems
|
|
|
|
License: BSD and GPLv2+
|
|
|
|
URL: https://portal.nersc.gov/project/sparse/superlu/
|
|
|
|
Source0: https://github.com/xiaoyeli/superlu/archive/v%{version}/%{genname}-%{version}.tar.gz
|
2021-01-29 17:26:31 +00:00
|
|
|
|
|
|
|
# Use a pre-made configuration file for Make
|
|
|
|
Source1: %{name}-fedora-make.inc.in
|
|
|
|
|
|
|
|
Patch0: %{genname}-removemc64.patch
|
2018-04-13 09:45:33 +00:00
|
|
|
|
2018-04-25 14:02:40 +00:00
|
|
|
# Patch soname (5 -> 5.2) of shared library
|
2021-01-29 17:26:31 +00:00
|
|
|
Patch1: %{name}-%{version}-set_soname.patch
|
|
|
|
|
|
|
|
# Fix ldflags of example files
|
|
|
|
Patch2: %{name}-fix_example_builds.patch
|
2018-04-25 14:02:40 +00:00
|
|
|
|
2020-07-25 14:27:02 +00:00
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
BuildRequires: pkgconfig(flexiblas)
|
|
|
|
%else
|
2018-04-17 09:20:22 +00:00
|
|
|
%ifarch %{openblas_arches}
|
2020-04-18 19:56:47 +00:00
|
|
|
BuildRequires: openblas-devel, openblas-srpm-macros
|
2018-04-17 09:20:22 +00:00
|
|
|
%else
|
2020-04-18 19:56:47 +00:00
|
|
|
BuildRequires: blas-devel
|
2018-04-17 09:20:22 +00:00
|
|
|
%endif
|
2020-07-25 14:27:02 +00:00
|
|
|
BuildRequires: atlas-devel
|
2020-07-20 21:59:04 +00:00
|
|
|
%if 0%{?epel}
|
2020-04-18 19:56:47 +00:00
|
|
|
BuildRequires: epel-rpm-macros
|
2018-04-17 09:20:22 +00:00
|
|
|
%endif
|
2020-07-25 14:27:02 +00:00
|
|
|
%endif
|
2021-01-12 00:04:53 +00:00
|
|
|
BuildRequires: make
|
2020-04-18 19:56:47 +00:00
|
|
|
BuildRequires: cmake3
|
2020-07-25 14:27:02 +00:00
|
|
|
BuildRequires: gcc, gcc-gfortran
|
2020-04-18 19:56:47 +00:00
|
|
|
BuildRequires: csh
|
2012-08-31 05:32:13 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
SuperLU contains a set of subroutines to solve a sparse linear system
|
|
|
|
A*X=B. It uses Gaussian elimination with partial pivoting (GEPP).
|
|
|
|
The columns of A may be preordered before factorization; the
|
|
|
|
preordering for sparsity is completely separate from the factorization.
|
|
|
|
|
|
|
|
%package devel
|
2020-04-18 19:56:47 +00:00
|
|
|
Summary: Header files and libraries for SuperLU development
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2012-08-31 05:32:13 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains the header files
|
2015-01-26 00:57:01 +00:00
|
|
|
and libraries for use with %{name} package.
|
2012-08-31 05:32:13 +00:00
|
|
|
|
2016-03-29 01:35:37 +00:00
|
|
|
%package doc
|
2020-04-18 19:56:47 +00:00
|
|
|
Summary: Documentation and Examples for SuperLU
|
|
|
|
BuildArch: noarch
|
2016-03-29 01:35:37 +00:00
|
|
|
%description doc
|
2020-04-18 19:56:47 +00:00
|
|
|
The %{name}-doc package contains all the help HTML documentation.
|
2016-03-29 01:35:37 +00:00
|
|
|
|
2012-08-31 05:32:13 +00:00
|
|
|
%prep
|
2020-04-18 19:56:47 +00:00
|
|
|
%autosetup -n %{genname}-%{version} -p1
|
2014-07-13 22:41:04 +00:00
|
|
|
|
2021-01-29 17:26:31 +00:00
|
|
|
rm -f make.inc
|
|
|
|
cp -pf %{SOURCE1} make.inc.in
|
|
|
|
|
|
|
|
# Remove bundled BLAS
|
|
|
|
rm -rf CBLAS
|
|
|
|
|
2014-07-13 22:41:04 +00:00
|
|
|
rm -fr SRC/mc64ad.f.bak
|
2014-01-06 15:19:27 +00:00
|
|
|
find . -type f | sed -e "/TESTING/d" | xargs chmod a-x
|
2021-01-29 17:26:31 +00:00
|
|
|
|
2013-10-04 21:50:31 +00:00
|
|
|
# Remove the shippped executables from EXAMPLE
|
|
|
|
find EXAMPLE -type f | while read file
|
|
|
|
do
|
|
|
|
[ "$(file $file | awk '{print $2}')" = ELF ] && rm $file || :
|
|
|
|
done
|
2012-08-31 05:32:13 +00:00
|
|
|
|
2018-09-14 11:34:28 +00:00
|
|
|
# Change optimization level
|
|
|
|
sed -e 's|-O0|-O2|g' -i SRC/CMakeLists.txt
|
|
|
|
|
2012-08-31 05:32:13 +00:00
|
|
|
%build
|
2021-01-29 17:26:31 +00:00
|
|
|
mkdir -p build
|
|
|
|
%cmake3 -S . -B build \
|
|
|
|
-Denable_internal_blaslib:BOOL=NO \
|
2020-07-25 14:27:02 +00:00
|
|
|
%if 0%{?fedora} >= 33
|
2021-01-29 17:26:31 +00:00
|
|
|
-DTPL_BLAS_LIBRARIES="`pkg-config --libs flexiblas`" \
|
|
|
|
%else
|
|
|
|
-DTPL_BLAS_LIBRARIES=-lopenblas \
|
2020-07-25 14:27:02 +00:00
|
|
|
%endif
|
2021-01-29 17:26:31 +00:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR:PATH=include/%{name} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES
|
2020-07-25 14:27:02 +00:00
|
|
|
%make_build -C build
|
2020-04-18 19:56:47 +00:00
|
|
|
|
|
|
|
# Compile Fortran example interface to use the C routines in SuperLU
|
2021-01-29 17:26:31 +00:00
|
|
|
%if 0%{?fedora} >= 33
|
|
|
|
export TPL_BLAS_LIBRARIES="`pkg-config --libs flexiblas`" \
|
|
|
|
%else
|
|
|
|
export TPL_BLAS_LIBRARIES=-lopenblas \
|
|
|
|
%endif
|
|
|
|
export LDFLAGS="%{build_ldflags}"
|
|
|
|
export FFLAGS="%{build_fflags}"
|
|
|
|
export CFLAGS="%{build_cflags}"
|
2020-04-18 19:56:47 +00:00
|
|
|
make -C FORTRAN
|
|
|
|
make -C EXAMPLE
|
2012-08-31 05:32:13 +00:00
|
|
|
|
|
|
|
%install
|
2018-04-17 09:20:22 +00:00
|
|
|
%make_install -C build
|
2012-08-31 05:32:13 +00:00
|
|
|
|
2014-01-06 15:19:27 +00:00
|
|
|
%check
|
2018-04-17 09:20:22 +00:00
|
|
|
pushd build
|
2018-09-14 09:59:31 +00:00
|
|
|
ctest3 -V %{?_smp_mflags}
|
2018-04-17 09:20:22 +00:00
|
|
|
popd
|
2014-01-06 15:19:27 +00:00
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
# Test Fortran example interface to use the C routines in SuperLU
|
|
|
|
pushd FORTRAN
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
|
./df77exm < ../EXAMPLE/g20.rua
|
|
|
|
./zf77exm < ../EXAMPLE/cg20.cua
|
|
|
|
./test_omp < ../EXAMPLE/g20.rua
|
|
|
|
make clean
|
|
|
|
popd
|
|
|
|
# Test sample programs
|
|
|
|
pushd EXAMPLE
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
|
|
|
./superlu
|
|
|
|
make clean
|
|
|
|
popd
|
|
|
|
|
2012-08-31 05:32:13 +00:00
|
|
|
%files
|
2017-12-01 02:06:41 +00:00
|
|
|
%license License.txt
|
2018-04-13 09:45:33 +00:00
|
|
|
%{_libdir}/libsuperlu.so.%{libver}*
|
2012-08-31 05:32:13 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/libsuperlu.so
|
2021-01-29 17:26:31 +00:00
|
|
|
%{_libdir}/cmake/%{genname}/
|
|
|
|
%{_libdir}/pkgconfig/%{genname}.pc
|
2012-08-31 05:32:13 +00:00
|
|
|
|
2016-03-29 01:35:37 +00:00
|
|
|
%files doc
|
2020-04-19 08:07:37 +00:00
|
|
|
%license License.txt
|
2020-04-18 19:56:47 +00:00
|
|
|
%doc DOC
|
2016-03-29 01:35:37 +00:00
|
|
|
|
2012-08-31 05:32:13 +00:00
|
|
|
%changelog
|
2021-07-21 17:05:52 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-01-29 17:26:31 +00:00
|
|
|
* Thu Jan 28 2021 Antonio Trande <sagitter@fedoraproject.org> - 5.2.2-1
|
|
|
|
- Release 5.2.2
|
|
|
|
|
2021-01-25 23:39:06 +00:00
|
|
|
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-08-01 09:23:10 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-14
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-27 11:34:55 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-25 14:27:02 +00:00
|
|
|
* Sat Jul 25 2020 Iñaki Úcar <iucar@fedoraproject.org> - 5.2.1-12
|
|
|
|
- https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager
|
|
|
|
|
2020-07-22 17:05:53 +00:00
|
|
|
* Tue Jul 21 2020 Merlin Mathesius <mmathesi@redhat.com> - 5.2.1-11
|
2020-07-20 21:59:04 +00:00
|
|
|
- Minor conditional fix for ELN
|
|
|
|
- Stick to cmake in-source building
|
|
|
|
|
2020-04-19 08:07:37 +00:00
|
|
|
* Sun Apr 19 2020 Antonio Trande <sagitter@fedoraproject.org> - 5.2.1-10
|
|
|
|
- Doc sub-package provides its own license file
|
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
* Sat Apr 18 2020 Antonio Trande <sagitter@fedoraproject.org> - 5.2.1-9
|
|
|
|
- Some minor fixes
|
|
|
|
- Compile/execute Fortran tests and examples
|
|
|
|
- Do not pack example's source code
|
|
|
|
|
2020-01-28 11:00:47 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-24 17:19:55 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-01-31 12:46:16 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
* Fri Sep 14 2018 Antonio Trande <sagitter@fedoraproject.org> - 5.2.1-5
|
2018-09-14 09:57:14 +00:00
|
|
|
- Remove gcc-gfortran as required package
|
|
|
|
|
2018-07-12 19:51:37 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
* Wed Apr 25 2018 Antonio Trande <sagitter@fedoraproject.org> - 5.2.1-3
|
2018-04-25 14:02:40 +00:00
|
|
|
- Patch soname (5 -> 5.2) of shared library
|
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
* Sun Apr 15 2018 Antonio Trande <sagitter@fedoraproject.org> - 5.2.1-2
|
2018-04-17 09:20:22 +00:00
|
|
|
- Use cmake3 on rhel
|
|
|
|
- Use blas from system
|
|
|
|
|
2018-04-13 09:45:33 +00:00
|
|
|
* Fri Apr 13 2018 Rafael dos Santos <rdossant@redhat.com> - 5.2.1-1
|
|
|
|
- Update to 5.2.1
|
|
|
|
- Use cmake build system
|
|
|
|
- Drop obsolete patches
|
|
|
|
- Resolves #1547494 - build with standard Fedora flags
|
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
* Wed Feb 21 2018 Antonio Trande <sagitter@fedoraproject.org> - 5.2.0-8
|
2018-02-21 20:43:53 +00:00
|
|
|
- Add gcc BR
|
|
|
|
- Remove el5 bits
|
|
|
|
|
2020-04-18 19:56:47 +00:00
|
|
|
* Thu Feb 15 2018 Antonio Trande <sagitter@fedoraproject.org> - 5.2.0-7
|
2018-02-15 14:30:45 +00:00
|
|
|
- Use %%ldconfig_scriptlets
|
|
|
|
|
2018-02-07 01:36:31 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-12-01 02:06:41 +00:00
|
|
|
* Sat Oct 21 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 5.2.0-5
|
|
|
|
- Fix lib linking in EPEL (added conditionals; Thanks Antonio Trande))
|
|
|
|
- Use license macro
|
|
|
|
|
2017-08-02 17:18:12 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 02:25:28 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 05:36:41 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-04-14 17:32:12 +00:00
|
|
|
* Thu Apr 14 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 5.2.0-1
|
|
|
|
- Update to 5.2.0
|
|
|
|
- spec file cleanup
|
|
|
|
|
2016-03-29 01:35:37 +00:00
|
|
|
* Mon Mar 28 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 5.1.1-2
|
|
|
|
- Added -doc subpackage
|
|
|
|
- Added GPLv2 in the license field
|
|
|
|
|
2016-03-26 16:45:04 +00:00
|
|
|
* Mon Mar 21 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 5.1.1-1
|
|
|
|
- Update to 5.1.1
|
|
|
|
- Remove format security patch - not needed anymore
|
|
|
|
- Edit patches to be version specific
|
|
|
|
- Renamed patch4 to be consistent with others
|
|
|
|
- Minor spec file housekeeping
|
|
|
|
|
2016-02-03 15:51:45 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-16 23:26:52 +00:00
|
|
|
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-26 00:57:01 +00:00
|
|
|
* Sun Jan 25 2015 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 4.3-12
|
|
|
|
- Fix spec file errors and remove backup files
|
|
|
|
- fixes 1084707
|
|
|
|
|
2014-08-15 19:43:27 +00:00
|
|
|
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-13 22:41:04 +00:00
|
|
|
* Sun Jul 13 2014 Mukundan Ragavan <nonamedotc@gmail.com> - 4.3-10
|
|
|
|
- Removed non-free files, fixes bz#1114264
|
|
|
|
|
2014-06-06 23:47:48 +00:00
|
|
|
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-01-06 15:19:27 +00:00
|
|
|
* Mon Jan 06 2014 Björn Esser <bjoern.esser@gmail.com> - 4.3-8
|
|
|
|
- fixed FTBFS if "-Werror=format-security" flag is used (#1037343)
|
|
|
|
- devel-pkg must Requires: %%{name}%%{?_isa}
|
|
|
|
- apply proper LDFLAGS
|
|
|
|
- added needed bits for el5
|
|
|
|
- reenable testsuite using Patch3
|
|
|
|
|
2013-10-04 21:50:31 +00:00
|
|
|
* Fri Oct 4 2013 Orion Poplawski <orion@cora.nwra.com> - 4.3-7
|
|
|
|
- Rebuild for atlas 3.10
|
|
|
|
- Handle UnversionedDocDirs change
|
|
|
|
|
2013-08-02 23:56:40 +00:00
|
|
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-25 15:56:19 +00:00
|
|
|
* Mon Mar 25 2013 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 4.3-5
|
|
|
|
- Ship SuperLU examples
|
|
|
|
|
2013-02-13 16:07:38 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-31 05:32:13 +00:00
|
|
|
* Sat Aug 25 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 4.3-3
|
|
|
|
- Use README in main package and DOC in devel package
|
|
|
|
- chmod a-x on SRC/qselect.c
|
|
|
|
- Remove -latlas linking in prep section
|
|
|
|
- Added Patch comments
|
|
|
|
- Use name RPM macro in patch name
|
|
|
|
|
|
|
|
* Wed Feb 01 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 4.3-2
|
|
|
|
- Use atlas library instead of blas.
|
|
|
|
- Use RPM_OPT_FLAGS and LIBS when building sources.
|
|
|
|
- Use macros as required for name and version.
|
|
|
|
|
|
|
|
* Fri Jan 06 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 4.3-1
|
|
|
|
- First release.
|