]> git.pld-linux.org Git - packages/blitz.git/blob - blitz.spec
- converted to UTF-8
[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.8
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:  358cdd8716de5d615f91df660f1c92d9
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:  libstdc++-devel
18 BuildRequires:  libtool >= 2:1.5
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
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.
32
33 %package devel
34 Summary:        Header files for Blitz++ library
35 Summary(pl.UTF-8):   Pliki nagłówkowe biblioteki Blitz++
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for Blitz++ library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki Blitz++.
44
45 %package static
46 Summary:        Static Blitz++ library
47 Summary(pl.UTF-8):   Statyczna biblioteka Blitz++
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static Blitz++ library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka Blitz++.
56
57 %package doc
58 Summary:        Documentation for Blitz++ library
59 Summary(pl.UTF-8):   Dokumentacja Blitz++
60 Group:          Documentation
61
62 %description doc
63 Documentation for Blitz++ library.
64
65 %description static -l pl.UTF-8
66 Dokumentacja biblioteki Blitz++.
67
68 %package examples
69 Summary:        Examples for Blitz++ library
70 Summary(pl.UTF-8):   Przykłady Blitz++
71 Group:          Documentation
72
73 %description examples
74 Examples for Blitz++ library.
75
76 %description examples -l pl.UTF-8
77 Przykłady Blitz++.
78
79 %prep
80 %setup -q
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84
85 %build
86 %{__libtoolize}
87 %{__aclocal} -I m4
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --enable-shared
93 %{__make} lib
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-doc-%{version}/doxygen,%{_examplesdir}/%{name}}
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
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}
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
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)
138 %{_docdir}/%{name}-doc-%{version}
139
140 %files examples
141 %defattr(644,root,root,755)
142 %{_examplesdir}/%{name}
This page took 0.118168 seconds and 4 git commands to generate.