]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
- release 7 (rebuild with libpng14)
[packages/plotutils.git] / plotutils.spec
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
5 Name:           plotutils
6 Version:        2.6
7 # Don't decrease release if LIBPLOT/LIBXMI versions are not increased, as then
8 # those subpackages get then lower release
9 Release:        7
10 License:        GPL v3+
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
19 BuildRequires:  flex
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)
28
29 %description
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.
50
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.
67
68 %package -n libplot
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}
72 Group:          Libraries
73 Requires(post,postun):  fontpostinst
74
75 %description -n libplot
76 GNU libplot: a function library for exporting two-dimensional vector
77 graphics files, and for displaying animated vector.
78
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.
82
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
92
93 %description -n libplot-devel
94 libplot header files.
95
96 %description -n libplot-devel -l pl.UTF-8
97 Pliki nagłówkowe dla libplot.
98
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}
105
106 %description -n libplot-static
107 libplot static library.
108
109 %description -n libplot-static -l pl.UTF-8
110 Biblioteka statyczna libplot.
111
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}
116 Group:          Libraries
117
118 %description -n libplotter
119 GNU libplotter: a function library for exporting two-dimensional
120 vector graphics files, and for displaying animated vector.
121
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
125 Window.
126
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
137
138 %description -n libplotter-devel
139 libplotter header files.
140
141 %description -n libplotter-devel -l pl.UTF-8
142 Pliki nagłówkowe dla libplotter.
143
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}
150
151 %description -n libplotter-static
152 libplotter static library.
153
154 %description -n libplotter-static -l pl.UTF-8
155 Biblioteka statyczna libplotter.
156
157 %package -n libxmi
158 Summary:        libxmi library - from plotutils package
159 Summary(pl.UTF-8):      libxmi - biblioteka z pakietu plotutils
160 Version:        %{LIBXMI_VERSION}
161 Group:          Libraries
162
163 %description -n libxmi
164 GNU libxmi: a function library for exporting two-dimensional vector
165 graphics files, and for displaying animated vector.
166
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.
170
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}
177
178 %description -n libxmi-devel
179 libxmi header files.
180
181 %description -n libxmi-devel -l pl.UTF-8
182 Pliki nagłówkowe dla libxmi.
183
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}
190
191 %description -n libxmi-static
192 libxmi static library.
193
194 %description -n libxmi-static -l pl.UTF-8
195 Biblioteka statyczna libxmi.
196
197 %prep
198 %setup -q
199 %patch0 -p1
200 %patch1 -p1
201
202 %build
203 %{__libtoolize}
204 %{__aclocal}
205 %{__autoconf}
206 %{__autoheader}
207 %{__automake}
208 %configure \
209         --enable-libplotter \
210         --enable-libxmi
211 %{__make}
212
213 %install
214 rm -rf $RPM_BUILD_ROOT
215 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
216
217 %{__make} install \
218         DESTDIR=$RPM_BUILD_ROOT
219
220 #install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
221 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
222
223 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*
224
225 %clean
226 rm -rf $RPM_BUILD_ROOT
227
228 %post   -p /sbin/postshell
229 -/usr/sbin/fix-info-dir -c %{_infodir}
230
231 %postun -p /sbin/postshell
232 -/usr/sbin/fix-info-dir -c %{_infodir}
233
234 %post   -n libxmi-devel -p /sbin/postshell
235 -/usr/sbin/fix-info-dir -c %{_infodir}
236
237 %postun -n libxmi-devel -p /sbin/postshell
238 -/usr/sbin/fix-info-dir -c %{_infodir}
239
240 %post   -n libplot
241 /sbin/ldconfig
242 fontpostinst misc
243
244 %postun -n libplot
245 /sbin/ldconfig
246 fontpostinst misc
247
248 %post   -n libplotter -p /sbin/ldconfig
249 %postun -n libplotter -p /sbin/ldconfig
250
251 %post   -n libxmi -p /sbin/ldconfig
252 %postun -n libxmi -p /sbin/ldconfig
253
254 %files
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*
259 %{_mandir}/man1/*
260 %{_datadir}/ode
261 %{_datadir}/pic2plot
262 %{_datadir}/tek2plot
263
264 %files -n libplot
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
271
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}
279
280 %files -n libplot-static
281 %defattr(644,root,root,755)
282 %{_libdir}/libplot.a
283
284 %files -n libplotter
285 %defattr(644,root,root,755)
286 %attr(755,root,root) %{_libdir}/libplotter.so.*.*.*
287 %attr(755,root,root) %ghost %{_libdir}/libplotter.so.2
288
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
294
295 %files -n libplotter-static
296 %defattr(644,root,root,755)
297 %{_libdir}/libplotter.a
298
299 %files -n libxmi
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
304
305 %files -n libxmi-devel
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/libxmi.so
308 %{_libdir}/libxmi.la
309 %{_includedir}/xmi.h
310 %{_infodir}/libxmi.info*
311
312 %files -n libxmi-static
313 %defattr(644,root,root,755)
314 %{_libdir}/libxmi.a
This page took 0.138347 seconds and 4 git commands to generate.