]>
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 | 106 | ac_cv_lib_papi_main=no \ |
2989d096 | 107 | --disable-cxx-flags-preset \ |
93891d94 JB |
108 | %{?with_apidocs:--enable-doxygen --enable-html-docs} \ |
109 | --enable-serialization \ | |
110 | --enable-shared \ | |
06e1ad70 | 111 | --with-boost-libdir=%{_libdir} \ |
93891d94 JB |
112 | %{?with_tbb:--with-tbb} |
113 | ||
114 | %{__make} | |
115 | ||
116 | %{__make} -j1 info | |
3f8e6b53 | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
93891d94 | 120 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3f8e6b53 | 121 | |
93891d94 | 122 | %{__make} install install-info \ |
3f8e6b53 | 123 | DESTDIR=$RPM_BUILD_ROOT |
124 | ||
93891d94 JB |
125 | cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
126 | ||
127 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version} | |
128 | ||
129 | # obsoleted by pkg-config | |
130 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libblitz.la | |
3f8e6b53 | 131 | |
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
93891d94 JB |
138 | %post devel -p /sbin/postshell |
139 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
3f8e6b53 | 140 | |
93891d94 | 141 | %postun devel -p /sbin/postshell |
21a2fb49 | 142 | -/usr/sbin/fix-info-dir -c %{_infodir} |
3f8e6b53 | 143 | |
144 | %files | |
145 | %defattr(644,root,root,755) | |
93891d94 JB |
146 | %doc AUTHORS COPYRIGHT ChangeLog* LEGAL NEWS README.md |
147 | %attr(755,root,root) %{_libdir}/libblitz.so.*.*.* | |
148 | %attr(755,root,root) %ghost %{_libdir}/libblitz.so.0 | |
3f8e6b53 | 149 | |
150 | %files devel | |
151 | %defattr(644,root,root,755) | |
93891d94 | 152 | %attr(755,root,root) %{_libdir}/libblitz.so |
3f8e6b53 | 153 | %{_includedir}/blitz |
154 | %{_includedir}/random | |
155 | %{_pkgconfigdir}/blitz.pc | |
93891d94 | 156 | %{_infodir}/blitz.info* |
3f8e6b53 | 157 | |
158 | %files static | |
159 | %defattr(644,root,root,755) | |
93891d94 | 160 | %{_libdir}/libblitz.a |
3f8e6b53 | 161 | |
93891d94 | 162 | %if %{with apidocs} |
3f8e6b53 | 163 | %files doc |
164 | %defattr(644,root,root,755) | |
93891d94 JB |
165 | %doc doc/doxygen/html/{search,*.css,*.html,*.js,*.png} |
166 | %endif | |
3f8e6b53 | 167 | |
168 | %files examples | |
169 | %defattr(644,root,root,755) | |
93891d94 | 170 | %{_examplesdir}/%{name}-%{version} |