]>
Commit | Line | Data |
---|---|---|
93891d94 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # Doxygen API documentation | |
4 | %bcond_with tbb # Intel Threading Building Blocks atomic types | |
5 | ||
3f8e6b53 | 6 | Summary: Blitz++ - a C++ class library for scientific computing |
910888e5 | 7 | Summary(pl.UTF-8): Blitz++ - biblioteka klas C++ do obliczeń naukowych |
3f8e6b53 | 8 | Name: blitz |
93891d94 JB |
9 | Version: 1.0.2 |
10 | Release: 1 | |
11 | License: Artistic v2.0, BSD or LGPL v3 | |
3f8e6b53 | 12 | Group: Libraries |
93891d94 JB |
13 | #Source0Download: https://github.com/blitzpp/blitz/releases |
14 | Source0: https://github.com/blitzpp/blitz/archive/%{version}/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 195873ba25ae4c10b9cd374bf42c67c2 | |
3f8e6b53 | 16 | Patch0: %{name}-DESTDIR.patch |
93891d94 | 17 | Patch1: %{name}-doc.patch |
0d5049b4 | 18 | Patch2: %{name}-infopage.patch |
93891d94 | 19 | URL: https://github.com/blitzpp/blitz/wiki/ |
3f8e6b53 | 20 | BuildRequires: autoconf >= 2.59 |
93891d94 JB |
21 | BuildRequires: automake >= 1:1.9 |
22 | BuildRequires: blas-devel | |
23 | BuildRequires: boost-devel | |
3f8e6b53 | 24 | BuildRequires: doxygen |
24e749ab | 25 | BuildRequires: fonts-TTF-bitstream-vera |
93891d94 | 26 | BuildRequires: gcc-fortran |
3f8e6b53 | 27 | BuildRequires: libstdc++-devel |
03d06468 | 28 | BuildRequires: libtool >= 2:1.5 |
93891d94 JB |
29 | %{?with_tbb:BuildRequires: tbb-devel} |
30 | BuildRequires: texinfo | |
3f8e6b53 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | Blitz++ is a C++ class library for scientific computing which provides | |
35 | performance on par with Fortran 77/90. It uses template techniques to | |
36 | achieve high performance. The current versions provide dense arrays | |
37 | and vectors, random number generators, and small vectors and matrices. | |
38 | ||
37b9a6a3 JR |
39 | %description -l pl.UTF-8 |
40 | Blitz++ jest biblioteką klas C++ do obliczeń naukowych o wydajności | |
41 | dorównującej Fortranowi 77/90. Do osiągnięcia dużej wydajności używa | |
42 | rozwiązań opartych na szablonach. Dostarcza gęstych tablic i wektorów, | |
43 | generatorów liczb losowych oraz małych wektorów i macierzy. | |
3f8e6b53 | 44 | |
45 | %package devel | |
46 | Summary: Header files for Blitz++ library | |
910888e5 | 47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Blitz++ |
3f8e6b53 | 48 | Group: Development/Libraries |
49 | Requires: %{name} = %{version}-%{release} | |
93891d94 | 50 | Requires: libstdc++-devel |
3f8e6b53 | 51 | |
52 | %description devel | |
53 | Header files for Blitz++ library. | |
54 | ||
37b9a6a3 JR |
55 | %description devel -l pl.UTF-8 |
56 | Pliki nagłówkowe biblioteki Blitz++. | |
3f8e6b53 | 57 | |
58 | %package static | |
59 | Summary: Static Blitz++ library | |
910888e5 | 60 | Summary(pl.UTF-8): Statyczna biblioteka Blitz++ |
3f8e6b53 | 61 | Group: Development/Libraries |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static Blitz++ library. | |
66 | ||
37b9a6a3 | 67 | %description static -l pl.UTF-8 |
3f8e6b53 | 68 | Statyczna biblioteka Blitz++. |
69 | ||
70 | %package doc | |
71 | Summary: Documentation for Blitz++ library | |
910888e5 | 72 | Summary(pl.UTF-8): Dokumentacja Blitz++ |
f4ca7292 | 73 | Group: Documentation |
3f8e6b53 | 74 | |
75 | %description doc | |
76 | Documentation for Blitz++ library. | |
77 | ||
859abcb7 | 78 | %description doc -l pl.UTF-8 |
8902f03a | 79 | Dokumentacja biblioteki Blitz++. |
3f8e6b53 | 80 | |
81 | %package examples | |
82 | Summary: Examples for Blitz++ library | |
910888e5 | 83 | Summary(pl.UTF-8): Przykłady Blitz++ |
f4ca7292 | 84 | Group: Documentation |
3f8e6b53 | 85 | |
86 | %description examples | |
87 | Examples for Blitz++ library. | |
88 | ||
37b9a6a3 JR |
89 | %description examples -l pl.UTF-8 |
90 | Przykłady Blitz++. | |
3f8e6b53 | 91 | |
92 | %prep | |
93 | %setup -q | |
94 | %patch0 -p1 | |
93891d94 | 95 | %patch1 -p1 |
0d5049b4 | 96 | %patch2 -p1 |
3f8e6b53 | 97 | |
98 | %build | |
99 | %{__libtoolize} | |
100 | %{__aclocal} -I m4 | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
93891d94 | 104 | # here papi is ptools-perfapi library, not the one from papi.spec |
03d06468 | 105 | %configure \ |
93891d94 JB |
106 | ac_cv_lib_papi_main=no \ |
107 | %{?with_apidocs:--enable-doxygen --enable-html-docs} \ | |
108 | --enable-serialization \ | |
109 | --enable-shared \ | |
06e1ad70 | 110 | --with-boost-libdir=%{_libdir} \ |
93891d94 JB |
111 | %{?with_tbb:--with-tbb} |
112 | ||
113 | %{__make} | |
114 | ||
115 | %{__make} -j1 info | |
3f8e6b53 | 116 | |
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
93891d94 | 119 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3f8e6b53 | 120 | |
93891d94 | 121 | %{__make} install install-info \ |
3f8e6b53 | 122 | DESTDIR=$RPM_BUILD_ROOT |
123 | ||
93891d94 JB |
124 | cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
125 | ||
126 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version} | |
127 | ||
128 | # obsoleted by pkg-config | |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libblitz.la | |
3f8e6b53 | 130 | |
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %post -p /sbin/ldconfig | |
135 | %postun -p /sbin/ldconfig | |
136 | ||
93891d94 JB |
137 | %post devel -p /sbin/postshell |
138 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
3f8e6b53 | 139 | |
93891d94 | 140 | %postun devel -p /sbin/postshell |
21a2fb49 | 141 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3f8e6b53 | 142 | |
143 | %files | |
144 | %defattr(644,root,root,755) | |
93891d94 JB |
145 | %doc AUTHORS COPYRIGHT ChangeLog* LEGAL NEWS README.md |
146 | %attr(755,root,root) %{_libdir}/libblitz.so.*.*.* | |
147 | %attr(755,root,root) %ghost %{_libdir}/libblitz.so.0 | |
3f8e6b53 | 148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
93891d94 | 151 | %attr(755,root,root) %{_libdir}/libblitz.so |
3f8e6b53 | 152 | %{_includedir}/blitz |
153 | %{_includedir}/random | |
154 | %{_pkgconfigdir}/blitz.pc | |
93891d94 | 155 | %{_infodir}/blitz.info* |
3f8e6b53 | 156 | |
157 | %files static | |
158 | %defattr(644,root,root,755) | |
93891d94 | 159 | %{_libdir}/libblitz.a |
3f8e6b53 | 160 | |
93891d94 | 161 | %if %{with apidocs} |
3f8e6b53 | 162 | %files doc |
163 | %defattr(644,root,root,755) | |
93891d94 JB |
164 | %doc doc/doxygen/html/{search,*.css,*.html,*.js,*.png} |
165 | %endif | |
3f8e6b53 | 166 | |
167 | %files examples | |
168 | %defattr(644,root,root,755) | |
93891d94 | 169 | %{_examplesdir}/%{name}-%{version} |