]> git.pld-linux.org Git - packages/gnuplot.git/blame - gnuplot.spec
- honour libexecdir, configure cleanup; release 2
[packages/gnuplot.git] / gnuplot.spec
CommitLineData
c418a34a 1#
cbce579f 2# Conditional build:
c418a34a
JB
3%bcond_with ggi # GGI driver
4%bcond_with ggixmi # GGI XMI support for pm3d
5%bcond_with pdf # PDF terminal (based on PDFLib)
cbce579f 6%bcond_with qt # build Qt terminal
c418a34a
JB
7%bcond_with svga # Linux SVGA console driver
8#
dddd49b2 9Summary: A program for plotting mathematical expressions and data
edeea3b8
ER
10Summary(de.UTF-8): GNU-Plotter-Paket
11Summary(es.UTF-8): Paquete para trazar gráficos
12Summary(fr.UTF-8): Le programme de traçage de courbe de GNU
5dca2bb0 13Summary(hu.UTF-8): Matematikai függvények és adatok ábrázolása
edeea3b8
ER
14Summary(pl.UTF-8): Program GNU do robienia wykresów
15Summary(pt_BR.UTF-8): Pacote para traçar gráficos
16Summary(ru.UTF-8): Программа для построения графиков математических выражений и данных
17Summary(tr.UTF-8): Matematiksel görselleştirme paketi
18Summary(uk.UTF-8): Програма для побудови графіків математичних виразів та даних
dddd49b2 19Name: gnuplot
51890567 20Version: 4.6.7
ff13c828 21Release: 2
abf74b3e 22License: distributable (with modifications properly marked if any)
dddd49b2 23Group: Applications/Math
8b449474 24Source0: http://downloads.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz
51890567 25# Source0-md5: fbcb4715acf228fcd2957f9d218b9167
802d5df1 26Source1: %{name}.desktop
9dfa78c8 27Source2: %{name}.png
c268a6a0 28Patch0: %{name}-info.patch
a2ca0919 29Patch1: %{name}-info_install.patch
4f75b087 30Patch2: %{name}-lua.patch
8b449474 31Patch3: %{name}-wx-config.patch
7818be62 32URL: http://gnuplot.sourceforge.net/
cbce579f
KK
33%if %{with qt}
34BuildRequires: QtCore-devel >= 4.5
35BuildRequires: QtGui-devel >= 4.5
36BuildRequires: QtNetwork-devel >= 4.5
37BuildRequires: QtSvg-devel >= 4.5
c418a34a
JB
38BuildRequires: qt4-build >= 4.5
39BuildRequires: qt4-linguist >= 4.5
cbce579f 40%endif
3fc24d07 41BuildRequires: autoconf >= 2.60
3b1276dd 42BuildRequires: automake >= 1:1.7.9
c418a34a
JB
43BuildRequires: cairo-devel >= 1.6
44BuildRequires: gd-devel >= 2.0
41890360 45BuildRequires: glib2-devel
3b1276dd 46BuildRequires: gtk+2-devel >= 2:2.8.0
c418a34a
JB
47%{?with_ggi:BuildRequires: libggi-devel}
48# ???
49%{?with_ggixmi:BuildRequires: libggi-xmi-devel}
a84fd73d 50BuildRequires: libpng-devel >= 1.0.8
ff13c828 51BuildRequires: lua51-devel >= 5.1
81f48443 52BuildRequires: ncurses-devel
3b1276dd 53BuildRequires: pango-devel > 1:1.10.2
c418a34a
JB
54# which version? it needs PDF_create_gstate,PDF_set_gstate symbols
55%{?with_pdf:BuildRequires: pdflib-devel > 4.0.2}
41890360 56BuildRequires: pkgconfig
81f48443 57BuildRequires: readline-devel
c418a34a
JB
58# libvga, libvgagl, lib3dkit
59%{?with_svga:BuildRequires: svgalib-devel}
c2ee1abb 60BuildRequires: texinfo
4f75b087 61BuildRequires: texlive
4f75b087 62BuildRequires: texlive-format-pdflatex
41890360 63BuildRequires: texlive-latex
c418a34a 64BuildRequires: wxGTK2-unicode-devel >= 2.6
7a79b42f 65#BuildRequires: xemacs
2a98cd6a 66BuildRequires: xorg-lib-libX11-devel
67BuildRequires: zlib-devel
d7926f42 68#or --without-lisp-files
0e6ca9f6 69BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a6224fbc 70
71%description
5d245235 72Gnuplot is a command-line driven, interactive function plotting
73program especially suited for scientific data representation. Gnuplot
74can be used to plot functions and data points in both two and three
75dimensions and in many different formats.
a6224fbc 76
ca6dfdd2 77%description -l de.UTF-8
5d245235 78Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
79einem X-Fenster oder in eine Datei.
a6224fbc 80
ca6dfdd2
JR
81%description -l es.UTF-8
82Este es el paquete GNU de ploteado. Se puede usar para crear gráficos
0ccf8fe9 83en X Window o para archivo.
84
ca6dfdd2
JR
85%description -l fr.UTF-8
86Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes
87de données dans une fenêtre X ou vers un fichier.
a6224fbc 88
5dca2bb0
ZU
89%description -l hu.UTF-8
90Gnuplot egy parancssor-vezérelt, interaktív függvényábrázoló program,
91amely különösen alkalmas tudományos adatok megjelenítésére. A Gnuplot
92alkalmas függvények és adathalmazok ábrázolására, kettő és három
93dimenzióban, különféle formátumokban.
94
ca6dfdd2
JR
95%description -l pl.UTF-8
96GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
97oglądać w okienku X.
a6224fbc 98
ca6dfdd2
JR
99%description -l pt_BR.UTF-8
100Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em
0ccf8fe9 101X Window ou para arquivo.
102
ca6dfdd2
JR
103%description -l ru.UTF-8
104Gnuplot - это интерактивная программа построения графиков, управляемая
105с командной строки. Gnuplot особенно хорошо подходит для презентации
106научных данных и может применяться для отображения функций и данных в
1072-х и 3-х измерениях и во многих различных форматах.
c268a6a0 108
ca6dfdd2
JR
109%description -l tr.UTF-8
110Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiğinin elde
111edilmesinde kullanılan, çok yetenekli bir görselleştirme aracıdır.
a6224fbc 112
ca6dfdd2
JR
113%description -l uk.UTF-8
114Gnuplot - це інтерактивна програма побудови графіків, яка керується з
115командного рядка. Gnuplot особливо гарно підходить для презентації
116наукових даних та може застосовуватись для відображення функцій та
117даних в 2-х та 3-х вимірах та в багатьох різних форматах.
c268a6a0 118
34937da8 119%package latex
2588048a
JB
120Summary: gnuplot support for LaTeX
121Summary(pl.UTF-8): Obsługa gnuplota dla LaTeXa
34937da8 122Group: Applications/Publishing/TeX
2588048a
JB
123# which subpackages? required tex packages: tikz,xxcolor,ifpdf,ifxetex
124Requires: texlive
34937da8
ZU
125
126%description latex
2588048a
JB
127gnuplot support for LaTeX.
128
129%description latex -l pl.UTF-8
130Obsługa gnuplota dla LaTeXa.
34937da8 131
a6224fbc 132%prep
dddd49b2 133%setup -q
d7926f42 134%patch0 -p1
135%patch1 -p1
4f75b087 136%patch2 -p1
8b449474 137%patch3 -p0
a6224fbc 138
139%build
a2ca0919 140%{__libtoolize}
da51e9a6 141%{__aclocal} -I m4
a2ca0919 142%{__autoconf}
ff13c828 143%{__autoheader}
a2ca0919 144%{__automake}
dddd49b2 145
1d965241 146%configure \
7a79b42f 147 EMACS=no \
c2ee1abb 148 --enable-history-file \
cbce579f 149 %{?with_qt:--enable-qt} \
ff13c828 150 --with-gd \
c418a34a
JB
151 %{?with_ggi:--with-ggi} \
152 %{?with_svga:--with-linux-vga} \
d7926f42 153 --without-lisp-files \
fa794e7e 154 %{!?with_pdf:--without-pdf} \
ff13c828 155 --with-readline=gnu \
0e9cc5b6 156 --with-texdir=%{_datadir}/texmf-dist/tex/latex/gnuplot \
ff13c828
JB
157 --without-tutorial \
158 --with-wx-single-threaded \
159 --with-x \
160 %{?with_ggixmi:--with-xmi}
d7926f42 161
86b42e7d 162%{__make}
ff13c828 163
1d965241
JB
164cd docs
165makeinfo gnuplot.texi
c1f68fb1 166cd ..
a6224fbc 167
168%install
169rm -rf $RPM_BUILD_ROOT
8af3eb36 170install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
9dfa78c8 171
8af3eb36 172install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
9dfa78c8 173install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
a6224fbc 174
a2ca0919 175%{__make} install \
0eb25396 176 DESTDIR=$RPM_BUILD_ROOT \
8b449474 177 appdefaultdir=%{_datadir}/X11/app-defaults
533ebf3b 178
a6224fbc 179%clean
180rm -rf $RPM_BUILD_ROOT
181
6b2875a1 182%post -p /sbin/postshell
e376f8a3 183-/usr/sbin/fix-info-dir -c %{_infodir}
dddd49b2 184
6b2875a1 185%postun -p /sbin/postshell
e376f8a3 186-/usr/sbin/fix-info-dir -c %{_infodir}
dddd49b2 187
a6224fbc 188%files
533ebf3b 189%defattr(644,root,root,755)
aef05935 190%doc docs/psdoc/ps_guide.ps
6b2875a1 191%attr(755,root,root) %{_bindir}/gnuplot
ff13c828
JB
192%dir %{_libexecdir}/%{name}
193%dir %{_libexecdir}/%{name}/4.6
194%{?with_qt:%attr(755,root,root) %{_libexecdir}/%{name}/4.6/gnuplot_qt}
195%attr(755,root,root) %{_libexecdir}/%{name}/4.6/gnuplot_x11
6b2875a1 196%{_mandir}/man1/gnuplot.1*
c75bab2c 197%{_datadir}/%{name}
6b2875a1
JB
198%{_infodir}/gnuplot.info*
199%{_desktopdir}/gnuplot.desktop
200%{_pixmapsdir}/gnuplot.png
8b449474 201%{_datadir}/X11/app-defaults/Gnuplot
34937da8
ZU
202
203%files latex
204%defattr(644,root,root,755)
205%{_datadir}/texmf-dist/tex/latex/gnuplot
This page took 0.110774 seconds and 4 git commands to generate.