]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
- release 3: regenerate ac/am/lt files for make spec ac 2.50 ready.
[packages/plotutils.git] / plotutils.spec
1 %define LIBPLOT_VERSION 4.0
2 %define LIBXMI_VERSION 1.2
3
4 Summary:        GNU Plotutils -- plotting utilities
5 Summary(pl):    Narzêdzia do wykresów
6 Name:           plotutils
7 Version:        2.4.1
8 Release:        3
9 License:        GPL
10 Group:          Applications/Graphics
11 Group(de):      Applikationen/Grafik
12 Group(pl):      Aplikacje/Grafika
13 Source0:        ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
14 Patch0:         %{name}-info.patch
15 URL:            http://www.gnu.org/software/plotutils/plotutils.html
16 BuildRequires:  XFree86-devel
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  flex
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libpng-devel
22 BuildRequires:  libtool
23 BuildRequires:  texinfo
24 Requires:       libplot
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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 e', which are useful
43 in scientific plotting. 'spline' does spline interpolation of input
44 data of arbitrary dimensionality. It uses cubic splines, splines under
45 tension, or cubic Bessel interpolation. e' is an interactive program
46 that can integrate a user-specified system of ordinary differential
47 equations.
48
49 %description -l pl
50 GNU Plotutils to pakiet zawieraj±cy narzêdzia do tworzenia wykresów.
51 Umo¿liwiaj± one wy¶wietlanie wykresów w oknie X Window i zapisywanie w
52 formatach takich jak .pnm .gif .ai .ps .fig .pcl .hpgl .tek
53 http://www.gnu.org/software/plotutils/plotutils.html
54
55 %package -n libplot
56 Summary:        libplot plotting library - from plotutils package
57 Summary(pl):    libplot -- Biblioteka do kre¶lenia z pakietu plotutils
58 Group:          Development/Libraries
59 Group(de):      Entwicklung/Libraries
60 Group(fr):      Development/Librairies
61 Group(pl):      Programowanie/Biblioteki
62 Version:        %{LIBPLOT_VERSION}
63
64 %description -n libplot
65 GNU libplot: a function library for exporting two-dimensional vector
66 graphics files, and for displaying animated vector.
67
68 %description -l pl -n libplot
69 GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
70 lub wy¶wietlania animowanych obrazów wektorowych pod X Window.
71
72 %package -n libplot-devel
73 Summary:        libplot header files
74 Summary(pl):    Pliki nag³ówkowe dla libplot
75 Group:          Development/Libraries
76 Group(de):      Entwicklung/Libraries
77 Group(fr):      Development/Librairies
78 Group(pl):      Programowanie/Biblioteki
79 Requires:       libplot = %{LIBPLOT_VERSION}
80 Version:        %{LIBPLOT_VERSION}
81
82 %description -n libplot-devel
83 libplot header files.
84
85 %description -l pl -n libplot-devel
86 Pliki nag³ówkowe dla libplot.
87
88 %package -n libplot-static
89 Summary:        libplot static libraries
90 Summary(pl):    Biblioteki statyczne libplot
91 Group:          Development/Libraries
92 Group(de):      Entwicklung/Libraries
93 Group(fr):      Development/Librairies
94 Group(pl):      Programowanie/Biblioteki
95 Requires:       libplot-devel = %{LIBPLOT_VERSION}
96 Version:        %{LIBPLOT_VERSION}
97
98 %description -n libplot-static
99 libplot static libraries.
100
101 %description -l pl -n libplot-static
102 Biblioteka statyczna libplot.
103
104 %package -n libplotter
105 Summary:        libplotter plotting library - from plotutils package
106 Summary(pl):    libplotter - biblioteka do kre¶lenia z pakietu plotutils
107 Group:          Development/Libraries
108 Group(de):      Entwicklung/Libraries
109 Group(fr):      Development/Librairies
110 Group(pl):      Programowanie/Biblioteki
111 Version:        %{LIBPLOT_VERSION}
112
113 %description -n libplotter
114 GNU libplotter: a function library for exporting two-dimensional
115 vector graphics files, and for displaying animated vector.
116
117 %description -l pl -n libplotter
118 GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki
119 wektorowej lub wy¶wietlania animowanych obrazów wektorowych pod X
120 Window.
121
122 %package -n libplotter-devel
123 Summary:        libplotter header files
124 Summary(pl):    Pliki nag³ówkowe dla libplotter
125 Group:          Development/Libraries
126 Group(de):      Entwicklung/Libraries
127 Group(fr):      Development/Librairies
128 Group(pl):      Programowanie/Biblioteki
129 Requires:       libplotter = %{LIBPLOT_VERSION}
130 Version:        %{LIBPLOT_VERSION}
131
132 %description -n libplotter-devel
133 libplotter header files.
134
135 %description -l pl -n libplotter-devel
136 Pliki nag³ówkowe dla libplotter.
137
138 %package -n libplotter-static
139 Summary:        libplotter static libraries
140 Summary(pl):    Biblioteki statyczne libplotter
141 Group:          Development/Libraries
142 Group(de):      Entwicklung/Libraries
143 Group(fr):      Development/Librairies
144 Group(pl):      Programowanie/Biblioteki
145 Requires:       libplotter-devel = %{LIBPLOT_VERSION}
146 Version:        %{LIBPLOT_VERSION}
147
148 %description -n libplotter-static
149 libplotter static libraries.
150
151 %description -l pl -n libplotter-static
152 Biblioteka statyczna libplotter.
153
154 %package -n libxmi
155 Summary:        libxmi library - from plotutils package
156 Summary(pl):    libxmi - biblioteka z pakietu plotutils
157 Group:          Development/Libraries
158 Group(de):      Entwicklung/Libraries
159 Group(fr):      Development/Librairies
160 Group(pl):      Programowanie/Biblioteki
161 Version:        %{LIBXMI_VERSION}
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 -l pl -n libxmi
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):    Pliki nag³ówkowe dla libxmi
174 Group:          Development/Libraries
175 Group(de):      Entwicklung/Libraries
176 Group(fr):      Development/Librairies
177 Group(pl):      Programowanie/Biblioteki
178 Requires:       libxmi = %{LIBXMI_VERSION}
179 Version:        %{LIBXMI_VERSION}
180
181 %description -n libxmi-devel
182 libxmi header files.
183
184 %description -l pl -n libxmi-devel
185 Pliki nag³ówkowe dla libxmi.
186
187 %package -n libxmi-static
188 Summary:        Libxmi static libraries
189 Summary(pl):    Biblioteki statyczne libxmi
190 Group:          Development/Libraries
191 Group(de):      Entwicklung/Libraries
192 Group(fr):      Development/Librairies
193 Group(pl):      Programowanie/Biblioteki
194 Requires:       libxmi-devel = %{LIBXMI_VERSION}
195 Version:        %{LIBXMI_VERSION}
196
197 %description -n libxmi-static
198 libxmi static libraries.
199
200 %description -l pl -n libxmi-static
201 Biblioteka statyczna libxmi.
202
203 %prep
204 %setup -q
205 %patch0 -p1
206
207 %build
208 libtoolize --copy --force
209 aclocal
210 autoconf
211 automake -a -c
212 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
213 %configure \
214         --enable-libplotter \
215         --enable-libxmi
216 %{__make}
217
218 %install
219 rm -rf $RPM_BUILD_ROOT
220 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
221
222 %{__make} install \
223         DESTDIR=$RPM_BUILD_ROOT
224
225 install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
226 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
227
228 gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/* \
229         AUTHORS COMPAT KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO \
230         doc/{demo-page,*.doc,*.txt,*.bib} \
231         libplot/{DEDICATION,HUMOR,README*,VERSION} \
232         libxmi/{AUTHORS,NEWS,README*,TODO,VERSION}
233
234 %clean
235 rm -rf $RPM_BUILD_ROOT
236
237 %post
238 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
239
240 %postun 
241 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
242
243 %post -n libxmi-devel
244 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
245
246 %postun -n libxmi-devel
247 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
248
249 %post   -n libplot
250 /sbin/ldconfig
251 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
252
253 %postun -n libplot
254 /sbin/ldconfig
255 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
256
257 %post   -n libplotter -p /sbin/ldconfig
258 %postun -n libplotter -p /sbin/ldconfig
259
260 %post   -n libxmi -p /sbin/ldconfig
261 %postun -n libxmi -p /sbin/ldconfig
262
263 %files
264 %defattr(644,root,root,755)
265 %doc *.gz
266 %attr(755,root,root) %{_bindir}/*
267 %{_infodir}/plotutils.info*
268 %{_mandir}/man1/*
269 %{_datadir}/ode
270 %{_datadir}/pic2plot
271 %{_datadir}/tek2plot
272
273 %files -n libplot
274 %defattr(644,root,root,755)
275 %doc doc/*.gz
276 %attr(755,root,root) %{_libdir}/libplot.so.*.*
277 %{_fontsdir}/misc/*
278
279 %files -n libplot-devel
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/libplot.so
282 %attr(755,root,root) %{_libdir}/libplot.la
283 %doc libplot/*.gz
284 %{_examplesdir}/libplot-%{LIBPLOT_VERSION}
285 %{_includedir}/plot.h
286 %{_includedir}/plotcompat.h
287
288 %files -n libplot-static
289 %defattr(644,root,root,755)
290 %{_libdir}/libplot.a
291  
292 %files -n libplotter
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_libdir}/libplotter.so.*.*
295
296 %files -n libplotter-devel
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libplotter.so
299 %attr(755,root,root) %{_libdir}/libplotter.la
300 %{_includedir}/plotter.h
301
302 %files -n libplotter-static
303 %defattr(644,root,root,755)
304 %{_libdir}/libplotter.a
305
306 %files -n libxmi
307 %defattr(644,root,root,755)
308 %doc libxmi/*.gz
309 %attr(755,root,root) %{_libdir}/libxmi.so.*.*
310
311 %files -n libxmi-devel
312 %defattr(644,root,root,755)
313 %{_infodir}/libxmi.info*
314 %attr(755,root,root) %{_libdir}/libxmi.so
315 %attr(755,root,root) %{_libdir}/libxmi.la
316 %{_includedir}/xmi.h
317
318 %files -n libxmi-static
319 %defattr(644,root,root,755)
320 %{_libdir}/libxmi.a
321     
This page took 0.105282 seconds and 4 git commands to generate.