]> git.pld-linux.org Git - packages/blitz.git/blob - blitz.spec
- %description for correct %package
[packages/blitz.git] / blitz.spec
1 Summary:        Blitz++ - a C++ class library for scientific computing
2 Summary(pl.UTF-8):      Blitz++ - biblioteka klas C++ do obliczeń naukowych
3 Name:           blitz
4 Version:        0.9
5 Release:        0.1
6 License:        GPL or Blitz artistic license
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/blitz/%{name}-%{version}.tar.gz
9 # Source0-md5:  031df2816c73e2d3bd6d667bbac19eca
10 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-compiler_specific_header.patch
12 Patch2:         %{name}-infopage.patch
13 URL:            http://www.oonumerics.org/blitz/
14 BuildRequires:  autoconf >= 2.59
15 BuildRequires:  automake
16 BuildRequires:  doxygen
17 BuildRequires:  fonts-TTF-bitstream-vera
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool >= 2:1.5
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
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.
33
34 %package devel
35 Summary:        Header files for Blitz++ library
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Blitz++
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 Header files for Blitz++ library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki Blitz++.
45
46 %package static
47 Summary:        Static Blitz++ library
48 Summary(pl.UTF-8):      Statyczna biblioteka Blitz++
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static Blitz++ library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka Blitz++.
57
58 %package doc
59 Summary:        Documentation for Blitz++ library
60 Summary(pl.UTF-8):      Dokumentacja Blitz++
61 Group:          Documentation
62
63 %description doc
64 Documentation for Blitz++ library.
65
66 %description doc -l pl.UTF-8
67 Dokumentacja biblioteki Blitz++.
68
69 %package examples
70 Summary:        Examples for Blitz++ library
71 Summary(pl.UTF-8):      Przykłady Blitz++
72 Group:          Documentation
73
74 %description examples
75 Examples for Blitz++ library.
76
77 %description examples -l pl.UTF-8
78 Przykłady Blitz++.
79
80 %prep
81 %setup -q
82 %patch0 -p1
83 #%patch1 -p1
84 %patch2 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal} -I m4
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --enable-shared
94 %{__make} lib
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-doc-%{version}/doxygen,%{_examplesdir}/%{name}}
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
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
113 %{__sed} -i -e 's/(blitz++)\./(blitz)./' %{_infodir}/dir
114
115 %postun devel   -p      /sbin/postshell
116 -/usr/sbin/fix-info-dir -c %{_infodir}
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 %{_pkgconfigdir}/blitz-uninstalled.pc
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)
139 %{_docdir}/%{name}-doc-%{version}
140
141 %files examples
142 %defattr(644,root,root,755)
143 %{_examplesdir}/%{name}
This page took 0.056171 seconds and 3 git commands to generate.