1 %define LIBPLOT_VERSION 4.0
2 %define LIBXMI_VERSION 1.2
4 Summary: GNU Plotutils -- plotting utilities
5 Summary(pl): Narzêdzia do wykresów
10 Group: Applications/Graphics
11 Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
12 Patch0: %{name}-info.patch
13 Patch1: %{name}-c++.patch
14 URL: http://www.gnu.org/software/plotutils/plotutils.html
15 BuildRequires: XFree86-devel
16 BuildRequires: autoconf
17 BuildRequires: automake
19 BuildRequires: libstdc++-devel
20 BuildRequires: libpng-devel
21 BuildRequires: libtool
22 BuildRequires: texinfo
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The GNU plotting utilities include: (1) GNU libplot, a shared library
28 for exporting 2-D vector graphics files and for performing vector
29 graphics animation under the X Window System. Its output file formats
30 include pseudo-GIF, PNM, Adobe Illustrator, Postscript (editable with
31 the free 'idraw' drawing editor), Fig (editable with the free g'
32 drawing editor), PCL 5, HP-GL and HP-GL/2, Tektronix, and GNU metafile
33 format. Many Postscript, PCL, and Hershey fonts are supported. A
34 separate class library, 'libplotter', provides a C++ binding to
35 libplot's functionality. (2) Sample command-line applications 'graph',
36 'plot', 'tek2plot', 'pic2plot', and 'plotfont', which are built on top
37 of GNU libplot. 'graph' is a powerful utility for XY plotting, 'plot'
38 translates GNU metafiles to other formats, 'tek2plot' translates
39 legacy Tektronix data, 'pic2plot' translates box-and-arrow diagrams in
40 the pic language, and 'plotfont' plots character maps. (3)
41 Command-line applications 'spline', 'double', and e', which are useful
42 in scientific plotting. 'spline' does spline interpolation of input
43 data of arbitrary dimensionality. It uses cubic splines, splines under
44 tension, or cubic Bessel interpolation. e' is an interactive program
45 that can integrate a user-specified system of ordinary differential
49 GNU Plotutils to pakiet zawieraj±cy narzêdzia do tworzenia wykresów.
50 Umo¿liwiaj± one wy¶wietlanie wykresów w oknie X Window i zapisywanie w
51 formatach takich jak .pnm .gif .ai .ps .fig .pcl .hpgl .tek
52 http://www.gnu.org/software/plotutils/plotutils.html
55 Summary: libplot plotting library - from plotutils package
56 Summary(pl): libplot -- Biblioteka do kre¶lenia z pakietu plotutils
57 Group: Development/Libraries
58 Version: %{LIBPLOT_VERSION}
60 %description -n libplot
61 GNU libplot: a function library for exporting two-dimensional vector
62 graphics files, and for displaying animated vector.
64 %description -l pl -n libplot
65 GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
66 lub wy¶wietlania animowanych obrazów wektorowych pod X Window.
68 %package -n libplot-devel
69 Summary: libplot header files
70 Summary(pl): Pliki nag³ówkowe dla libplot
71 Group: Development/Libraries
72 Requires: libplot = %{LIBPLOT_VERSION}
73 Version: %{LIBPLOT_VERSION}
75 %description -n libplot-devel
78 %description -l pl -n libplot-devel
79 Pliki nag³ówkowe dla libplot.
81 %package -n libplot-static
82 Summary: libplot static libraries
83 Summary(pl): Biblioteki statyczne libplot
84 Group: Development/Libraries
85 Requires: libplot-devel = %{LIBPLOT_VERSION}
86 Version: %{LIBPLOT_VERSION}
88 %description -n libplot-static
89 libplot static libraries.
91 %description -l pl -n libplot-static
92 Biblioteka statyczna libplot.
94 %package -n libplotter
95 Summary: libplotter plotting library - from plotutils package
96 Summary(pl): libplotter - biblioteka do kre¶lenia z pakietu plotutils
97 Group: Development/Libraries
98 Version: %{LIBPLOT_VERSION}
100 %description -n libplotter
101 GNU libplotter: a function library for exporting two-dimensional
102 vector graphics files, and for displaying animated vector.
104 %description -l pl -n libplotter
105 GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki
106 wektorowej lub wy¶wietlania animowanych obrazów wektorowych pod X
109 %package -n libplotter-devel
110 Summary: libplotter header files
111 Summary(pl): Pliki nag³ówkowe dla libplotter
112 Group: Development/Libraries
113 Requires: libplotter = %{LIBPLOT_VERSION}
114 Version: %{LIBPLOT_VERSION}
116 %description -n libplotter-devel
117 libplotter header files.
119 %description -l pl -n libplotter-devel
120 Pliki nag³ówkowe dla libplotter.
122 %package -n libplotter-static
123 Summary: libplotter static libraries
124 Summary(pl): Biblioteki statyczne libplotter
125 Group: Development/Libraries
126 Requires: libplotter-devel = %{LIBPLOT_VERSION}
127 Version: %{LIBPLOT_VERSION}
129 %description -n libplotter-static
130 libplotter static libraries.
132 %description -l pl -n libplotter-static
133 Biblioteka statyczna libplotter.
136 Summary: libxmi library - from plotutils package
137 Summary(pl): libxmi - biblioteka z pakietu plotutils
138 Group: Development/Libraries
139 Version: %{LIBXMI_VERSION}
141 %description -n libxmi
142 GNU libxmi: a function library for exporting two-dimensional vector
143 graphics files, and for displaying animated vector.
145 %description -l pl -n libxmi
146 GNU libxmi: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
147 lub wy¶wietlania animowanych obrazów wektorowych pod X Window.
149 %package -n libxmi-devel
150 Summary: libxmi header files
151 Summary(pl): Pliki nag³ówkowe dla libxmi
152 Group: Development/Libraries
153 Requires: libxmi = %{LIBXMI_VERSION}
154 Version: %{LIBXMI_VERSION}
156 %description -n libxmi-devel
159 %description -l pl -n libxmi-devel
160 Pliki nag³ówkowe dla libxmi.
162 %package -n libxmi-static
163 Summary: Libxmi static libraries
164 Summary(pl): Biblioteki statyczne libxmi
165 Group: Development/Libraries
166 Requires: libxmi-devel = %{LIBXMI_VERSION}
167 Version: %{LIBXMI_VERSION}
169 %description -n libxmi-static
170 libxmi static libraries.
172 %description -l pl -n libxmi-static
173 Biblioteka statyczna libxmi.
181 libtoolize --copy --force
185 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
187 --enable-libplotter \
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
196 DESTDIR=$RPM_BUILD_ROOT
198 install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
199 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
201 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/* \
202 AUTHORS COMPAT KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO \
203 doc/{demo-page,*.doc,*.txt,*.bib} \
204 libplot/{DEDICATION,HUMOR,README*,VERSION} \
205 libxmi/{AUTHORS,NEWS,README*,TODO,VERSION}
208 rm -rf $RPM_BUILD_ROOT
211 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
214 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
216 %post -n libxmi-devel
217 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
219 %postun -n libxmi-devel
220 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
224 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
228 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
230 %post -n libplotter -p /sbin/ldconfig
231 %postun -n libplotter -p /sbin/ldconfig
233 %post -n libxmi -p /sbin/ldconfig
234 %postun -n libxmi -p /sbin/ldconfig
237 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_bindir}/*
240 %{_infodir}/plotutils.info*
247 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/libplot.so.*.*
252 %files -n libplot-devel
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_libdir}/libplot.so
255 %attr(755,root,root) %{_libdir}/libplot.la
257 %{_examplesdir}/libplot-%{LIBPLOT_VERSION}
258 %{_includedir}/plot.h
259 %{_includedir}/plotcompat.h
261 %files -n libplot-static
262 %defattr(644,root,root,755)
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libplotter.so.*.*
269 %files -n libplotter-devel
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libdir}/libplotter.so
272 %attr(755,root,root) %{_libdir}/libplotter.la
273 %{_includedir}/plotter.h
275 %files -n libplotter-static
276 %defattr(644,root,root,755)
277 %{_libdir}/libplotter.a
280 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_libdir}/libxmi.so.*.*
284 %files -n libxmi-devel
285 %defattr(644,root,root,755)
286 %{_infodir}/libxmi.info*
287 %attr(755,root,root) %{_libdir}/libxmi.so
288 %attr(755,root,root) %{_libdir}/libxmi.la
291 %files -n libxmi-static
292 %defattr(644,root,root,755)