]> git.pld-linux.org Git - packages/AMD.git/blob - AMD.spec
- updated to 2.3.0; switched to SuiteSparse_config
[packages/AMD.git] / AMD.spec
1 Summary:        AMD: Approximate Minimum Degree
2 Summary(pl.UTF-8):      AMD - przybliżony algorytm minimalnego stopnia
3 Name:           AMD
4 Version:        2.3.0
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.cise.ufl.edu/research/sparse/amd/%{name}-%{version}.tar.gz
9 # Source0-md5:  76f2a8a94d1ea071b622e07a0ee2de47
10 Patch0:         amd-ufconfig.patch
11 Patch1:         amd-shared.patch
12 URL:            http://www.cise.ufl.edu/research/sparse/amd/
13 BuildRequires:  SuiteSparse_config >= 4.0.0
14 BuildRequires:  libtool >= 2:1.5
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 AMD is a set of routines for ordering a sparse matrix prior to
19 Cholesky factorization (or for LU factorization with diagonal
20 pivoting). There are versions in both C and Fortran. A MATLAB
21 interface is provided. Note that this software has nothing to do with
22 AMD the company.
23
24 %description -l pl.UTF-8
25 AMD to zbiór procedur do porządkowania macierzy rzadkich przed
26 rozkładem Cholesky'ego (lub do rozkładu LU z obrotami diagonalnymi).
27 Istnieją wersje zarówno w C, jak i Fortranie. Dostępny jest interfejs
28 do MATLAB-a. Uwaga: to oprogramowanie nie ma nic wspólnego z firmą
29 AMD.
30
31 %package devel
32 Summary:        Header files for AMD library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki AMD
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       SuiteSparse_config >= 4.0.0
37
38 %description devel
39 Header files for AMD library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki AMD.
43
44 %package static
45 Summary:        Static AMD library
46 Summary(pl.UTF-8):      Statyczna biblioteka AMD
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static AMD library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka AMD.
55
56 %prep
57 %setup -q -n %{name}
58 %patch0 -p1
59 %patch1 -p1
60
61 %build
62 %{__make} \
63         CC="%{__cc}" \
64         CFLAGS="%{rpmcflags}" \
65         LDFLAGS="%{rpmldflags}" \
66         libdir=%{_libdir}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_includedir}/amd
71
72 %{__make} -C Lib install \
73         DESTDIR=$RPM_BUILD_ROOT \
74         libdir=%{_libdir}
75
76 install Include/*.h $RPM_BUILD_ROOT%{_includedir}/amd
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc README.txt Doc/{ChangeLog,License}
87 %attr(755,root,root) %{_libdir}/libamd.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libamd.so.0
89
90 %files devel
91 %defattr(644,root,root,755)
92 %doc Doc/AMD_UserGuide.pdf
93 %attr(755,root,root) %{_libdir}/libamd.so
94 %{_libdir}/libamd.la
95 %{_includedir}/amd
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libamd.a
This page took 0.061257 seconds and 3 git commands to generate.