]>
Commit | Line | Data |
---|---|---|
7f159092 | 1 | %define LIBPLOT_VERSION 4.4 |
ad734c28 | 2 | %define LIBXMI_VERSION 1.3 |
d510b9e2 | 3 | Summary: GNU Plotutils -- plotting utilities |
b8689883 | 4 | Summary(pl.UTF-8): Narzędzia do wykresów |
5b9345f7 | 5 | Name: plotutils |
b317776c | 6 | Version: 2.6 |
ad734c28 ER |
7 | # Don't decrease release if LIBPLOT/LIBXMI versions are not increased, as then |
8 | # those subpackages get then lower release | |
afaa5b1f | 9 | Release: 16 |
0176d9d3 | 10 | License: GPL v3+ |
5b9345f7 | 11 | Group: Applications/Graphics |
51c6c376 | 12 | Source0: http://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz |
b317776c | 13 | # Source0-md5: c08a424bd2438c80a786a7f4b5bb6a40 |
4ef21814 | 14 | Patch0: %{name}-info.patch |
0176d9d3 | 15 | Patch1: %{name}-ac.patch |
994f41ee | 16 | Patch2: %{name}-libpng15.patch |
cb8a6821 | 17 | Patch3: %{name}-format.patch |
5b9345f7 | 18 | URL: http://www.gnu.org/software/plotutils/plotutils.html |
bfe734fc | 19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
4ef510b4 | 21 | BuildRequires: flex |
4ef510b4 | 22 | BuildRequires: libpng-devel |
ad734c28 | 23 | BuildRequires: libstdc++-devel |
bfe734fc | 24 | BuildRequires: libtool |
4ef21814 | 25 | BuildRequires: texinfo |
b983959e JB |
26 | BuildRequires: xorg-lib-libXaw-devel |
27 | BuildRequires: xorg-lib-libXext-devel | |
d743a78e | 28 | Requires: libplot = %{LIBPLOT_VERSION}-%{release} |
bfc900ef | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5b9345f7 | 30 | |
31 | %description | |
58c77afb | 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) | |
b8efccdb JB |
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. | |
5b9345f7 | 52 | |
25faa1f5 JR |
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. | |
d510b9e2 | 69 | |
7253a929 | 70 | %package -n libplot |
4ef510b4 | 71 | Summary: libplot plotting library - from plotutils package |
b8689883 | 72 | Summary(pl.UTF-8): libplot -- Biblioteka do kreślenia z pakietu plotutils |
d510b9e2 | 73 | Version: %{LIBPLOT_VERSION} |
91788bb7 | 74 | Group: Libraries |
0176d9d3 | 75 | Requires(post,postun): fontpostinst |
d510b9e2 | 76 | |
7253a929 | 77 | %description -n libplot |
a0afa5d1 | 78 | GNU libplot: a function library for exporting two-dimensional vector |
79 | graphics files, and for displaying animated vector. | |
d510b9e2 | 80 | |
25faa1f5 | 81 | %description -n libplot -l pl.UTF-8 |
a0afa5d1 | 82 | GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej |
25faa1f5 | 83 | lub wyświetlania animowanych obrazów wektorowych pod X Window. |
d510b9e2 | 84 | |
7253a929 | 85 | %package -n libplot-devel |
4ef510b4 | 86 | Summary: libplot header files |
b8689883 | 87 | Summary(pl.UTF-8): Pliki nagłówkowe dla libplot |
f2508b94 | 88 | Version: %{LIBPLOT_VERSION} |
d510b9e2 | 89 | Group: Development/Libraries |
d743a78e | 90 | Requires: libplot = %{LIBPLOT_VERSION}-%{release} |
f2508b94 | 91 | Requires: libpng-devel |
b983959e JB |
92 | Requires: xorg-lib-libXaw-devel |
93 | Requires: xorg-lib-libXext-devel | |
d510b9e2 | 94 | |
4ef510b4 JB |
95 | %description -n libplot-devel |
96 | libplot header files. | |
97 | ||
25faa1f5 JR |
98 | %description -n libplot-devel -l pl.UTF-8 |
99 | Pliki nagłówkowe dla libplot. | |
d510b9e2 | 100 | |
7253a929 | 101 | %package -n libplot-static |
f2508b94 | 102 | Summary: libplot static library |
b8689883 | 103 | Summary(pl.UTF-8): Biblioteka statyczna libplot |
f2508b94 | 104 | Version: %{LIBPLOT_VERSION} |
d510b9e2 | 105 | Group: Development/Libraries |
d743a78e | 106 | Requires: libplot-devel = %{LIBPLOT_VERSION}-%{release} |
d510b9e2 | 107 | |
7253a929 | 108 | %description -n libplot-static |
f2508b94 | 109 | libplot static library. |
d510b9e2 | 110 | |
25faa1f5 | 111 | %description -n libplot-static -l pl.UTF-8 |
4ef510b4 | 112 | Biblioteka statyczna libplot. |
5b9345f7 | 113 | |
7253a929 | 114 | %package -n libplotter |
4ef510b4 | 115 | Summary: libplotter plotting library - from plotutils package |
b8689883 | 116 | Summary(pl.UTF-8): libplotter - biblioteka do kreślenia z pakietu plotutils |
7253a929 | 117 | Version: %{LIBPLOT_VERSION} |
91788bb7 | 118 | Group: Libraries |
7253a929 JK |
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 | ||
25faa1f5 | 124 | %description -n libplotter -l pl.UTF-8 |
7253a929 | 125 | GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki |
25faa1f5 | 126 | wektorowej lub wyświetlania animowanych obrazów wektorowych pod X |
7253a929 JK |
127 | Window. |
128 | ||
129 | %package -n libplotter-devel | |
4ef510b4 | 130 | Summary: libplotter header files |
b8689883 | 131 | Summary(pl.UTF-8): Pliki nagłówkowe dla libplotter |
f2508b94 | 132 | Version: %{LIBPLOT_VERSION} |
7253a929 | 133 | Group: Development/Libraries |
d743a78e | 134 | Requires: libplotter = %{LIBPLOT_VERSION}-%{release} |
f2508b94 JB |
135 | Requires: libpng-devel |
136 | Requires: libstdc++-devel | |
b983959e JB |
137 | Requires: xorg-lib-libXaw-devel |
138 | Requires: xorg-lib-libXext-devel | |
7253a929 | 139 | |
4ef510b4 JB |
140 | %description -n libplotter-devel |
141 | libplotter header files. | |
142 | ||
25faa1f5 JR |
143 | %description -n libplotter-devel -l pl.UTF-8 |
144 | Pliki nagłówkowe dla libplotter. | |
7253a929 JK |
145 | |
146 | %package -n libplotter-static | |
f2508b94 | 147 | Summary: libplotter static library |
b8689883 | 148 | Summary(pl.UTF-8): Biblioteka statyczna libplotter |
f2508b94 | 149 | Version: %{LIBPLOT_VERSION} |
7253a929 | 150 | Group: Development/Libraries |
d743a78e | 151 | Requires: libplotter-devel = %{LIBPLOT_VERSION}-%{release} |
7253a929 JK |
152 | |
153 | %description -n libplotter-static | |
f2508b94 | 154 | libplotter static library. |
7253a929 | 155 | |
25faa1f5 | 156 | %description -n libplotter-static -l pl.UTF-8 |
4ef510b4 | 157 | Biblioteka statyczna libplotter. |
7253a929 JK |
158 | |
159 | %package -n libxmi | |
4ef510b4 | 160 | Summary: libxmi library - from plotutils package |
b8689883 | 161 | Summary(pl.UTF-8): libxmi - biblioteka z pakietu plotutils |
7253a929 | 162 | Version: %{LIBXMI_VERSION} |
91788bb7 | 163 | Group: Libraries |
7253a929 JK |
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 | ||
25faa1f5 | 169 | %description -n libxmi -l pl.UTF-8 |
7253a929 | 170 | GNU libxmi: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej |
25faa1f5 | 171 | lub wyświetlania animowanych obrazów wektorowych pod X Window. |
7253a929 JK |
172 | |
173 | %package -n libxmi-devel | |
4ef510b4 | 174 | Summary: libxmi header files |
b8689883 | 175 | Summary(pl.UTF-8): Pliki nagłówkowe dla libxmi |
f2508b94 | 176 | Version: %{LIBXMI_VERSION} |
7253a929 | 177 | Group: Development/Libraries |
d743a78e | 178 | Requires: libxmi = %{LIBXMI_VERSION}-%{release} |
7253a929 | 179 | |
4ef510b4 JB |
180 | %description -n libxmi-devel |
181 | libxmi header files. | |
182 | ||
25faa1f5 JR |
183 | %description -n libxmi-devel -l pl.UTF-8 |
184 | Pliki nagłówkowe dla libxmi. | |
7253a929 JK |
185 | |
186 | %package -n libxmi-static | |
f2508b94 | 187 | Summary: Libxmi static library |
b8689883 | 188 | Summary(pl.UTF-8): Biblioteka statyczna libxmi |
f2508b94 | 189 | Version: %{LIBXMI_VERSION} |
7253a929 | 190 | Group: Development/Libraries |
d743a78e | 191 | Requires: libxmi-devel = %{LIBXMI_VERSION}-%{release} |
7253a929 JK |
192 | |
193 | %description -n libxmi-static | |
f2508b94 | 194 | libxmi static library. |
7253a929 | 195 | |
25faa1f5 | 196 | %description -n libxmi-static -l pl.UTF-8 |
4ef510b4 | 197 | Biblioteka statyczna libxmi. |
7253a929 | 198 | |
5b9345f7 | 199 | %prep |
200 | %setup -q | |
4ef21814 | 201 | %patch0 -p1 |
0176d9d3 | 202 | %patch1 -p1 |
994f41ee | 203 | %patch2 -p1 |
cb8a6821 | 204 | %patch3 -p1 |
5b9345f7 | 205 | |
206 | %build | |
ced8247d | 207 | %{__libtoolize} |
d175bf68 | 208 | %{__aclocal} |
2ee286a0 | 209 | %{__autoconf} |
b983959e | 210 | %{__autoheader} |
2ee286a0 | 211 | %{__automake} |
5208de7b | 212 | %configure \ |
7253a929 JK |
213 | --enable-libplotter \ |
214 | --enable-libxmi | |
5590eddf | 215 | %{__make} |
5b9345f7 | 216 | |
217 | %install | |
218 | rm -rf $RPM_BUILD_ROOT | |
db831734 | 219 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/libplot-%{LIBPLOT_VERSION},%{_fontsdir}/misc} |
bdd8d4b0 | 220 | |
4d0fa27c | 221 | %{__make} install \ |
7253a929 | 222 | DESTDIR=$RPM_BUILD_ROOT |
bdd8d4b0 | 223 | |
0e414c15 JB |
224 | cp -p fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc |
225 | gzip -9nf $RPM_BUILD_ROOT%{_fontsdir}/misc/*.pcf | |
58c77afb | 226 | |
0e414c15 JB |
227 | # packaged as %doc |
228 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/libplot/{README,*.txt,*.bib} | |
5b9345f7 | 229 | |
230 | %clean | |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
0176d9d3 | 233 | %post -p /sbin/postshell |
63fff422 | 234 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5b9345f7 | 235 | |
0176d9d3 | 236 | %postun -p /sbin/postshell |
63fff422 | 237 | -/usr/sbin/fix-info-dir -c %{_infodir} |
5b9345f7 | 238 | |
0176d9d3 | 239 | %post -n libxmi-devel -p /sbin/postshell |
d2725819 | 240 | -/usr/sbin/fix-info-dir -c %{_infodir} |
4ef510b4 | 241 | |
0176d9d3 | 242 | %postun -n libxmi-devel -p /sbin/postshell |
d2725819 | 243 | -/usr/sbin/fix-info-dir -c %{_infodir} |
4ef510b4 | 244 | |
16a29dd9 | 245 | %post -n libplot |
db831734 | 246 | /sbin/ldconfig |
0176d9d3 | 247 | fontpostinst misc |
db831734 | 248 | |
16a29dd9 | 249 | %postun -n libplot |
db831734 | 250 | /sbin/ldconfig |
0176d9d3 | 251 | fontpostinst misc |
7253a929 | 252 | |
16a29dd9 | 253 | %post -n libplotter -p /sbin/ldconfig |
254 | %postun -n libplotter -p /sbin/ldconfig | |
7253a929 | 255 | |
16a29dd9 | 256 | %post -n libxmi -p /sbin/ldconfig |
257 | %postun -n libxmi -p /sbin/ldconfig | |
7253a929 | 258 | |
5b9345f7 | 259 | %files |
260 | %defattr(644,root,root,755) | |
5208de7b | 261 | %doc AUTHORS COMPAT KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS TODO |
a8129204 JB |
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 | |
7253a929 | 271 | %{_infodir}/plotutils.info* |
a8129204 JB |
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* | |
5fc53bba | 277 | %{_datadir}/ode |
7253a929 | 278 | %{_datadir}/pic2plot |
5fc53bba | 279 | %{_datadir}/tek2plot |
d510b9e2 | 280 | |
7253a929 JK |
281 | %files -n libplot |
282 | %defattr(644,root,root,755) | |
0e414c15 | 283 | %doc doc/{*.txt,*.bib} libplot/{DEDICATION,HUMOR,README*,VERSION} |
0176d9d3 JB |
284 | %attr(755,root,root) %{_libdir}/libplot.so.*.*.* |
285 | %attr(755,root,root) %ghost %{_libdir}/libplot.so.2 | |
286 | %{_fontsdir}/misc/tekfont*.pcf.gz | |
7253a929 JK |
287 | |
288 | %files -n libplot-devel | |
289 | %defattr(644,root,root,755) | |
290 | %attr(755,root,root) %{_libdir}/libplot.so | |
2331f050 | 291 | %{_libdir}/libplot.la |
7253a929 JK |
292 | %{_includedir}/plot.h |
293 | %{_includedir}/plotcompat.h | |
0176d9d3 | 294 | %{_examplesdir}/libplot-%{LIBPLOT_VERSION} |
7253a929 JK |
295 | |
296 | %files -n libplot-static | |
297 | %defattr(644,root,root,755) | |
4ef510b4 | 298 | %{_libdir}/libplot.a |
08ade49a | 299 | |
7253a929 JK |
300 | %files -n libplotter |
301 | %defattr(644,root,root,755) | |
0176d9d3 JB |
302 | %attr(755,root,root) %{_libdir}/libplotter.so.*.*.* |
303 | %attr(755,root,root) %ghost %{_libdir}/libplotter.so.2 | |
7253a929 JK |
304 | |
305 | %files -n libplotter-devel | |
306 | %defattr(644,root,root,755) | |
307 | %attr(755,root,root) %{_libdir}/libplotter.so | |
2331f050 | 308 | %{_libdir}/libplotter.la |
7253a929 JK |
309 | %{_includedir}/plotter.h |
310 | ||
311 | %files -n libplotter-static | |
312 | %defattr(644,root,root,755) | |
4ef510b4 | 313 | %{_libdir}/libplotter.a |
7253a929 JK |
314 | |
315 | %files -n libxmi | |
d510b9e2 | 316 | %defattr(644,root,root,755) |
5208de7b | 317 | %doc libxmi/{AUTHORS,NEWS,README*,TODO,VERSION} |
0176d9d3 JB |
318 | %attr(755,root,root) %{_libdir}/libxmi.so.*.*.* |
319 | %attr(755,root,root) %ghost %{_libdir}/libxmi.so.0 | |
d510b9e2 | 320 | |
7253a929 | 321 | %files -n libxmi-devel |
d510b9e2 | 322 | %defattr(644,root,root,755) |
7253a929 | 323 | %attr(755,root,root) %{_libdir}/libxmi.so |
2331f050 | 324 | %{_libdir}/libxmi.la |
7253a929 | 325 | %{_includedir}/xmi.h |
0176d9d3 | 326 | %{_infodir}/libxmi.info* |
d510b9e2 | 327 | |
7253a929 | 328 | %files -n libxmi-static |
d510b9e2 | 329 | %defattr(644,root,root,755) |
4ef510b4 | 330 | %{_libdir}/libxmi.a |