]>
Commit | Line | Data |
---|---|---|
3ac65767 JB |
1 | Summary: QRupdate - library for fast updating of QR and Cholesky decompositions |
2 | Summary(pl.UTF-8): QRupdate - biblioteka do szybkiego uaktualniania rozkładów QR i Cholesky'ego | |
3 | Name: qrupdate | |
6bb225e6 | 4 | Version: 1.1.2 |
735aa781 | 5 | Release: 2 |
3ac65767 JB |
6 | License: GPL v3+ |
7 | Group: Libraries | |
8 | Source0: http://downloads.sourceforge.net/qrupdate/%{name}-%{version}.tar.gz | |
6bb225e6 | 9 | # Source0-md5: 6d073887c6e858c24aeda5b54c57a8c4 |
8fd40d84 | 10 | Patch0: make_jn.patch |
3ac65767 JB |
11 | URL: http://qrupdate.sourceforge.net/ |
12 | BuildRequires: blas-devel | |
13 | BuildRequires: gcc-fortran | |
14 | BuildRequires: lapack-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | QRupdate is a library for fast updating of QR and Cholesky | |
19 | decompositions. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | QRupdate to biblioteka do szybkiego uaktualniania rozkładów QR i | |
23 | Cholesky'ego | |
24 | ||
25 | %package devel | |
26 | Summary: Development files for QRupdate library | |
27 | Summary(pl.UTF-8): Pliki programistyczne biblioteki QRupdate | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Development files for QRupdate library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki programistyczne biblioteki QRupdate. | |
36 | ||
37 | %package static | |
38 | Summary: Static QRupdate library | |
39 | Summary(pl.UTF-8): Statyczna biblioteka QRupdate | |
40 | Group: Development/Libraries | |
41 | Requires: blas-devel | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | Requires: lapack-devel | |
44 | ||
45 | %description static | |
46 | Static QRupdate library. | |
47 | ||
48 | %description static -l pl.UTF-8 | |
49 | Statyczna biblioteka QRupdate. | |
50 | ||
51 | %prep | |
52 | %setup -q | |
8fd40d84 | 53 | %patch0 -p1 |
3ac65767 JB |
54 | |
55 | %build | |
6bb225e6 | 56 | %{__make} lib \ |
8fd40d84 SS |
57 | FC=gfortran \ |
58 | FFLAGS="%{rpmcflags}" \ | |
59 | BLAS="%{rpmldflags} -lblas" | |
6bb225e6 | 60 | %{__make} solib \ |
3ac65767 JB |
61 | FC=gfortran \ |
62 | FFLAGS="%{rpmcflags}" \ | |
63 | BLAS="%{rpmldflags} -lblas" | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT \ | |
70 | PREFIX=%{_prefix} \ | |
71 | LIBDIR=%{_lib} | |
72 | ||
73 | # let rpm autodeps work | |
74 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/libqrupdate.so.*.* | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc ChangeLog README | |
85 | %attr(755,root,root) %{_libdir}/libqrupdate.so.*.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/libqrupdate.so.1 | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/libqrupdate.so | |
91 | ||
92 | %files static | |
93 | %defattr(644,root,root,755) | |
94 | %{_libdir}/libqrupdate.a |