1 %define LIBPLOT_VERSION 4.2
2 %define LIBXMI_VERSION 1.3
4 Summary: GNU Plotutils -- plotting utilities
5 Summary(pl.UTF-8): Narzędzia do wykresów
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
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)
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.
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.
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}
72 %description -n libplot
73 GNU libplot: a function library for exporting two-dimensional vector
74 graphics files, and for displaying animated vector.
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.
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
90 %description -n libplot-devel
93 %description -n libplot-devel -l pl.UTF-8
94 Pliki nagłówkowe dla libplot.
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}
103 %description -n libplot-static
104 libplot static library.
106 %description -n libplot-static -l pl.UTF-8
107 Biblioteka statyczna libplot.
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}
115 %description -n libplotter
116 GNU libplotter: a function library for exporting two-dimensional
117 vector graphics files, and for displaying animated vector.
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
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
135 %description -n libplotter-devel
136 libplotter header files.
138 %description -n libplotter-devel -l pl.UTF-8
139 Pliki nagłówkowe dla libplotter.
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}
148 %description -n libplotter-static
149 libplotter static library.
151 %description -n libplotter-static -l pl.UTF-8
152 Biblioteka statyczna libplotter.
155 Summary: libxmi library - from plotutils package
156 Summary(pl.UTF-8): libxmi - biblioteka z pakietu plotutils
157 Version: %{LIBXMI_VERSION}
160 %description -n libxmi
161 GNU libxmi: a function library for exporting two-dimensional vector
162 graphics files, and for displaying animated vector.
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.
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}
175 %description -n libxmi-devel
178 %description -n libxmi-devel -l pl.UTF-8
179 Pliki nagłówkowe dla libxmi.
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}
188 %description -n libxmi-static
189 libxmi static library.
191 %description -n libxmi-static -l pl.UTF-8
192 Biblioteka statyczna libxmi.
204 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
206 --enable-libplotter \
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
215 DESTDIR=$RPM_BUILD_ROOT
217 install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
218 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
220 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*
223 rm -rf $RPM_BUILD_ROOT
226 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
229 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
231 %post -n libxmi-devel
232 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
234 %postun -n libxmi-devel
235 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
239 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
243 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
245 %post -n libplotter -p /sbin/ldconfig
246 %postun -n libplotter -p /sbin/ldconfig
248 %post -n libxmi -p /sbin/ldconfig
249 %postun -n libxmi -p /sbin/ldconfig
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*
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.*.*
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
276 %files -n libplot-static
277 %defattr(644,root,root,755)
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_libdir}/libplotter.so.*.*
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
290 %files -n libplotter-static
291 %defattr(644,root,root,755)
292 %{_libdir}/libplotter.a
295 %defattr(644,root,root,755)
296 %doc libxmi/{AUTHORS,NEWS,README*,TODO,VERSION}
297 %attr(755,root,root) %{_libdir}/libxmi.so.*.*
299 %files -n libxmi-devel
300 %defattr(644,root,root,755)
301 %{_infodir}/libxmi.info*
302 %attr(755,root,root) %{_libdir}/libxmi.so
306 %files -n libxmi-static
307 %defattr(644,root,root,755)