]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
- check-files cleanup
[packages/plotutils.git] / plotutils.spec
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
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:        16
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 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
21 BuildRequires:  flex
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)
30
31 %description
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.
52
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.
69
70 %package -n libplot
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}
74 Group:          Libraries
75 Requires(post,postun):  fontpostinst
76
77 %description -n libplot
78 GNU libplot: a function library for exporting two-dimensional vector
79 graphics files, and for displaying animated vector.
80
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.
84
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
94
95 %description -n libplot-devel
96 libplot header files.
97
98 %description -n libplot-devel -l pl.UTF-8
99 Pliki nagłówkowe dla libplot.
100
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}
107
108 %description -n libplot-static
109 libplot static library.
110
111 %description -n libplot-static -l pl.UTF-8
112 Biblioteka statyczna libplot.
113
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}
118 Group:          Libraries
119
120 %description -n libplotter
121 GNU libplotter: a function library for exporting two-dimensional
122 vector graphics files, and for displaying animated vector.
123
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
127 Window.
128
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
139
140 %description -n libplotter-devel
141 libplotter header files.
142
143 %description -n libplotter-devel -l pl.UTF-8
144 Pliki nagłówkowe dla libplotter.
145
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}
152
153 %description -n libplotter-static
154 libplotter static library.
155
156 %description -n libplotter-static -l pl.UTF-8
157 Biblioteka statyczna libplotter.
158
159 %package -n libxmi
160 Summary:        libxmi library - from plotutils package
161 Summary(pl.UTF-8):      libxmi - biblioteka z pakietu plotutils
162 Version:        %{LIBXMI_VERSION}
163 Group:          Libraries
164
165 %description -n libxmi
166 GNU libxmi: a function library for exporting two-dimensional vector
167 graphics files, and for displaying animated vector.
168
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.
172
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}
179
180 %description -n libxmi-devel
181 libxmi header files.
182
183 %description -n libxmi-devel -l pl.UTF-8
184 Pliki nagłówkowe dla libxmi.
185
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}
192
193 %description -n libxmi-static
194 libxmi static library.
195
196 %description -n libxmi-static -l pl.UTF-8
197 Biblioteka statyczna libxmi.
198
199 %prep
200 %setup -q
201 %patch0 -p1
202 %patch1 -p1
203 %patch2 -p1
204 %patch3 -p1
205
206 %build
207 %{__libtoolize}
208 %{__aclocal}
209 %{__autoconf}
210 %{__autoheader}
211 %{__automake}
212 %configure \
213         --enable-libplotter \
214         --enable-libxmi
215 %{__make}
216
217 %install
218 rm -rf $RPM_BUILD_ROOT
219 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
220
221 %{__make} install \
222         DESTDIR=$RPM_BUILD_ROOT
223
224 cp -p fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
225 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*.pcf
226
227 # packaged as %doc
228 %{__rm} $RPM_BUILD_ROOT%{_datadir}/libplot/{README,*.txt,*.bib}
229
230 %clean
231 rm -rf $RPM_BUILD_ROOT
232
233 %post   -p /sbin/postshell
234 -/usr/sbin/fix-info-dir -c %{_infodir}
235
236 %postun -p /sbin/postshell
237 -/usr/sbin/fix-info-dir -c %{_infodir}
238
239 %post   -n libxmi-devel -p /sbin/postshell
240 -/usr/sbin/fix-info-dir -c %{_infodir}
241
242 %postun -n libxmi-devel -p /sbin/postshell
243 -/usr/sbin/fix-info-dir -c %{_infodir}
244
245 %post   -n libplot
246 /sbin/ldconfig
247 fontpostinst misc
248
249 %postun -n libplot
250 /sbin/ldconfig
251 fontpostinst misc
252
253 %post   -n libplotter -p /sbin/ldconfig
254 %postun -n libplotter -p /sbin/ldconfig
255
256 %post   -n libxmi -p /sbin/ldconfig
257 %postun -n libxmi -p /sbin/ldconfig
258
259 %files
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*
277 %{_datadir}/ode
278 %{_datadir}/pic2plot
279 %{_datadir}/tek2plot
280
281 %files -n libplot
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
287
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}
295
296 %files -n libplot-static
297 %defattr(644,root,root,755)
298 %{_libdir}/libplot.a
299
300 %files -n libplotter
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_libdir}/libplotter.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libplotter.so.2
304
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
310
311 %files -n libplotter-static
312 %defattr(644,root,root,755)
313 %{_libdir}/libplotter.a
314
315 %files -n libxmi
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
320
321 %files -n libxmi-devel
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libxmi.so
324 %{_libdir}/libxmi.la
325 %{_includedir}/xmi.h
326 %{_infodir}/libxmi.info*
327
328 %files -n libxmi-static
329 %defattr(644,root,root,755)
330 %{_libdir}/libxmi.a
This page took 0.11207 seconds and 3 git commands to generate.