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