]> git.pld-linux.org Git - packages/blitz.git/blob - blitz.spec
- improved pl desc, simplified
[packages/blitz.git] / blitz.spec
1 Summary:        Blitz++ - a C++ class library for scientific computing
2 Summary(pl):    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 URL:            http://www.oonumerics.org/blitz/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake
14 BuildRequires:  doxygen
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  libtool >= 2:1.5
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Blitz++ is a C++ class library for scientific computing which provides
21 performance on par with Fortran 77/90. It uses template techniques to
22 achieve high performance. The current versions provide dense arrays
23 and vectors, random number generators, and small vectors and matrices.
24
25 %description -l pl
26 Blitz++ jest bibliotek± klas C++ do obliczeñ naukowych o wydajno¶ci
27 dorównuj±cej Fortranowi 77/90. Do osi±gniêcia du¿ej wydajno¶ci u¿ywa
28 rozwi±zañ opartych na szablonach. Dostarcza gêstych tablic i wektorów,
29 generatorów liczb losowych oraz ma³ych wektorów i macierzy.
30
31 %package devel
32 Summary:        Header files for Blitz++ library
33 Summary(pl):    Pliki nag³ówkowe biblioteki Blitz++
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 Header files for Blitz++ library.
39
40 %description devel -l pl
41 Pliki nag³ówkowe biblioteki Blitz++.
42
43 %package static
44 Summary:        Static Blitz++ library
45 Summary(pl):    Statyczna biblioteka Blitz++
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static Blitz++ library.
51
52 %description static -l pl
53 Statyczna biblioteka Blitz++.
54
55 %package doc
56 Summary:        Documentation for Blitz++ library
57 Summary(pl):    Dokumentacja Blitz++
58 Group:          Documentation   
59
60 %description doc
61 Documentation for Blitz++ library.
62
63 %description static -l pl
64 Dokumentacja bibliotekiBlitz++.
65
66 %package examples
67 Summary:        Examples for Blitz++ library
68 Summary(pl):    Przyk³ady Blitz++
69 Group:          Documentation   
70
71 %description examples
72 Examples for Blitz++ library.
73
74 %description examples -l pl
75 Przyk³ady Blitz++.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80
81 %build
82 %{__libtoolize}
83 %{__aclocal} -I m4
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         --enable-shared
89 %{__make} lib
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT{%{_docdir}/%{name}-doc-%{version}/doxygen,%{_examplesdir}/%{name}}
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 cp -af $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{*.*,doxygen} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}
99 cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %post devel
108 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
109
110 %postun devel
111 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
112
113 %files
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog ChangeLog.1 LEGAL LICENSE NEWS README TODO
116 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/lib*.so
121 %{_libdir}/lib*.la
122 %{_includedir}/blitz
123 %{_includedir}/random
124 %{_pkgconfigdir}/blitz.pc
125 %{_infodir}/*.info*
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/lib*.a
130
131 %files doc
132 %defattr(644,root,root,755)
133 %{_docdir}/%{name}-doc-%{version}
134
135 %files examples
136 %defattr(644,root,root,755)
137 %{_examplesdir}/%{name}
This page took 0.060398 seconds and 4 git commands to generate.