1 %define LIBPLOT_VERSION 4.3
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 URL: http://www.gnu.org/software/plotutils/plotutils.html
17 BuildRequires: autoconf
18 BuildRequires: automake
20 BuildRequires: libpng-devel
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool
23 BuildRequires: texinfo
24 BuildRequires: xorg-lib-libXaw-devel
25 BuildRequires: xorg-lib-libXext-devel
26 Requires: libplot = %{LIBPLOT_VERSION}-%{release}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The GNU plotting utilities include: (1) GNU libplot, a shared library
31 for exporting 2-D vector graphics files and for performing vector
32 graphics animation under the X Window System. Its output file formats
33 include pseudo-GIF, PNM, Adobe Illustrator, Postscript (editable with
34 the free 'idraw' drawing editor), Fig (editable with the free g'
35 drawing editor), PCL 5, HP-GL and HP-GL/2, Tektronix, and GNU metafile
36 format. Many Postscript, PCL, and Hershey fonts are supported. A
37 separate class library, 'libplotter', provides a C++ binding to
38 libplot's functionality. (2) Sample command-line applications 'graph',
39 'plot', 'tek2plot', 'pic2plot', and 'plotfont', which are built on top
40 of GNU libplot. 'graph' is a powerful utility for XY plotting, 'plot'
41 translates GNU metafiles to other formats, 'tek2plot' translates
42 legacy Tektronix data, 'pic2plot' translates box-and-arrow diagrams in
43 the pic language, and 'plotfont' plots character maps. (3)
44 Command-line applications 'spline', 'double', and 'ode', which are
45 useful in scientific plotting. 'spline' does spline interpolation of
46 input data of arbitrary dimensionality. It uses cubic splines, splines
47 under tension, or cubic Bessel interpolation. 'ode' is an interactive
48 program that can integrate a user-specified system of ordinary
49 differential equations.
51 %description -l pl.UTF-8
52 GNU Plotutils to pakiet zawierający narzędzia do tworzenia wykresów.
53 Składa się z biblioteki GNU libplot, przykładowych programów
54 działających z linii poleceń oraz aplikacji. GNU libplot to biblioteka
55 do tworzenia plików z grafiką wektorową 2D i odtwarzania animowanej
56 grafiki wektorowej w środowisku X Window System. libplot potrafi
57 zapisywać w formatach m.in. GIF, PNM, Adobe Illustrator, Postscript,
58 Fig, PCL 5, HP-GL i GP-GL/2, Tektronix i GNU metafile. Obsługuje wiele
59 fontów Postscriptowych, PCL i Hershey. Oddzielna biblioteka libplotter
60 daje interfejs C++ do funkcji libplot. Programy przykładowe to graph,
61 plot, tek2plot, pic2plot i plotfont; pierwszy służy do rysowania, trzy
62 kolejne do konwersji między różnymi formatami, ostatni do wyświetlania
63 fontów. Aplikacje zawarte w pakiecie plotutils to spline, double oraz
64 ode, przydatne do rysunków naukowych. spline tworzy interpolację
65 splajnami dostarczonych danych o dowolnej liczbie wymiarów. ode jest
66 interaktywnym programem do rozwiązywania układów równań różniczkowych.
69 Summary: libplot plotting library - from plotutils package
70 Summary(pl.UTF-8): libplot -- Biblioteka do kreślenia z pakietu plotutils
71 Version: %{LIBPLOT_VERSION}
73 Requires(post,postun): fontpostinst
75 %description -n libplot
76 GNU libplot: a function library for exporting two-dimensional vector
77 graphics files, and for displaying animated vector.
79 %description -n libplot -l pl.UTF-8
80 GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
81 lub wyświetlania animowanych obrazów wektorowych pod X Window.
83 %package -n libplot-devel
84 Summary: libplot header files
85 Summary(pl.UTF-8): Pliki nagłówkowe dla libplot
86 Version: %{LIBPLOT_VERSION}
87 Group: Development/Libraries
88 Requires: libplot = %{LIBPLOT_VERSION}-%{release}
89 Requires: libpng-devel
90 Requires: xorg-lib-libXaw-devel
91 Requires: xorg-lib-libXext-devel
93 %description -n libplot-devel
96 %description -n libplot-devel -l pl.UTF-8
97 Pliki nagłówkowe dla libplot.
99 %package -n libplot-static
100 Summary: libplot static library
101 Summary(pl.UTF-8): Biblioteka statyczna libplot
102 Version: %{LIBPLOT_VERSION}
103 Group: Development/Libraries
104 Requires: libplot-devel = %{LIBPLOT_VERSION}-%{release}
106 %description -n libplot-static
107 libplot static library.
109 %description -n libplot-static -l pl.UTF-8
110 Biblioteka statyczna libplot.
112 %package -n libplotter
113 Summary: libplotter plotting library - from plotutils package
114 Summary(pl.UTF-8): libplotter - biblioteka do kreślenia z pakietu plotutils
115 Version: %{LIBPLOT_VERSION}
118 %description -n libplotter
119 GNU libplotter: a function library for exporting two-dimensional
120 vector graphics files, and for displaying animated vector.
122 %description -n libplotter -l pl.UTF-8
123 GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki
124 wektorowej lub wyświetlania animowanych obrazów wektorowych pod X
127 %package -n libplotter-devel
128 Summary: libplotter header files
129 Summary(pl.UTF-8): Pliki nagłówkowe dla libplotter
130 Version: %{LIBPLOT_VERSION}
131 Group: Development/Libraries
132 Requires: libplotter = %{LIBPLOT_VERSION}-%{release}
133 Requires: libpng-devel
134 Requires: libstdc++-devel
135 Requires: xorg-lib-libXaw-devel
136 Requires: xorg-lib-libXext-devel
138 %description -n libplotter-devel
139 libplotter header files.
141 %description -n libplotter-devel -l pl.UTF-8
142 Pliki nagłówkowe dla libplotter.
144 %package -n libplotter-static
145 Summary: libplotter static library
146 Summary(pl.UTF-8): Biblioteka statyczna libplotter
147 Version: %{LIBPLOT_VERSION}
148 Group: Development/Libraries
149 Requires: libplotter-devel = %{LIBPLOT_VERSION}-%{release}
151 %description -n libplotter-static
152 libplotter static library.
154 %description -n libplotter-static -l pl.UTF-8
155 Biblioteka statyczna libplotter.
158 Summary: libxmi library - from plotutils package
159 Summary(pl.UTF-8): libxmi - biblioteka z pakietu plotutils
160 Version: %{LIBXMI_VERSION}
163 %description -n libxmi
164 GNU libxmi: a function library for exporting two-dimensional vector
165 graphics files, and for displaying animated vector.
167 %description -n libxmi -l pl.UTF-8
168 GNU libxmi: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
169 lub wyświetlania animowanych obrazów wektorowych pod X Window.
171 %package -n libxmi-devel
172 Summary: libxmi header files
173 Summary(pl.UTF-8): Pliki nagłówkowe dla libxmi
174 Version: %{LIBXMI_VERSION}
175 Group: Development/Libraries
176 Requires: libxmi = %{LIBXMI_VERSION}-%{release}
178 %description -n libxmi-devel
181 %description -n libxmi-devel -l pl.UTF-8
182 Pliki nagłówkowe dla libxmi.
184 %package -n libxmi-static
185 Summary: Libxmi static library
186 Summary(pl.UTF-8): Biblioteka statyczna libxmi
187 Version: %{LIBXMI_VERSION}
188 Group: Development/Libraries
189 Requires: libxmi-devel = %{LIBXMI_VERSION}-%{release}
191 %description -n libxmi-static
192 libxmi static library.
194 %description -n libxmi-static -l pl.UTF-8
195 Biblioteka statyczna libxmi.
209 --enable-libplotter \
214 rm -rf $RPM_BUILD_ROOT
215 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
218 DESTDIR=$RPM_BUILD_ROOT
220 #install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
221 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
223 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*
226 rm -rf $RPM_BUILD_ROOT
228 %post -p /sbin/postshell
229 -/usr/sbin/fix-info-dir -c %{_infodir}
231 %postun -p /sbin/postshell
232 -/usr/sbin/fix-info-dir -c %{_infodir}
234 %post -n libxmi-devel -p /sbin/postshell
235 -/usr/sbin/fix-info-dir -c %{_infodir}
237 %postun -n libxmi-devel -p /sbin/postshell
238 -/usr/sbin/fix-info-dir -c %{_infodir}
248 %post -n libplotter -p /sbin/ldconfig
249 %postun -n libplotter -p /sbin/ldconfig
251 %post -n libxmi -p /sbin/ldconfig
252 %postun -n libxmi -p /sbin/ldconfig
255 %defattr(644,root,root,755)
256 %doc AUTHORS COMPAT KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO
257 %attr(755,root,root) %{_bindir}/*
258 %{_infodir}/plotutils.info*
265 %defattr(644,root,root,755)
266 %doc doc/{*.txt,*.bib}
267 %doc libplot/{DEDICATION,HUMOR,README*,VERSION}
268 %attr(755,root,root) %{_libdir}/libplot.so.*.*.*
269 %attr(755,root,root) %ghost %{_libdir}/libplot.so.2
270 %{_fontsdir}/misc/tekfont*.pcf.gz
272 %files -n libplot-devel
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libplot.so
275 %{_libdir}/libplot.la
276 %{_includedir}/plot.h
277 %{_includedir}/plotcompat.h
278 %{_examplesdir}/libplot-%{LIBPLOT_VERSION}
280 %files -n libplot-static
281 %defattr(644,root,root,755)
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/libplotter.so.*.*.*
287 %attr(755,root,root) %ghost %{_libdir}/libplotter.so.2
289 %files -n libplotter-devel
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libplotter.so
292 %{_libdir}/libplotter.la
293 %{_includedir}/plotter.h
295 %files -n libplotter-static
296 %defattr(644,root,root,755)
297 %{_libdir}/libplotter.a
300 %defattr(644,root,root,755)
301 %doc libxmi/{AUTHORS,NEWS,README*,TODO,VERSION}
302 %attr(755,root,root) %{_libdir}/libxmi.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libxmi.so.0
305 %files -n libxmi-devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libxmi.so
310 %{_infodir}/libxmi.info*
312 %files -n libxmi-static
313 %defattr(644,root,root,755)