]> git.pld-linux.org Git - packages/plotutils.git/blob - plotutils.spec
- removed all Group fields translations (oure rpm now can handle translating
[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:        4
9 License:        GPL
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
18 BuildRequires:  flex
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libpng-devel
21 BuildRequires:  libtool
22 BuildRequires:  texinfo
23 Requires:       libplot
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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
46 equations.
47
48 %description -l pl
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
53
54 %package -n libplot
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}
59
60 %description -n libplot
61 GNU libplot: a function library for exporting two-dimensional vector
62 graphics files, and for displaying animated vector.
63
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.
67
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}
74
75 %description -n libplot-devel
76 libplot header files.
77
78 %description -l pl -n libplot-devel
79 Pliki nag³ówkowe dla libplot.
80
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}
87
88 %description -n libplot-static
89 libplot static libraries.
90
91 %description -l pl -n libplot-static
92 Biblioteka statyczna libplot.
93
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}
99
100 %description -n libplotter
101 GNU libplotter: a function library for exporting two-dimensional
102 vector graphics files, and for displaying animated vector.
103
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
107 Window.
108
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}
115
116 %description -n libplotter-devel
117 libplotter header files.
118
119 %description -l pl -n libplotter-devel
120 Pliki nag³ówkowe dla libplotter.
121
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}
128
129 %description -n libplotter-static
130 libplotter static libraries.
131
132 %description -l pl -n libplotter-static
133 Biblioteka statyczna libplotter.
134
135 %package -n libxmi
136 Summary:        libxmi library - from plotutils package
137 Summary(pl):    libxmi - biblioteka z pakietu plotutils
138 Group:          Development/Libraries
139 Version:        %{LIBXMI_VERSION}
140
141 %description -n libxmi
142 GNU libxmi: a function library for exporting two-dimensional vector
143 graphics files, and for displaying animated vector.
144
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.
148
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}
155
156 %description -n libxmi-devel
157 libxmi header files.
158
159 %description -l pl -n libxmi-devel
160 Pliki nag³ówkowe dla libxmi.
161
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}
168
169 %description -n libxmi-static
170 libxmi static libraries.
171
172 %description -l pl -n libxmi-static
173 Biblioteka statyczna libxmi.
174
175 %prep
176 %setup -q
177 %patch0 -p1
178 %patch1 -p1
179
180 %build
181 libtoolize --copy --force
182 aclocal
183 autoconf
184 automake -a -c
185 CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
186 %configure \
187         --enable-libplotter \
188         --enable-libxmi
189 %{__make}
190
191 %install
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc}
194
195 %{__make} install \
196         DESTDIR=$RPM_BUILD_ROOT
197
198 install doc/h-demo.c $RPM_BUILD_ROOT%{_examplesdir}/libplot-%{LIBPLOT_VERSION}
199 install fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
200
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}
206
207 %clean
208 rm -rf $RPM_BUILD_ROOT
209
210 %post
211 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
212
213 %postun 
214 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
215
216 %post -n libxmi-devel
217 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
218
219 %postun -n libxmi-devel
220 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
221
222 %post   -n libplot
223 /sbin/ldconfig
224 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
225
226 %postun -n libplot
227 /sbin/ldconfig
228 [ ! -x /usr/X11R6/bin/mkfontdir ] || /usr/X11R6/bin/mkfontdir %{_fontsdir}/misc
229
230 %post   -n libplotter -p /sbin/ldconfig
231 %postun -n libplotter -p /sbin/ldconfig
232
233 %post   -n libxmi -p /sbin/ldconfig
234 %postun -n libxmi -p /sbin/ldconfig
235
236 %files
237 %defattr(644,root,root,755)
238 %doc *.gz
239 %attr(755,root,root) %{_bindir}/*
240 %{_infodir}/plotutils.info*
241 %{_mandir}/man1/*
242 %{_datadir}/ode
243 %{_datadir}/pic2plot
244 %{_datadir}/tek2plot
245
246 %files -n libplot
247 %defattr(644,root,root,755)
248 %doc doc/*.gz
249 %attr(755,root,root) %{_libdir}/libplot.so.*.*
250 %{_fontsdir}/misc/*
251
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
256 %doc libplot/*.gz
257 %{_examplesdir}/libplot-%{LIBPLOT_VERSION}
258 %{_includedir}/plot.h
259 %{_includedir}/plotcompat.h
260
261 %files -n libplot-static
262 %defattr(644,root,root,755)
263 %{_libdir}/libplot.a
264  
265 %files -n libplotter
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libdir}/libplotter.so.*.*
268
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
274
275 %files -n libplotter-static
276 %defattr(644,root,root,755)
277 %{_libdir}/libplotter.a
278
279 %files -n libxmi
280 %defattr(644,root,root,755)
281 %doc libxmi/*.gz
282 %attr(755,root,root) %{_libdir}/libxmi.so.*.*
283
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
289 %{_includedir}/xmi.h
290
291 %files -n libxmi-static
292 %defattr(644,root,root,755)
293 %{_libdir}/libxmi.a
294     
This page took 0.298777 seconds and 3 git commands to generate.