]> git.pld-linux.org Git - packages/SuperLU.git/commitdiff
- updated to 5.2.2 auto/th/SuperLU-5.2.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 9 Nov 2020 19:30:17 +0000 (20:30 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 9 Nov 2020 19:30:17 +0000 (20:30 +0100)
- updated shared patch

SuperLU-shared.patch
SuperLU.spec

index fc7c4bb1d5f75c3f53c21bcba4a9c8aab0a07236..ce0faf595d2013b4d54bb7126ad1bc46b3f700b7 100644 (file)
@@ -1,8 +1,9 @@
---- SuperLU_5.2.1/TESTING/MATGEN/CMakeLists.txt.orig   2015-12-04 02:06:38.000000000 +0100
-+++ SuperLU_5.2.1/TESTING/MATGEN/CMakeLists.txt        2016-03-16 17:43:13.950101349 +0100
-@@ -104,4 +104,4 @@
+--- superlu-5.2.2/TESTING/MATGEN/CMakeLists.txt.orig   2020-11-09 06:37:09.716973398 +0100
++++ superlu-5.2.2/TESTING/MATGEN/CMakeLists.txt        2020-11-09 09:49:38.097743784 +0100
+@@ -112,5 +112,5 @@
    )
  endif()
  
 -add_library(matgen ${sources})
 +add_library(matgen STATIC ${sources})
+ target_link_libraries(matgen superlu)
index 308de58dec784a60e3790769a5da1e63ed727c67..0c8d4fe985c2e284cc949a2b814ec60f2b2ebd58 100644 (file)
@@ -1,18 +1,19 @@
 Summary:       Subroutines to solve a sparse linear system A*X=B
 Summary(pl.UTF-8):     Procedury do rozwiązywania rzadkich układów równań liniowych A*X=B
 Name:          SuperLU
-Version:       5.2.1
-Release:       2
+Version:       5.2.2
+Release:       1
 License:       BSD
 Group:         Libraries
-Source0:       http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_%{version}.tar.gz
-# Source0-md5: 3a1a9bff20cb06b7d97c46d337504447
+#Source0Download: https://github.com/xiaoyeli/superlu/releases
+Source0:       https://github.com/xiaoyeli/superlu/archive/v%{version}/superlu-%{version}.tar.gz
+# Source0-md5: 1e93259572bd2412674ed809a1446bd3
 Patch0:                %{name}-shared.patch
-URL:           http://crd-legacy.lbl.gov/~xiaoye/SuperLU/
+URL:           https://portal.nersc.gov/project/sparse/superlu/
 BuildRequires: blas-devel
 BuildRequires: cmake >= 2.8.12
 BuildRequires: gcc-fortran
-BuildRequires: libtool >= 2:1.5
+BuildRequires: rpmbuild(macros) >= 1.752
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -46,9 +47,7 @@ Pliki nagłówkowe biblioteki SuperLU.
 Summary:       SuperLU API documentation
 Summary(pl.UTF-8):     Dokumentacja API biblioteki SuperLU
 Group:         Documentation
-%if "%{_rpmversion}" >= "5"
-BuildArch:     noarch
-%endif
+%{?noarchpackage}
 
 %description apidocs
 API documentation for SuperLU library.
@@ -57,15 +56,17 @@ API documentation for SuperLU library.
 Dokumentacja API biblioteki SuperLU.
 
 %prep
-%setup -q -n %{name}_%{version}
+%setup -q -n superlu-%{version}
 %patch0 -p1
 
 %build
 install -d build
 cd build
+# .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
 %cmake .. \
-       -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/superlu \
-       -Denable_blaslib=OFF
+       -DCMAKE_INSTALL_INCLUDEDIR=include/superlu \
+       -DCMAKE_INSTALL_LIBDIR=%{_lib} \
+       -Denable_internal_blaslib=OFF
 
 %{__make}
 
@@ -83,7 +84,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc License.txt README
 %attr(755,root,root) %{_libdir}/libsuperlu.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libsuperlu.so.5
 
@@ -92,6 +93,8 @@ rm -rf $RPM_BUILD_ROOT
 %doc DOC/ug.pdf
 %attr(755,root,root) %{_libdir}/libsuperlu.so
 %{_includedir}/superlu
+%{_pkgconfigdir}/superlu.pc
+%{_libdir}/cmake/superlu
 
 %files apidocs
 %defattr(644,root,root,755)
This page took 0.101865 seconds and 4 git commands to generate.