]> git.pld-linux.org Git - packages/SuperLU.git/blob - SuperLU.spec
- unconditional noarch subpackages
[packages/SuperLU.git] / SuperLU.spec
1 Summary:        Subroutines to solve a sparse linear system A*X=B
2 Summary(pl.UTF-8):      Procedury do rozwiązywania rzadkich układów równań liniowych A*X=B
3 Name:           SuperLU
4 Version:        5.2.2
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/xiaoyeli/superlu/releases
9 Source0:        https://github.com/xiaoyeli/superlu/archive/v%{version}/superlu-%{version}.tar.gz
10 # Source0-md5:  1e93259572bd2412674ed809a1446bd3
11 Patch0:         %{name}-shared.patch
12 URL:            https://portal.nersc.gov/project/sparse/superlu/
13 BuildRequires:  blas-devel
14 BuildRequires:  cmake >= 2.8.12
15 BuildRequires:  gcc-fortran
16 BuildRequires:  rpmbuild(macros) >= 1.752
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 SuperLU contains a set of subroutines to solve a sparse linear system
21 A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The
22 columns of A may be preordered before factorization; the preordering
23 for sparsity is completely separate from the factorization.
24
25 %description -l pl.UTF-8
26 SuperLU zawiera zbiór procedur do rozwiązywania rzadkich układów
27 równań liniowych A*X=B. Wykorzystuje eliminację Gaussa z częściowym
28 wyborem elementu głównego (GEPP). Kolumny A mogą być wstępnie
29 uporządkowane przed rozkładem; ustalanie kolejności pod kątem
30 rzadkości jest całkowicie odrębne od samego rozkładu.
31
32 %package devel
33 Summary:        Header files for SuperLU library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SuperLU
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       blas-devel
38 Obsoletes:      SuperLU-static
39
40 %description devel
41 Header files for SuperLU library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki SuperLU.
45
46 %package apidocs
47 Summary:        SuperLU API documentation
48 Summary(pl.UTF-8):      Dokumentacja API biblioteki SuperLU
49 Group:          Documentation
50 BuildArch:      noarch
51
52 %description apidocs
53 API documentation for SuperLU library.
54
55 %description apidocs -l pl.UTF-8
56 Dokumentacja API biblioteki SuperLU.
57
58 %prep
59 %setup -q -n superlu-%{version}
60 %patch0 -p1
61
62 %build
63 install -d build
64 cd build
65 # .pc file generation expects relative CMAKE_INSTALL_{INCLUDE,LIB}DIR
66 %cmake .. \
67         -DCMAKE_INSTALL_INCLUDEDIR=include/superlu \
68         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
69         -Denable_internal_blaslib=OFF
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} -C build install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc License.txt README
88 %attr(755,root,root) %{_libdir}/libsuperlu.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libsuperlu.so.5
90
91 %files devel
92 %defattr(644,root,root,755)
93 %doc DOC/ug.pdf
94 %attr(755,root,root) %{_libdir}/libsuperlu.so
95 %{_includedir}/superlu
96 %{_pkgconfigdir}/superlu.pc
97 %{_libdir}/cmake/superlu
98
99 %files apidocs
100 %defattr(644,root,root,755)
101 %doc DOC/html/*
This page took 0.064342 seconds and 4 git commands to generate.