]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
- converted to UTF-8
[packages/plotutils.git] / plotutils.spec
1 %define LIBPLOT_VERSION 4.2
2 %define LIBXMI_VERSION 1.3
3
4 Summary:        GNU Plotutils -- plotting utilities
5 Summary(pl.UTF-8):   Narzędzia do wykresów
6 Name:           plotutils
7 Version:        2.5
8 Release:        1
9 License:        GPL
10 Group:          Applications/Graphics
11 Source0:        ftp://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
12 # Source0-md5:  0d6855cce17832afe2ff75c26a57be49
13 Patch0:         %{name}-info.patch
14 URL:            http://www.gnu.org/software/plotutils/plotutils.html
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  flex
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libpng-devel
20 BuildRequires:  libtool
21 BuildRequires:  texinfo
22 BuildRequires:  xorg-lib-libXaw-devel
23 BuildRequires:  xorg-lib-libXext-devel
24 Requires:       libplot = %{LIBPLOT_VERSION}-%{release}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 The GNU plotting utilities include: (1) GNU libplot, a shared library
29 for exporting 2-D vector graphics files and for performing vector
30 graphics animation under the X Window System. Its output file formats
31 include pseudo-GIF, PNM, Adobe Illustrator, Postscript (editable with
32 the free 'idraw' drawing editor), Fig (editable with the free g'
33 drawing editor), PCL 5, HP-GL and HP-GL/2, Tektronix, and GNU metafile
34 format. Many Postscript, PCL, and Hershey fonts are supported. A
35 separate class library, 'libplotter', provides a C++ binding to
36 libplot's functionality. (2) Sample command-line applications 'graph',
37 'plot', 'tek2plot', 'pic2plot', and 'plotfont', which are built on top
38 of GNU libplot. 'graph' is a powerful utility for XY plotting, 'plot'
39 translates GNU metafiles to other formats, 'tek2plot' translates
40 legacy Tektronix data, 'pic2plot' translates box-and-arrow diagrams in
41 the pic language, and 'plotfont' plots character maps. (3)
42 Command-line applications 'spline', 'double', and 'ode', which are
43 useful in scientific plotting. 'spline' does spline interpolation of
44 input data of arbitrary dimensionality. It uses cubic splines, splines
45 under tension, or cubic Bessel interpolation. 'ode' is an interactive
46 program that can integrate a user-specified system of ordinary
47 differential equations.
48
49 %description -l pl.UTF-8
50 GNU Plotutils to pakiet zawierający narzędzia do tworzenia wykresów.
51 Składa się z biblioteki GNU libplot, przykładowych programów
52 działających z linii poleceń oraz aplikacji. GNU libplot to biblioteka
53 do tworzenia plików z grafiką wektorową 2D i odtwarzania animowanej
54 grafiki wektorowej w środowisku X Window System. libplot potrafi
55 zapisywać w formatach m.in. GIF, PNM, Adobe Illustrator, Postscript,
56 Fig, PCL 5, HP-GL i GP-GL/2, Tektronix i GNU metafile. Obsługuje wiele
57 fontów Postscriptowych, PCL i Hershey. Oddzielna biblioteka libplotter
58 daje interfejs C++ do funkcji libplot. Programy przykładowe to graph,
59 plot, tek2plot, pic2plot i plotfont; pierwszy służy do rysowania, trzy
60 kolejne do konwersji między różnymi formatami, ostatni do wyświetlania
61 fontów. Aplikacje zawarte w pakiecie plotutils to spline, double oraz
62 ode, przydatne do rysunków naukowych. spline tworzy interpolację
63 splajnami dostarczonych danych o dowolnej liczbie wymiarów. ode jest
64 interaktywnym programem do rozwiązywania układów równań różniczkowych.
65
66 %package -n libplot
67 Summary:        libplot plotting library - from plotutils package
68 Summary(pl.UTF-8):   libplot -- Biblioteka do kreślenia z pakietu plotutils
69 Version:        %{LIBPLOT_VERSION}
70 Group:          Libraries
71
72 %description -n libplot
73 GNU libplot: a function library for exporting two-dimensional vector
74 graphics files, and for displaying animated vector.
75
76 %description -n libplot -l pl.UTF-8
77 GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
78 lub wyświetlania animowanych obrazów wektorowych pod X Window.
79
80 %package -n libplot-devel
81 Summary:        libplot header files
82 Summary(pl.UTF-8):   Pliki nagłówkowe dla libplot
83 Version:        %{LIBPLOT_VERSION}
84 Group:          Development/Libraries
85 Requires:       libplot = %{LIBPLOT_VERSION}-%{release}
86 Requires:       libpng-devel
87 Requires:       xorg-lib-libXaw-devel
88 Requires:       xorg-lib-libXext-devel
89
90 %description -n libplot-devel
91 libplot header files.
92
93 %description -n libplot-devel -l pl.UTF-8
94 Pliki nagłówkowe dla libplot.
95
96 %package -n libplot-static
97 Summary:        libplot static library
98 Summary(pl.UTF-8):   Biblioteka statyczna libplot
99 Version:        %{LIBPLOT_VERSION}
100 Group:          Development/Libraries
101 Requires:       libplot-devel = %{LIBPLOT_VERSION}-%{release}
102
103 %description -n libplot-static
104 libplot static library.
105
106 %description -n libplot-static -l pl.UTF-8
107 Biblioteka statyczna libplot.
108
109 %package -n libplotter
110 Summary:        libplotter plotting library - from plotutils package
111 Summary(pl.UTF-8):   libplotter - biblioteka do kreślenia z pakietu plotutils
112 Version:        %{LIBPLOT_VERSION}
113 Group:          Libraries
114
115 %description -n libplotter
116 GNU libplotter: a function library for exporting two-dimensional
117 vector graphics files, and for displaying animated vector.
118
119 %description -n libplotter -l pl.UTF-8
120 GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki
121 wektorowej lub wyświetlania animowanych obrazów wektorowych pod X
122 Window.
123
124 %package -n libplotter-devel
125 Summary:        libplotter header files
126 Summary(pl.UTF-8):   Pliki nagłówkowe dla libplotter
127 Version:        %{LIBPLOT_VERSION}
128 Group:          Development/Libraries
129 Requires:       libplotter = %{LIBPLOT_VERSION}-%{release}
130 Requires:       libpng-devel
131 Requires:       libstdc++-devel
132 Requires:       xorg-lib-libXaw-devel
133 Requires:       xorg-lib-libXext-devel
134
135 %description -n libplotter-devel
136 libplotter header files.
137
138 %description -n libplotter-devel -l pl.UTF-8
139 Pliki nagłówkowe dla libplotter.
140
141 %package -n libplotter-static
142 Summary:        libplotter static library
143 Summary(pl.UTF-8):   Biblioteka statyczna libplotter
144 Version:        %{LIBPLOT_VERSION}
145 Group:          Development/Libraries
146 Requires:       libplotter-devel = %{LIBPLOT_VERSION}-%{release}
147
148 %description -n libplotter-static
149 libplotter static library.
150
151 %description -n libplotter-static -l pl.UTF-8
152 Biblioteka statyczna libplotter.
153
154 %package -n libxmi
155 Summary:        libxmi library - from plotutils package
156 Summary(pl.UTF-8):   libxmi - biblioteka z pakietu plotutils
157 Version:        %{LIBXMI_VERSION}
158 Group:          Libraries
159
160 %description -n libxmi
161 GNU libxmi: a function library for exporting two-dimensional vector
162 graphics files, and for displaying animated vector.
163
164 %description -n libxmi -l pl.UTF-8
165 GNU libxmi: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
166 lub wyświetlania animowanych obrazów wektorowych pod X Window.
167
168 %package -n libxmi-devel
169 Summary:        libxmi header files
170 Summary(pl.UTF-8):   Pliki nagłówkowe dla libxmi
171 Version:        %{LIBXMI_VERSION}
172 Group:          Development/Libraries
173 Requires:       libxmi = %{LIBXMI_VERSION}-%{release}
174
175 %description -n libxmi-devel
176 libxmi header files.
177
178 %description -n libxmi-devel -l pl.UTF-8
179 Pliki nagłówkowe dla libxmi.
180
181 %package -n libxmi-static
182 Summary:        Libxmi static library
183 Summary(pl.UTF-8):   Biblioteka statyczna libxmi
184 Version:        %{LIBXMI_VERSION}
185 Group:          Development/Libraries
186 Requires:       libxmi-devel = %{LIBXMI_VERSION}-%{release}
187
188 %description -n libxmi-static
189 libxmi static library.
190
191 %description -n libxmi-static -l pl.UTF-8
192 Biblioteka statyczna libxmi.
193
194 %prep
195 %setup -q
196 %patch0 -p1
197
198 %build
199 %{__libtoolize}
200 %{__aclocal}
201 %{__autoconf}
202 %{__autoheader}
203 %{__automake}
204 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
205 %configure \
206         --enable-libplotter \
207         --enable-libxmi
208 %{__make}
209
210 %install
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
213
214 %{__make} install \
215         DESTDIR=$RPM_BUILD_ROOT
216
217 install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
218 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
219
220 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*
221
222 %clean
223 rm -rf $RPM_BUILD_ROOT
224
225 %post
226 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
227
228 %postun
229 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
230
231 %post   -n libxmi-devel
232 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
233
234 %postun -n libxmi-devel
235 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
236
237 %post   -n libplot
238 /sbin/ldconfig
239 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
240
241 %postun -n libplot
242 /sbin/ldconfig
243 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
244
245 %post   -n libplotter -p /sbin/ldconfig
246 %postun -n libplotter -p /sbin/ldconfig
247
248 %post   -n libxmi -p /sbin/ldconfig
249 %postun -n libxmi -p /sbin/ldconfig
250
251 %files
252 %defattr(644,root,root,755)
253 %doc AUTHORS COMPAT KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO
254 %attr(755,root,root) %{_bindir}/*
255 %{_infodir}/plotutils.info*
256 %{_mandir}/man1/*
257 %{_datadir}/ode
258 %{_datadir}/pic2plot
259 %{_datadir}/tek2plot
260
261 %files -n libplot
262 %defattr(644,root,root,755)
263 %doc doc/{demo-page,*.doc,*.txt,*.bib}
264 %doc libplot/{DEDICATION,HUMOR,README*,VERSION}
265 %attr(755,root,root) %{_libdir}/libplot.so.*.*
266 %{_fontsdir}/misc/*
267
268 %files -n libplot-devel
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/libplot.so
271 %{_libdir}/libplot.la
272 %{_examplesdir}/libplot-%{LIBPLOT_VERSION}
273 %{_includedir}/plot.h
274 %{_includedir}/plotcompat.h
275
276 %files -n libplot-static
277 %defattr(644,root,root,755)
278 %{_libdir}/libplot.a
279
280 %files -n libplotter
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_libdir}/libplotter.so.*.*
283
284 %files -n libplotter-devel
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/libplotter.so
287 %{_libdir}/libplotter.la
288 %{_includedir}/plotter.h
289
290 %files -n libplotter-static
291 %defattr(644,root,root,755)
292 %{_libdir}/libplotter.a
293
294 %files -n libxmi
295 %defattr(644,root,root,755)
296 %doc libxmi/{AUTHORS,NEWS,README*,TODO,VERSION}
297 %attr(755,root,root) %{_libdir}/libxmi.so.*.*
298
299 %files -n libxmi-devel
300 %defattr(644,root,root,755)
301 %{_infodir}/libxmi.info*
302 %attr(755,root,root) %{_libdir}/libxmi.so
303 %{_libdir}/libxmi.la
304 %{_includedir}/xmi.h
305
306 %files -n libxmi-static
307 %defattr(644,root,root,755)
308 %{_libdir}/libxmi.a
This page took 0.475429 seconds and 4 git commands to generate.