]>
Commit | Line | Data |
---|---|---|
3f8e6b53 | 1 | Summary: Blitz++ - a C++ class library for scientific computing |
910888e5 | 2 | Summary(pl.UTF-8): Blitz++ - biblioteka klas C++ do obliczeń naukowych |
3f8e6b53 | 3 | Name: blitz |
24e749ab | 4 | Version: 0.9 |
3f8e6b53 | 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 |
24e749ab | 9 | # Source0-md5: 031df2816c73e2d3bd6d667bbac19eca |
3f8e6b53 | 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 |
24e749ab | 17 | BuildRequires: fonts-TTF-bitstream-vera |
3f8e6b53 | 18 | BuildRequires: libstdc++-devel |
03d06468 | 19 | BuildRequires: libtool >= 2:1.5 |
3f8e6b53 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Blitz++ is a C++ class library for scientific computing which provides | |
24 | performance on par with Fortran 77/90. It uses template techniques to | |
25 | achieve high performance. The current versions provide dense arrays | |
26 | and vectors, random number generators, and small vectors and matrices. | |
27 | ||
37b9a6a3 JR |
28 | %description -l pl.UTF-8 |
29 | Blitz++ jest biblioteką klas C++ do obliczeń naukowych o wydajności | |
30 | dorównującej Fortranowi 77/90. Do osiągnięcia dużej wydajności używa | |
31 | rozwiązań opartych na szablonach. Dostarcza gęstych tablic i wektorów, | |
32 | generatorów liczb losowych oraz małych wektorów i macierzy. | |
3f8e6b53 | 33 | |
34 | %package devel | |
35 | Summary: Header files for Blitz++ library | |
910888e5 | 36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Blitz++ |
3f8e6b53 | 37 | Group: Development/Libraries |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for Blitz++ library. | |
42 | ||
37b9a6a3 JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe biblioteki Blitz++. | |
3f8e6b53 | 45 | |
46 | %package static | |
47 | Summary: Static Blitz++ library | |
910888e5 | 48 | Summary(pl.UTF-8): Statyczna biblioteka Blitz++ |
3f8e6b53 | 49 | Group: Development/Libraries |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static Blitz++ library. | |
54 | ||
37b9a6a3 | 55 | %description static -l pl.UTF-8 |
3f8e6b53 | 56 | Statyczna biblioteka Blitz++. |
57 | ||
58 | %package doc | |
59 | Summary: Documentation for Blitz++ library | |
910888e5 | 60 | Summary(pl.UTF-8): Dokumentacja Blitz++ |
f4ca7292 | 61 | Group: Documentation |
3f8e6b53 | 62 | |
63 | %description doc | |
64 | Documentation for Blitz++ library. | |
65 | ||
859abcb7 | 66 | %description doc -l pl.UTF-8 |
8902f03a | 67 | Dokumentacja biblioteki Blitz++. |
3f8e6b53 | 68 | |
69 | %package examples | |
70 | Summary: Examples for Blitz++ library | |
910888e5 | 71 | Summary(pl.UTF-8): Przykłady Blitz++ |
f4ca7292 | 72 | Group: Documentation |
3f8e6b53 | 73 | |
74 | %description examples | |
75 | Examples for Blitz++ library. | |
76 | ||
37b9a6a3 JR |
77 | %description examples -l pl.UTF-8 |
78 | Przykłady Blitz++. | |
3f8e6b53 | 79 | |
80 | %prep | |
81 | %setup -q | |
82 | %patch0 -p1 | |
24e749ab | 83 | #%patch1 -p1 |
0d5049b4 | 84 | %patch2 -p1 |
3f8e6b53 | 85 | |
86 | %build | |
87 | %{__libtoolize} | |
88 | %{__aclocal} -I m4 | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
03d06468 JB |
92 | %configure \ |
93 | --enable-shared | |
3f8e6b53 | 94 | %{__make} lib |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
03d06468 | 98 | install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-doc-%{version}/doxygen,%{_examplesdir}/%{name}} |
3f8e6b53 | 99 | |
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
03d06468 | 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 | |
21a2fb49 ER |
115 | %postun devel -p /sbin/postshell |
116 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
3f8e6b53 | 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.*.*.* | |
24e749ab | 122 | %{_pkgconfigdir}/blitz-uninstalled.pc |
3f8e6b53 | 123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_libdir}/lib*.so | |
127 | %{_libdir}/lib*.la | |
128 | %{_includedir}/blitz | |
129 | %{_includedir}/random | |
130 | %{_pkgconfigdir}/blitz.pc | |
131 | %{_infodir}/*.info* | |
132 | ||
133 | %files static | |
134 | %defattr(644,root,root,755) | |
135 | %{_libdir}/lib*.a | |
136 | ||
137 | %files doc | |
138 | %defattr(644,root,root,755) | |
03d06468 | 139 | %{_docdir}/%{name}-doc-%{version} |
3f8e6b53 | 140 | |
141 | %files examples | |
142 | %defattr(644,root,root,755) | |
143 | %{_examplesdir}/%{name} |