]>
Commit | Line | Data |
---|---|---|
1 | Summary: SuiteSparse_config development files | |
2 | Summary(pl.UTF-8): Pliki programistyczne SuiteSparse_config | |
3 | Name: SuiteSparse_config | |
4 | Version: 4.1.0 | |
5 | Release: 1 | |
6 | License: no restrictions | |
7 | Group: Development | |
8 | Source0: http://www.cise.ufl.edu/research/sparse/UFconfig/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: af1060a2bdd312571e065dab29cbbb70 | |
10 | Patch0: %{name}-config.patch | |
11 | Patch1: %{name}-shared.patch | |
12 | URL: http://www.cise.ufl.edu/research/sparse/UFconfig/ | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | SuiteSparse_config is required by nearly all sparse matrix packages | |
17 | that are authored by Timothy A. Davis. | |
18 | ||
19 | Before version 4, SuiteSparse_config used to be named UFconfig. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | SuiteSparse_config jest wymagany przez prawie wszystkie pakiety do | |
23 | obliczeń na macierzach rzadkich autorstwa Timothy'ego A. Davisa. | |
24 | ||
25 | SuiteSparse_concig przed wersją 4 nazywał się UFconfig. | |
26 | ||
27 | %package libs | |
28 | Summary: SuiteSparse_config shared library | |
29 | Summary(pl.UTF-8): Biblioteka współdzielona SuiteSparse_config | |
30 | Group: Libraries | |
31 | ||
32 | %description libs | |
33 | SuiteSparse_config shared library, containing malloc/free wrappers. | |
34 | ||
35 | %description libs -l pl.UTF-8 | |
36 | Biblioteka współdzielona SuiteSparse_config, zawierająca funkcje | |
37 | obudowujące malloc/free. | |
38 | ||
39 | %package devel | |
40 | Summary: Development files for SuiteSparse_config library | |
41 | Summary(pl.UTF-8): Pliki programistyczne biblioteki SuiteSparse_config | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: %{name}-libs = %{version}-%{release} | |
45 | ||
46 | %description devel | |
47 | Development files for SuiteSparse_config library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki programistyczne biblioteki SuiteSparse_config. | |
51 | ||
52 | %package static | |
53 | Summary: SuiteSparse_config static library | |
54 | Summary(pl.UTF-8): Biblioteka statyczna SuiteSparse_config | |
55 | Group: Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | SuiteSparse_config static library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Biblioteka statyczna SuiteSparse_config. | |
63 | ||
64 | %prep | |
65 | %setup -q -n %{name} | |
66 | %patch0 -p1 | |
67 | %patch1 -p1 | |
68 | ||
69 | %build | |
70 | %{__make} \ | |
71 | CC="%{__cc}" \ | |
72 | CFLAGS="%{rpmcflags}" \ | |
73 | LDFLAGS="%{rpmldflags}" \ | |
74 | INSTALL_LIB=%{_libdir} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_datadir}/misc} | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT \ | |
82 | INSTALL_LIB=%{_libdir} | |
83 | ||
84 | cp -a SuiteSparse_config.mk $RPM_BUILD_ROOT%{_datadir}/misc | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post libs -p /sbin/ldconfig | |
90 | %postun libs -p /sbin/ldconfig | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc README.txt | |
95 | %{_includedir}/SuiteSparse_config.h | |
96 | %{_datadir}/misc/SuiteSparse_config.mk | |
97 | ||
98 | %files libs | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_libdir}/libsuitesparseconfig.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libsuitesparseconfig.so.0 | |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_libdir}/libsuitesparseconfig.so | |
106 | %{_libdir}/libsuitesparseconfig.la | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libsuitesparseconfig.a |