]>
Commit | Line | Data |
---|---|---|
3f8e6b53 | 1 | Summary: Blitz++ - a C++ class library for scientific computing |
37b9a6a3 | 2 | Summary(pl.UTF-8): Blitz++ - biblioteka klas C++ do obliczeń naukowych |
3f8e6b53 | 3 | Name: blitz |
4 | Version: 0.8 | |
5 | Release: 0.1 | |
03d06468 | 6 | License: GPL or Blitz artistic license |
3f8e6b53 | 7 | Group: Libraries |
03d06468 | 8 | Source0: http://dl.sourceforge.net/blitz/%{name}-%{version}.tar.gz |
3f8e6b53 | 9 | # Source0-md5: 358cdd8716de5d615f91df660f1c92d9 |
10 | Patch0: %{name}-DESTDIR.patch | |
e151c6a2 | 11 | Patch1: %{name}-compiler_specific_header.patch |
0d5049b4 | 12 | Patch2: %{name}-infopage.patch |
3f8e6b53 | 13 | URL: http://www.oonumerics.org/blitz/ |
14 | BuildRequires: autoconf >= 2.59 | |
15 | BuildRequires: automake | |
3f8e6b53 | 16 | BuildRequires: doxygen |
17 | BuildRequires: libstdc++-devel | |
03d06468 | 18 | BuildRequires: libtool >= 2:1.5 |
3f8e6b53 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Blitz++ is a C++ class library for scientific computing which provides | |
23 | performance on par with Fortran 77/90. It uses template techniques to | |
24 | achieve high performance. The current versions provide dense arrays | |
25 | and vectors, random number generators, and small vectors and matrices. | |
26 | ||
37b9a6a3 JR |
27 | %description -l pl.UTF-8 |
28 | Blitz++ jest biblioteką klas C++ do obliczeń naukowych o wydajności | |
29 | dorównującej Fortranowi 77/90. Do osiągnięcia dużej wydajności używa | |
30 | rozwiązań opartych na szablonach. Dostarcza gęstych tablic i wektorów, | |
31 | generatorów liczb losowych oraz małych wektorów i macierzy. | |
3f8e6b53 | 32 | |
33 | %package devel | |
34 | Summary: Header files for Blitz++ library | |
37b9a6a3 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Blitz++ |
3f8e6b53 | 36 | Group: Development/Libraries |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for Blitz++ library. | |
41 | ||
37b9a6a3 JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe biblioteki Blitz++. | |
3f8e6b53 | 44 | |
45 | %package static | |
46 | Summary: Static Blitz++ library | |
37b9a6a3 | 47 | Summary(pl.UTF-8): Statyczna biblioteka Blitz++ |
3f8e6b53 | 48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static Blitz++ library. | |
53 | ||
37b9a6a3 | 54 | %description static -l pl.UTF-8 |
3f8e6b53 | 55 | Statyczna biblioteka Blitz++. |
56 | ||
57 | %package doc | |
58 | Summary: Documentation for Blitz++ library | |
37b9a6a3 | 59 | Summary(pl.UTF-8): Dokumentacja Blitz++ |
f4ca7292 | 60 | Group: Documentation |
3f8e6b53 | 61 | |
62 | %description doc | |
63 | Documentation for Blitz++ library. | |
64 | ||
37b9a6a3 | 65 | %description static -l pl.UTF-8 |
8902f03a | 66 | Dokumentacja biblioteki Blitz++. |
3f8e6b53 | 67 | |
68 | %package examples | |
69 | Summary: Examples for Blitz++ library | |
37b9a6a3 | 70 | Summary(pl.UTF-8): Przykłady Blitz++ |
f4ca7292 | 71 | Group: Documentation |
3f8e6b53 | 72 | |
73 | %description examples | |
74 | Examples for Blitz++ library. | |
75 | ||
37b9a6a3 JR |
76 | %description examples -l pl.UTF-8 |
77 | Przykłady Blitz++. | |
3f8e6b53 | 78 | |
79 | %prep | |
80 | %setup -q | |
81 | %patch0 -p1 | |
e151c6a2 | 82 | %patch1 -p1 |
0d5049b4 | 83 | %patch2 -p1 |
3f8e6b53 | 84 | |
85 | %build | |
86 | %{__libtoolize} | |
87 | %{__aclocal} -I m4 | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
03d06468 JB |
91 | %configure \ |
92 | --enable-shared | |
3f8e6b53 | 93 | %{__make} lib |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
03d06468 | 97 | install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-doc-%{version}/doxygen,%{_examplesdir}/%{name}} |
3f8e6b53 | 98 | |
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
03d06468 JB |
102 | cp -af $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{*.*,doxygen} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version} |
103 | cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name} | |
3f8e6b53 | 104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %post devel | |
112 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
e151c6a2 | 113 | %{__sed} -i -e 's/(blitz++)\./(blitz)./' %{_infodir}/dir |
3f8e6b53 | 114 | |
115 | %postun devel | |
116 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS ChangeLog ChangeLog.1 LEGAL LICENSE NEWS README TODO | |
121 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
122 | ||
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_libdir}/lib*.so | |
126 | %{_libdir}/lib*.la | |
127 | %{_includedir}/blitz | |
128 | %{_includedir}/random | |
129 | %{_pkgconfigdir}/blitz.pc | |
130 | %{_infodir}/*.info* | |
131 | ||
132 | %files static | |
133 | %defattr(644,root,root,755) | |
134 | %{_libdir}/lib*.a | |
135 | ||
136 | %files doc | |
137 | %defattr(644,root,root,755) | |
03d06468 | 138 | %{_docdir}/%{name}-doc-%{version} |
3f8e6b53 | 139 | |
140 | %files examples | |
141 | %defattr(644,root,root,755) | |
142 | %{_examplesdir}/%{name} |