1 %define LIBPLOT_VERSION 4.4
2 %define LIBXMI_VERSION 1.3
3 Summary: GNU Plotutils -- plotting utilities
4 Summary(pl.UTF-8): Narzędzia do wykresów
7 # Don't decrease release if LIBPLOT/LIBXMI versions are not increased, as then
8 # those subpackages get then lower release
11 Group: Applications/Graphics
12 Source0: http://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
13 # Source0-md5: c08a424bd2438c80a786a7f4b5bb6a40
14 Patch0: %{name}-info.patch
15 Patch1: %{name}-ac.patch
16 Patch2: %{name}-libpng15.patch
17 Patch3: %{name}-format.patch
18 URL: http://www.gnu.org/software/plotutils/plotutils.html
19 BuildRequires: autoconf
20 BuildRequires: automake
22 BuildRequires: libpng-devel
23 BuildRequires: libstdc++-devel
24 BuildRequires: libtool
25 BuildRequires: texinfo
26 BuildRequires: xorg-lib-libXaw-devel
27 BuildRequires: xorg-lib-libXext-devel
28 Requires: libplot = %{LIBPLOT_VERSION}-%{release}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The GNU plotting utilities include: (1) GNU libplot, a shared library
33 for exporting 2-D vector graphics files and for performing vector
34 graphics animation under the X Window System. Its output file formats
35 include pseudo-GIF, PNM, Adobe Illustrator, Postscript (editable with
36 the free 'idraw' drawing editor), Fig (editable with the free g'
37 drawing editor), PCL 5, HP-GL and HP-GL/2, Tektronix, and GNU metafile
38 format. Many Postscript, PCL, and Hershey fonts are supported. A
39 separate class library, 'libplotter', provides a C++ binding to
40 libplot's functionality. (2) Sample command-line applications 'graph',
41 'plot', 'tek2plot', 'pic2plot', and 'plotfont', which are built on top
42 of GNU libplot. 'graph' is a powerful utility for XY plotting, 'plot'
43 translates GNU metafiles to other formats, 'tek2plot' translates
44 legacy Tektronix data, 'pic2plot' translates box-and-arrow diagrams in
45 the pic language, and 'plotfont' plots character maps. (3)
46 Command-line applications 'spline', 'double', and 'ode', which are
47 useful in scientific plotting. 'spline' does spline interpolation of
48 input data of arbitrary dimensionality. It uses cubic splines, splines
49 under tension, or cubic Bessel interpolation. 'ode' is an interactive
50 program that can integrate a user-specified system of ordinary
51 differential equations.
53 %description -l pl.UTF-8
54 GNU Plotutils to pakiet zawierający narzędzia do tworzenia wykresów.
55 Składa się z biblioteki GNU libplot, przykładowych programów
56 działających z linii poleceń oraz aplikacji. GNU libplot to biblioteka
57 do tworzenia plików z grafiką wektorową 2D i odtwarzania animowanej
58 grafiki wektorowej w środowisku X Window System. libplot potrafi
59 zapisywać w formatach m.in. GIF, PNM, Adobe Illustrator, Postscript,
60 Fig, PCL 5, HP-GL i GP-GL/2, Tektronix i GNU metafile. Obsługuje wiele
61 fontów Postscriptowych, PCL i Hershey. Oddzielna biblioteka libplotter
62 daje interfejs C++ do funkcji libplot. Programy przykładowe to graph,
63 plot, tek2plot, pic2plot i plotfont; pierwszy służy do rysowania, trzy
64 kolejne do konwersji między różnymi formatami, ostatni do wyświetlania
65 fontów. Aplikacje zawarte w pakiecie plotutils to spline, double oraz
66 ode, przydatne do rysunków naukowych. spline tworzy interpolację
67 splajnami dostarczonych danych o dowolnej liczbie wymiarów. ode jest
68 interaktywnym programem do rozwiązywania układów równań różniczkowych.
71 Summary: libplot plotting library - from plotutils package
72 Summary(pl.UTF-8): libplot -- Biblioteka do kreślenia z pakietu plotutils
73 Version: %{LIBPLOT_VERSION}
75 Requires(post,postun): fontpostinst
77 %description -n libplot
78 GNU libplot: a function library for exporting two-dimensional vector
79 graphics files, and for displaying animated vector.
81 %description -n libplot -l pl.UTF-8
82 GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
83 lub wyświetlania animowanych obrazów wektorowych pod X Window.
85 %package -n libplot-devel
86 Summary: libplot header files
87 Summary(pl.UTF-8): Pliki nagłówkowe dla libplot
88 Version: %{LIBPLOT_VERSION}
89 Group: Development/Libraries
90 Requires: libplot = %{LIBPLOT_VERSION}-%{release}
91 Requires: libpng-devel
92 Requires: xorg-lib-libXaw-devel
93 Requires: xorg-lib-libXext-devel
95 %description -n libplot-devel
98 %description -n libplot-devel -l pl.UTF-8
99 Pliki nagłówkowe dla libplot.
101 %package -n libplot-static
102 Summary: libplot static library
103 Summary(pl.UTF-8): Biblioteka statyczna libplot
104 Version: %{LIBPLOT_VERSION}
105 Group: Development/Libraries
106 Requires: libplot-devel = %{LIBPLOT_VERSION}-%{release}
108 %description -n libplot-static
109 libplot static library.
111 %description -n libplot-static -l pl.UTF-8
112 Biblioteka statyczna libplot.
114 %package -n libplotter
115 Summary: libplotter plotting library - from plotutils package
116 Summary(pl.UTF-8): libplotter - biblioteka do kreślenia z pakietu plotutils
117 Version: %{LIBPLOT_VERSION}
120 %description -n libplotter
121 GNU libplotter: a function library for exporting two-dimensional
122 vector graphics files, and for displaying animated vector.
124 %description -n libplotter -l pl.UTF-8
125 GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki
126 wektorowej lub wyświetlania animowanych obrazów wektorowych pod X
129 %package -n libplotter-devel
130 Summary: libplotter header files
131 Summary(pl.UTF-8): Pliki nagłówkowe dla libplotter
132 Version: %{LIBPLOT_VERSION}
133 Group: Development/Libraries
134 Requires: libplotter = %{LIBPLOT_VERSION}-%{release}
135 Requires: libpng-devel
136 Requires: libstdc++-devel
137 Requires: xorg-lib-libXaw-devel
138 Requires: xorg-lib-libXext-devel
140 %description -n libplotter-devel
141 libplotter header files.
143 %description -n libplotter-devel -l pl.UTF-8
144 Pliki nagłówkowe dla libplotter.
146 %package -n libplotter-static
147 Summary: libplotter static library
148 Summary(pl.UTF-8): Biblioteka statyczna libplotter
149 Version: %{LIBPLOT_VERSION}
150 Group: Development/Libraries
151 Requires: libplotter-devel = %{LIBPLOT_VERSION}-%{release}
153 %description -n libplotter-static
154 libplotter static library.
156 %description -n libplotter-static -l pl.UTF-8
157 Biblioteka statyczna libplotter.
160 Summary: libxmi library - from plotutils package
161 Summary(pl.UTF-8): libxmi - biblioteka z pakietu plotutils
162 Version: %{LIBXMI_VERSION}
165 %description -n libxmi
166 GNU libxmi: a function library for exporting two-dimensional vector
167 graphics files, and for displaying animated vector.
169 %description -n libxmi -l pl.UTF-8
170 GNU libxmi: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
171 lub wyświetlania animowanych obrazów wektorowych pod X Window.
173 %package -n libxmi-devel
174 Summary: libxmi header files
175 Summary(pl.UTF-8): Pliki nagłówkowe dla libxmi
176 Version: %{LIBXMI_VERSION}
177 Group: Development/Libraries
178 Requires: libxmi = %{LIBXMI_VERSION}-%{release}
180 %description -n libxmi-devel
183 %description -n libxmi-devel -l pl.UTF-8
184 Pliki nagłówkowe dla libxmi.
186 %package -n libxmi-static
187 Summary: Libxmi static library
188 Summary(pl.UTF-8): Biblioteka statyczna libxmi
189 Version: %{LIBXMI_VERSION}
190 Group: Development/Libraries
191 Requires: libxmi-devel = %{LIBXMI_VERSION}-%{release}
193 %description -n libxmi-static
194 libxmi static library.
196 %description -n libxmi-static -l pl.UTF-8
197 Biblioteka statyczna libxmi.
213 --enable-libplotter \
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
222 DESTDIR=$RPM_BUILD_ROOT
224 cp -p fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
225 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*.pcf
228 %{__rm} $RPM_BUILD_ROOT%{_datadir}/libplot/{README,*.txt,*.bib}
231 rm -rf $RPM_BUILD_ROOT
233 %post -p /sbin/postshell
234 -/usr/sbin/fix-info-dir -c %{_infodir}
236 %postun -p /sbin/postshell
237 -/usr/sbin/fix-info-dir -c %{_infodir}
239 %post -n libxmi-devel -p /sbin/postshell
240 -/usr/sbin/fix-info-dir -c %{_infodir}
242 %postun -n libxmi-devel -p /sbin/postshell
243 -/usr/sbin/fix-info-dir -c %{_infodir}
253 %post -n libplotter -p /sbin/ldconfig
254 %postun -n libplotter -p /sbin/ldconfig
256 %post -n libxmi -p /sbin/ldconfig
257 %postun -n libxmi -p /sbin/ldconfig
260 %defattr(644,root,root,755)
261 %doc AUTHORS COMPAT KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO
262 %attr(755,root,root) %{_bindir}/double
263 %attr(755,root,root) %{_bindir}/graph
264 %attr(755,root,root) %{_bindir}/hersheydemo
265 %attr(755,root,root) %{_bindir}/ode
266 %attr(755,root,root) %{_bindir}/pic2plot
267 %attr(755,root,root) %{_bindir}/plot
268 %attr(755,root,root) %{_bindir}/plotfont
269 %attr(755,root,root) %{_bindir}/spline
270 %attr(755,root,root) %{_bindir}/tek2plot
271 %{_infodir}/plotutils.info*
272 %{_mandir}/man1/ode.1*
273 %{_mandir}/man1/plot.1*
274 %{_mandir}/man1/plotfont.1*
275 %{_mandir}/man1/spline.1*
276 %{_mandir}/man1/tek2plot.1*
282 %defattr(644,root,root,755)
283 %doc doc/{*.txt,*.bib} libplot/{DEDICATION,HUMOR,README*,VERSION}
284 %attr(755,root,root) %{_libdir}/libplot.so.*.*.*
285 %attr(755,root,root) %ghost %{_libdir}/libplot.so.2
286 %{_fontsdir}/misc/tekfont*.pcf.gz
288 %files -n libplot-devel
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/libplot.so
291 %{_libdir}/libplot.la
292 %{_includedir}/plot.h
293 %{_includedir}/plotcompat.h
294 %{_examplesdir}/libplot-%{LIBPLOT_VERSION}
296 %files -n libplot-static
297 %defattr(644,root,root,755)
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/libplotter.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libplotter.so.2
305 %files -n libplotter-devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libplotter.so
308 %{_libdir}/libplotter.la
309 %{_includedir}/plotter.h
311 %files -n libplotter-static
312 %defattr(644,root,root,755)
313 %{_libdir}/libplotter.a
316 %defattr(644,root,root,755)
317 %doc libxmi/{AUTHORS,NEWS,README*,TODO,VERSION}
318 %attr(755,root,root) %{_libdir}/libxmi.so.*.*.*
319 %attr(755,root,root) %ghost %{_libdir}/libxmi.so.0
321 %files -n libxmi-devel
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libxmi.so
326 %{_infodir}/libxmi.info*
328 %files -n libxmi-static
329 %defattr(644,root,root,755)