]> git.pld-linux.org Git - packages/plotutils.git/blame - plotutils.spec
- check-files cleanup
[packages/plotutils.git] / plotutils.spec
CommitLineData
7f159092 1%define LIBPLOT_VERSION 4.4
ad734c28 2%define LIBXMI_VERSION 1.3
d510b9e2 3Summary: GNU Plotutils -- plotting utilities
b8689883 4Summary(pl.UTF-8): Narzędzia do wykresów
5b9345f7 5Name: plotutils
b317776c 6Version: 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 9Release: 16
0176d9d3 10License: GPL v3+
5b9345f7 11Group: Applications/Graphics
51c6c376 12Source0: http://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
b317776c 13# Source0-md5: c08a424bd2438c80a786a7f4b5bb6a40
4ef21814 14Patch0: %{name}-info.patch
0176d9d3 15Patch1: %{name}-ac.patch
994f41ee 16Patch2: %{name}-libpng15.patch
cb8a6821 17Patch3: %{name}-format.patch
5b9345f7 18URL: http://www.gnu.org/software/plotutils/plotutils.html
bfe734fc 19BuildRequires: autoconf
20BuildRequires: automake
4ef510b4 21BuildRequires: flex
4ef510b4 22BuildRequires: libpng-devel
ad734c28 23BuildRequires: libstdc++-devel
bfe734fc 24BuildRequires: libtool
4ef21814 25BuildRequires: texinfo
b983959e
JB
26BuildRequires: xorg-lib-libXaw-devel
27BuildRequires: xorg-lib-libXext-devel
d743a78e 28Requires: libplot = %{LIBPLOT_VERSION}-%{release}
bfc900ef 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
5b9345f7 30
31%description
58c77afb 32The GNU plotting utilities include: (1) GNU libplot, a shared library
33for exporting 2-D vector graphics files and for performing vector
34graphics animation under the X Window System. Its output file formats
35include pseudo-GIF, PNM, Adobe Illustrator, Postscript (editable with
36the free 'idraw' drawing editor), Fig (editable with the free g'
37drawing editor), PCL 5, HP-GL and HP-GL/2, Tektronix, and GNU metafile
38format. Many Postscript, PCL, and Hershey fonts are supported. A
39separate class library, 'libplotter', provides a C++ binding to
40libplot's functionality. (2) Sample command-line applications 'graph',
41'plot', 'tek2plot', 'pic2plot', and 'plotfont', which are built on top
42of GNU libplot. 'graph' is a powerful utility for XY plotting, 'plot'
43translates GNU metafiles to other formats, 'tek2plot' translates
44legacy Tektronix data, 'pic2plot' translates box-and-arrow diagrams in
45the pic language, and 'plotfont' plots character maps. (3)
b8efccdb
JB
46Command-line applications 'spline', 'double', and 'ode', which are
47useful in scientific plotting. 'spline' does spline interpolation of
48input data of arbitrary dimensionality. It uses cubic splines, splines
49under tension, or cubic Bessel interpolation. 'ode' is an interactive
50program that can integrate a user-specified system of ordinary
51differential equations.
5b9345f7 52
25faa1f5
JR
53%description -l pl.UTF-8
54GNU Plotutils to pakiet zawierający narzędzia do tworzenia wykresów.
55Składa się z biblioteki GNU libplot, przykładowych programów
56działających z linii poleceń oraz aplikacji. GNU libplot to biblioteka
57do tworzenia plików z grafiką wektorową 2D i odtwarzania animowanej
58grafiki wektorowej w środowisku X Window System. libplot potrafi
59zapisywać w formatach m.in. GIF, PNM, Adobe Illustrator, Postscript,
60Fig, PCL 5, HP-GL i GP-GL/2, Tektronix i GNU metafile. Obsługuje wiele
61fontów Postscriptowych, PCL i Hershey. Oddzielna biblioteka libplotter
62daje interfejs C++ do funkcji libplot. Programy przykładowe to graph,
63plot, tek2plot, pic2plot i plotfont; pierwszy służy do rysowania, trzy
64kolejne do konwersji między różnymi formatami, ostatni do wyświetlania
65fontów. Aplikacje zawarte w pakiecie plotutils to spline, double oraz
66ode, przydatne do rysunków naukowych. spline tworzy interpolację
67splajnami dostarczonych danych o dowolnej liczbie wymiarów. ode jest
68interaktywnym programem do rozwiązywania układów równań różniczkowych.
d510b9e2 69
7253a929 70%package -n libplot
4ef510b4 71Summary: libplot plotting library - from plotutils package
b8689883 72Summary(pl.UTF-8): libplot -- Biblioteka do kreślenia z pakietu plotutils
d510b9e2 73Version: %{LIBPLOT_VERSION}
91788bb7 74Group: Libraries
0176d9d3 75Requires(post,postun): fontpostinst
d510b9e2 76
7253a929 77%description -n libplot
a0afa5d1 78GNU libplot: a function library for exporting two-dimensional vector
79graphics files, and for displaying animated vector.
d510b9e2 80
25faa1f5 81%description -n libplot -l pl.UTF-8
a0afa5d1 82GNU libplot: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
25faa1f5 83lub wyświetlania animowanych obrazów wektorowych pod X Window.
d510b9e2 84
7253a929 85%package -n libplot-devel
4ef510b4 86Summary: libplot header files
b8689883 87Summary(pl.UTF-8): Pliki nagłówkowe dla libplot
f2508b94 88Version: %{LIBPLOT_VERSION}
d510b9e2 89Group: Development/Libraries
d743a78e 90Requires: libplot = %{LIBPLOT_VERSION}-%{release}
f2508b94 91Requires: libpng-devel
b983959e
JB
92Requires: xorg-lib-libXaw-devel
93Requires: xorg-lib-libXext-devel
d510b9e2 94
4ef510b4
JB
95%description -n libplot-devel
96libplot header files.
97
25faa1f5
JR
98%description -n libplot-devel -l pl.UTF-8
99Pliki nagłówkowe dla libplot.
d510b9e2 100
7253a929 101%package -n libplot-static
f2508b94 102Summary: libplot static library
b8689883 103Summary(pl.UTF-8): Biblioteka statyczna libplot
f2508b94 104Version: %{LIBPLOT_VERSION}
d510b9e2 105Group: Development/Libraries
d743a78e 106Requires: libplot-devel = %{LIBPLOT_VERSION}-%{release}
d510b9e2 107
7253a929 108%description -n libplot-static
f2508b94 109libplot static library.
d510b9e2 110
25faa1f5 111%description -n libplot-static -l pl.UTF-8
4ef510b4 112Biblioteka statyczna libplot.
5b9345f7 113
7253a929 114%package -n libplotter
4ef510b4 115Summary: libplotter plotting library - from plotutils package
b8689883 116Summary(pl.UTF-8): libplotter - biblioteka do kreślenia z pakietu plotutils
7253a929 117Version: %{LIBPLOT_VERSION}
91788bb7 118Group: Libraries
7253a929
JK
119
120%description -n libplotter
121GNU libplotter: a function library for exporting two-dimensional
122vector graphics files, and for displaying animated vector.
123
25faa1f5 124%description -n libplotter -l pl.UTF-8
7253a929 125GNU libplotter: biblioteka do tworzenia dwuwymiarowej grafiki
25faa1f5 126wektorowej lub wyświetlania animowanych obrazów wektorowych pod X
7253a929
JK
127Window.
128
129%package -n libplotter-devel
4ef510b4 130Summary: libplotter header files
b8689883 131Summary(pl.UTF-8): Pliki nagłówkowe dla libplotter
f2508b94 132Version: %{LIBPLOT_VERSION}
7253a929 133Group: Development/Libraries
d743a78e 134Requires: libplotter = %{LIBPLOT_VERSION}-%{release}
f2508b94
JB
135Requires: libpng-devel
136Requires: libstdc++-devel
b983959e
JB
137Requires: xorg-lib-libXaw-devel
138Requires: xorg-lib-libXext-devel
7253a929 139
4ef510b4
JB
140%description -n libplotter-devel
141libplotter header files.
142
25faa1f5
JR
143%description -n libplotter-devel -l pl.UTF-8
144Pliki nagłówkowe dla libplotter.
7253a929
JK
145
146%package -n libplotter-static
f2508b94 147Summary: libplotter static library
b8689883 148Summary(pl.UTF-8): Biblioteka statyczna libplotter
f2508b94 149Version: %{LIBPLOT_VERSION}
7253a929 150Group: Development/Libraries
d743a78e 151Requires: libplotter-devel = %{LIBPLOT_VERSION}-%{release}
7253a929
JK
152
153%description -n libplotter-static
f2508b94 154libplotter static library.
7253a929 155
25faa1f5 156%description -n libplotter-static -l pl.UTF-8
4ef510b4 157Biblioteka statyczna libplotter.
7253a929
JK
158
159%package -n libxmi
4ef510b4 160Summary: libxmi library - from plotutils package
b8689883 161Summary(pl.UTF-8): libxmi - biblioteka z pakietu plotutils
7253a929 162Version: %{LIBXMI_VERSION}
91788bb7 163Group: Libraries
7253a929
JK
164
165%description -n libxmi
166GNU libxmi: a function library for exporting two-dimensional vector
167graphics files, and for displaying animated vector.
168
25faa1f5 169%description -n libxmi -l pl.UTF-8
7253a929 170GNU libxmi: biblioteka do tworzenia dwuwymiarowej grafiki wektorowej
25faa1f5 171lub wyświetlania animowanych obrazów wektorowych pod X Window.
7253a929
JK
172
173%package -n libxmi-devel
4ef510b4 174Summary: libxmi header files
b8689883 175Summary(pl.UTF-8): Pliki nagłówkowe dla libxmi
f2508b94 176Version: %{LIBXMI_VERSION}
7253a929 177Group: Development/Libraries
d743a78e 178Requires: libxmi = %{LIBXMI_VERSION}-%{release}
7253a929 179
4ef510b4
JB
180%description -n libxmi-devel
181libxmi header files.
182
25faa1f5
JR
183%description -n libxmi-devel -l pl.UTF-8
184Pliki nagłówkowe dla libxmi.
7253a929
JK
185
186%package -n libxmi-static
f2508b94 187Summary: Libxmi static library
b8689883 188Summary(pl.UTF-8): Biblioteka statyczna libxmi
f2508b94 189Version: %{LIBXMI_VERSION}
7253a929 190Group: Development/Libraries
d743a78e 191Requires: libxmi-devel = %{LIBXMI_VERSION}-%{release}
7253a929
JK
192
193%description -n libxmi-static
f2508b94 194libxmi static library.
7253a929 195
25faa1f5 196%description -n libxmi-static -l pl.UTF-8
4ef510b4 197Biblioteka 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
218rm -rf $RPM_BUILD_ROOT
db831734 219install -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
224cp -p fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_fontsdir}/misc
225gzip -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
231rm -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 247fontpostinst misc
db831734 248
16a29dd9 249%postun -n libplot
db831734 250/sbin/ldconfig
0176d9d3 251fontpostinst 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
This page took 0.211157 seconds and 4 git commands to generate.