]> git.pld-linux.org Git - packages/blitz.git/blob - blitz.spec
- new
[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 the Blitz artistic license at your choice.
7 Group:          Libraries
8 Source0:        http://mesh.dl.sourceforge.net/sourceforge/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:  libtool >= 2:1.5
15 BuildRequires:  doxygen
16 BuildRequires:  libstdc++-devel
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. Dostarcza
27 gêstych(?) tablic i wektorów, generatorów liczb losowych oraz ma³ych
28 wektorów i macierzy.
29
30 %package devel
31 Summary:        Header files for Blitz++ library
32 Summary(pl):    Pliki nag³ówkowe biblioteki Blitz++
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 Header files for Blitz++ library.
38
39 %description devel -l pl
40 Pliki nag³ówkowe biblioteki Blitz++.
41
42 %package static
43 Summary:        Static Blitz++ library
44 Summary(pl):    Statyczna biblioteka Blitz++
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static Blitz++ library.
50
51 %description static -l pl
52 Statyczna biblioteka Blitz++.
53
54 %package doc
55 Summary:        Documentation for Blitz++ library
56 Summary(pl):    Dokumentacja Blitz++
57 Group:          Documentation   
58
59 %description doc
60 Documentation for Blitz++ library.
61
62 %description static -l pl
63 Dokumentacja bibliotekiBlitz++.
64
65 %package examples
66 Summary:        Examples for Blitz++ library
67 Summary(pl):    Przyk³ady Blitz++
68 Group:          Documentation   
69
70 %description examples
71 Examples for Blitz++ library.
72
73 %description examples -l pl
74 Przyk³ady Blitz++.
75
76 %prep
77 %setup -q
78 %patch0 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal} -I m4
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86 %configure --enable-shared
87 %{__make} lib
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d -- $RPM_BUILD_ROOT{%{_docdir}/%{name}-doc-%{version}/doxygen,%{_examplesdir}/%{name}}
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 cp -af -- $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{*.*,doxygen} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}
97 cp -af -- examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %post devel
106 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
107
108 %postun devel
109 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
110
111 %files
112 %defattr(644,root,root,755)
113 %doc AUTHORS ChangeLog ChangeLog.1 LEGAL LICENSE NEWS README TODO
114 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.so
119 %{_libdir}/lib*.la
120 %{_includedir}/blitz
121 %{_includedir}/random
122 %{_pkgconfigdir}/blitz.pc
123 %{_infodir}/*.info*
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/lib*.a
128
129 %files doc
130 %defattr(644,root,root,755)
131 %doc %{_docdir}/%{name}-doc-%{version}
132
133 %files examples
134 %defattr(644,root,root,755)
135 %{_examplesdir}/%{name}
This page took 0.097536 seconds and 4 git commands to generate.