]> git.pld-linux.org Git - packages/gnuplot.git/blob - gnuplot.spec
- honour libexecdir, configure cleanup; release 2
[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.7
21 Release:        2
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:  fbcb4715acf228fcd2957f9d218b9167
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:  lua51-devel >= 5.1
52 BuildRequires:  ncurses-devel
53 BuildRequires:  pango-devel > 1:1.10.2
54 # which version? it needs PDF_create_gstate,PDF_set_gstate symbols
55 %{?with_pdf:BuildRequires:      pdflib-devel > 4.0.2}
56 BuildRequires:  pkgconfig
57 BuildRequires:  readline-devel
58 # libvga, libvgagl, lib3dkit
59 %{?with_svga:BuildRequires:     svgalib-devel}
60 BuildRequires:  texinfo
61 BuildRequires:  texlive
62 BuildRequires:  texlive-format-pdflatex
63 BuildRequires:  texlive-latex
64 BuildRequires:  wxGTK2-unicode-devel >= 2.6
65 #BuildRequires: xemacs
66 BuildRequires:  xorg-lib-libX11-devel
67 BuildRequires:  zlib-devel
68 #or --without-lisp-files
69 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
71 %description
72 Gnuplot is a command-line driven, interactive function plotting
73 program especially suited for scientific data representation. Gnuplot
74 can be used to plot functions and data points in both two and three
75 dimensions and in many different formats.
76
77 %description -l de.UTF-8
78 Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
79 einem X-Fenster oder in eine Datei.
80
81 %description -l es.UTF-8
82 Este es el paquete GNU de ploteado. Se puede usar para crear gráficos
83 en X Window o para archivo.
84
85 %description -l fr.UTF-8
86 Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes
87 de données dans une fenêtre X ou vers un fichier.
88
89 %description -l hu.UTF-8
90 Gnuplot egy parancssor-vezérelt, interaktív függvényábrázoló program,
91 amely különösen alkalmas tudományos adatok megjelenítésére. A Gnuplot
92 alkalmas függvények és adathalmazok ábrázolására, kettő és három
93 dimenzióban, különféle formátumokban.
94
95 %description -l pl.UTF-8
96 GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
97 oglądać w okienku X.
98
99 %description -l pt_BR.UTF-8
100 Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em
101 X Window ou para arquivo.
102
103 %description -l ru.UTF-8
104 Gnuplot - это интерактивная программа построения графиков, управляемая
105 с командной строки. Gnuplot особенно хорошо подходит для презентации
106 научных данных и может применяться для отображения функций и данных в
107 2-х и 3-х измерениях и во многих различных форматах.
108
109 %description -l tr.UTF-8
110 Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiğinin elde
111 edilmesinde kullanılan, çok yetenekli bir görselleştirme aracıdır.
112
113 %description -l uk.UTF-8
114 Gnuplot - це інтерактивна програма побудови графіків, яка керується з
115 командного рядка. Gnuplot особливо гарно підходить для презентації
116 наукових даних та може застосовуватись для відображення функцій та
117 даних в 2-х та 3-х вимірах та в багатьох різних форматах.
118
119 %package latex
120 Summary:        gnuplot support for LaTeX
121 Summary(pl.UTF-8):      Obsługa gnuplota dla LaTeXa
122 Group:          Applications/Publishing/TeX
123 # which subpackages? required tex packages: tikz,xxcolor,ifpdf,ifxetex
124 Requires:       texlive
125
126 %description latex
127 gnuplot support for LaTeX.
128
129 %description latex -l pl.UTF-8
130 Obsługa gnuplota dla LaTeXa.
131
132 %prep
133 %setup -q
134 %patch0 -p1
135 %patch1 -p1
136 %patch2 -p1
137 %patch3 -p0
138
139 %build
140 %{__libtoolize}
141 %{__aclocal} -I m4
142 %{__autoconf}
143 %{__autoheader}
144 %{__automake}
145
146 %configure \
147         EMACS=no \
148         --enable-history-file \
149         %{?with_qt:--enable-qt} \
150         --with-gd \
151         %{?with_ggi:--with-ggi} \
152         %{?with_svga:--with-linux-vga} \
153         --without-lisp-files \
154         %{!?with_pdf:--without-pdf} \
155         --with-readline=gnu \
156         --with-texdir=%{_datadir}/texmf-dist/tex/latex/gnuplot \
157         --without-tutorial \
158         --with-wx-single-threaded \
159         --with-x \
160         %{?with_ggixmi:--with-xmi}
161
162 %{__make}
163
164 cd docs
165 makeinfo gnuplot.texi
166 cd ..
167
168 %install
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
171
172 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
173 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
174
175 %{__make} install \
176         DESTDIR=$RPM_BUILD_ROOT \
177         appdefaultdir=%{_datadir}/X11/app-defaults
178
179 %clean
180 rm -rf $RPM_BUILD_ROOT
181
182 %post   -p /sbin/postshell
183 -/usr/sbin/fix-info-dir -c %{_infodir}
184
185 %postun -p /sbin/postshell
186 -/usr/sbin/fix-info-dir -c %{_infodir}
187
188 %files
189 %defattr(644,root,root,755)
190 %doc docs/psdoc/ps_guide.ps
191 %attr(755,root,root) %{_bindir}/gnuplot
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
196 %{_mandir}/man1/gnuplot.1*
197 %{_datadir}/%{name}
198 %{_infodir}/gnuplot.info*
199 %{_desktopdir}/gnuplot.desktop
200 %{_pixmapsdir}/gnuplot.png
201 %{_datadir}/X11/app-defaults/Gnuplot
202
203 %files latex
204 %defattr(644,root,root,755)
205 %{_datadir}/texmf-dist/tex/latex/gnuplot
This page took 0.117466 seconds and 3 git commands to generate.