]> git.pld-linux.org Git - packages/AMD.git/blob - AMD.spec
- standard split for -fortran* (added -devel subpackage)
[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.1
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:  ee402611aa672257752611cfac10d7cd
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:  gcc-fortran
15 BuildRequires:  libtool >= 2:1.5
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 AMD is a set of routines for ordering a sparse matrix prior to
20 Cholesky factorization (or for LU factorization with diagonal
21 pivoting). There are versions in both C and Fortran. A MATLAB
22 interface is provided. Note that this software has nothing to do with
23 AMD the company.
24
25 %description -l pl.UTF-8
26 AMD to zbiór procedur do porządkowania macierzy rzadkich przed
27 rozkładem Cholesky'ego (lub do rozkładu LU z obrotami diagonalnymi).
28 Istnieją wersje zarówno w C, jak i Fortranie. Dostępny jest interfejs
29 do MATLAB-a. Uwaga: to oprogramowanie nie ma nic wspólnego z firmą
30 AMD.
31
32 %package devel
33 Summary:        Header files for AMD library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki AMD
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       SuiteSparse_config >= 4.0.0
38
39 %description devel
40 Header files for AMD library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki AMD.
44
45 %package static
46 Summary:        Static AMD library
47 Summary(pl.UTF-8):      Statyczna biblioteka AMD
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static AMD library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka AMD.
56
57 %package fortran
58 Summary:        Fortran version of AMD library
59 Summary(pl.UTF-8):      Wersja biblioteki AMD dla programów w Fortranie
60 Group:          Libraries
61
62 %description fortran
63 Fortran version of AMD library.
64
65 %description fortran -l pl.UTF-8
66 Wersja biblioteki AMD dla programów napisanych w Fortranie.
67
68 %package fortran-devel
69 Summary:        Fortran version of AMD library - development files
70 Summary(pl.UTF-8):      Wersja biblioteki AMD dla programów w Fortranie - pliki programistyczne
71 Group:          Development/Libraries
72 Requires:       %{name}-fortran = %{version}-%{release}
73
74 %description fortran-devel
75 Fortran version of AMD library - development files.
76
77 %description fortran-devel -l pl.UTF-8
78 Wersja biblioteki AMD dla programów w Fortranie - pliki
79 programistyczne.
80
81 %package fortran-static
82 Summary:        Fortran version of AMD static library
83 Summary(pl.UTF-8):      Wersja statycznej biblioteki AMD dla programów w Fortranie
84 Group:          Development/Libraries
85 Requires:       %{name}-fortran-devel = %{version}-%{release}
86
87 %description fortran-static
88 Fortran version of AMD static library.
89
90 %description fortran-static -l pl.UTF-8
91 Wersja statycznej biblioteki AMD dla programów napisanych w Fortranie.
92
93 %prep
94 %setup -q -n %{name}
95 %patch0 -p1
96 %patch1 -p1
97
98 %build
99 %{__make} \
100         CC="%{__cc}" \
101         CFLAGS="%{rpmcflags}" \
102         LDFLAGS="%{rpmldflags}" \
103         libdir=%{_libdir}
104
105 %{__make} fortran \
106         CC="%{__cc}" \
107         CFLAGS="%{rpmcflags}" \
108         LDFLAGS="%{rpmldflags}" \
109         libdir=%{_libdir}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT%{_includedir}/amd
114
115 %{__make} -C Lib install install-fortran \
116         DESTDIR=$RPM_BUILD_ROOT \
117         libdir=%{_libdir}
118
119 install Include/*.h $RPM_BUILD_ROOT%{_includedir}/amd
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %files
128 %defattr(644,root,root,755)
129 %doc README.txt Doc/{ChangeLog,License}
130 %attr(755,root,root) %{_libdir}/libamd.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libamd.so.0
132
133 %files devel
134 %defattr(644,root,root,755)
135 %doc Doc/AMD_UserGuide.pdf
136 %attr(755,root,root) %{_libdir}/libamd.so
137 %{_libdir}/libamd.la
138 %{_includedir}/amd
139
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/libamd.a
143
144 %files fortran
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/libamdf77.so.*.*.*
147 %attr(755,root,root) %ghost %{_libdir}/libamdf77.so.0
148
149 %files fortran-devel
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/libamdf77.so
152 %{_libdir}/libamdf77.la
153
154 %files fortran-static
155 %defattr(644,root,root,755)
156 %{_libdir}/libamdf77.a
This page took 0.634481 seconds and 3 git commands to generate.