]> git.pld-linux.org Git - packages/asymptote.git/blob - asymptote.spec
f78af71d4591263f7a06827fce8403616aa6a40f
[packages/asymptote.git] / asymptote.spec
1 # TODO: OpenImageIO? (--enable-openimageio)
2 Summary:        Asymptote is a powerful descriptive vector graphics language for technical drawing
3 Summary(hu.UTF-8):      Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
4 Summary(pl.UTF-8):      Język opisu grafiki wektorowej do rysunków technicznych
5 Name:           asymptote
6 Version:        2.59
7 Release:        3
8 # uses GPL libraries (gsl, readline), so final license is GPL
9 License:        GPL v3+ (LGPL v3+ code)
10 Group:          Applications/Science
11 Source0:        http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
12 # Source0-md5:  d43d86b6e80faa7364ab57a6161ac1d0
13 Patch0:         %{name}-memrchr.patch
14 Patch1:         %{name}-info.patch
15 URL:            http://asymptote.sourceforge.net/
16 BuildRequires:  GLM
17 BuildRequires:  Mesa-libOSMesa-devel
18 BuildRequires:  OpenGL-GLU-devel
19 BuildRequires:  OpenGL-devel
20 BuildRequires:  OpenGL-glut-devel
21 BuildRequires:  autoconf >= 2.50
22 BuildRequires:  bison
23 BuildRequires:  fftw3-devel >= 3
24 BuildRequires:  flex
25 BuildRequires:  gc-c++-devel >= 8.0.4
26 BuildRequires:  gc-devel >= 8.0.4
27 BuildRequires:  ghostscript
28 BuildRequires:  gsl-devel >= 1.7
29 BuildRequires:  libstdc++-devel >= 6:4.7
30 BuildRequires:  ncurses-devel
31 BuildRequires:  python >= 2
32 BuildRequires:  readline-devel >= 4.3
33 BuildRequires:  rpm-pythonprov
34 BuildRequires:  texinfo
35 BuildRequires:  texinfo-texi2dvi >= 6.7
36 BuildRequires:  texlive-dvips
37 BuildRequires:  texlive-fonts-ams
38 BuildRequires:  texlive-format-pdflatex
39 BuildRequires:  texlive-latex
40 BuildRequires:  texlive-latex-ams
41 #BuildRequires: texlive-tex-babel
42 BuildRequires:  zlib-devel
43 Suggests:       ImageMagick-coder-dot
44 Suggests:       ImageMagick-coder-jpeg
45 Suggests:       ImageMagick-coder-png
46 # e.g. "label" command needs latex
47 Suggests:       texlive-latex
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50 %define texmfdist %{_datadir}/texmf-dist
51
52 %description
53 Asymptote is a powerful descriptive vector graphics language for
54 technical drawing, inspired by MetaPost but with an improved C++-like
55 syntax. Asymptote provides for figures the same high-quality level of
56 typesetting that LaTeX does for scientific text.
57
58 %description -l hu.UTF-8
59 Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
60 a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
61 képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
62 tudományos szöveggel.
63
64 %description -l pl.UTF-8
65 Asymptote jest językiem opisu grafiki wektorowej dla rysunków
66 technicznych. Język ten jest inspirowany językiem MetaPost, ale
67 posiada bogatszą składnię w stylu C++.
68
69 %package gui
70 Summary:        GUI for asymptote
71 Summary(hu.UTF-8):      GUI asymptote-hoz
72 Summary(pl.UTF-8):      Graficzny interfejs do asymptote
73 Group:          Applications/Science
74 Requires:       %{name} = %{version}-%{release}
75 Requires:       python-tkinter
76
77 %description gui
78 GUI for asymptote.
79
80 %description gui -l hu.UTF-8
81 GUI asymptote-hoz.
82
83 %description gui -l hu.UTF-8 -l pl.UTF-8
84 Graficzny interfejs do asymptote.
85
86 %package doc
87 Summary:        Asymptote documentation
88 Summary(hu.UTF-8):      Asymptote dokumentáció
89 Summary(pl.UTF-8):      Dokumentacja do Asymptote
90 Group:          Documentation
91 Requires:       %{name} = %{epoch}:%{version}-%{release}
92
93 %description doc
94 Asymptote documentation.
95
96 %description doc -l hu.UTF-8
97 Asymptote dokumentációja.
98
99 %description doc -l pl.UTF-8
100 Dokumentacja do Asymptote.
101
102 %package examples
103 Summary:        Asymptote examples
104 Summary(hu.UTF-8):      Asymptote példák
105 Summary(pl.UTF-8):      Przykłady do Asymptote
106 Group:          Documentation
107 Requires:       %{name} = %{epoch}:%{version}-%{release}
108
109 %description examples
110 Asymptote examples.
111
112 %description examples -l hu.UTF-8
113 Asymptote példák.
114
115 %description examples -l pl.UTF-8
116 Przykładowe pliki dla asymptote.
117
118 %package latex
119 Summary:        LaTeX styles
120 Summary(hu.UTF-8):      LaTeX stílusok
121 Summary(pl.UTF-8):      Style LaTeXa
122 Group:          Applications/Publishing/TeX
123 Requires(post,postun):  %{_bindir}/texhash
124
125 %description latex
126 LaTeX styles.
127
128 %description latex -l hu.UTF-8
129 LaTeX stílusok.
130
131 %description latex -l pl.UTF-8
132 Style LaTeXa.
133
134 %package context
135 Summary:        ConTeXt color macros
136 Summary(pl.UTF-8):      Makra kolorów ConTeXta
137 Group:          Applications/Publishing/TeX
138 Requires(post,postun):  %{_bindir}/texhash
139 Requires:       texlive-context
140
141 %description context
142 ConTeXt color macros.
143
144 %description context -l pl.UTF-8
145 Makra kolorów ConTeXta.
146
147 %package -n vim-syntax-asymptote
148 Summary:        Vim syntax file to asy-files
149 Summary(hu.UTF-8):      Vim syntax fájl asy fájlokhoz
150 Summary(pl.UTF-8):      Plik składni Vima dla plików asy
151 Group:          Applications/Editors/Vim
152
153 %description -n vim-syntax-asymptote
154 Vim syntax file to asy files.
155
156 %description -n vim-syntax-asymptote -l hu.UTF-8
157 Vim syntax fájl asy fájlokhoz.
158
159 %description -n vim-syntax-asymptote -l pl.UTF-8
160 Plik składni Vima dla plików asy.
161
162 %prep
163 %setup -q
164 %patch0 -p1
165 %patch1 -p1
166
167 %build
168 %{__autoconf}
169 %{__autoheader}
170 %configure \
171         --enable-gc=system \
172         --enable-offscreen \
173         --with-docdir=%{_docdir}/%{name}-doc
174
175 %ifarch ppc
176 %{__make} asy
177 %{__make} faq
178 %else
179 %{__make} all
180 %endif
181
182 %install
183 rm -rf $RPM_BUILD_ROOT
184
185 %ifarch ppc
186 %{__make} install-asy \
187 %else
188 %{__make} install \
189 %endif
190         DESTDIR=$RPM_BUILD_ROOT
191
192 install -d $RPM_BUILD_ROOT%{_examplesdir}
193 %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
194
195 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
196 %{__mv} $RPM_BUILD_ROOT%{_datadir}/asymptote/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
197 %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
198 %{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote
199 %{__rm} -r $RPM_BUILD_ROOT%{texmfdist}/tex/context/third
200
201 %ifnarch ppc
202 %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*.info,}
203 rmdir $RPM_BUILD_ROOT%{_infodir}/asymptote
204 %endif
205
206 %clean
207 rm -rf $RPM_BUILD_ROOT
208
209 %post   -p /sbin/postshell
210 -/usr/sbin/fix-info-dir -c %{_infodir}
211
212 %postun -p /sbin/postshell
213 -/usr/sbin/fix-info-dir -c %{_infodir}
214
215 %post latex
216 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
217
218 %postun latex
219 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
220
221 %files
222 %defattr(644,root,root,755)
223 %doc BUGS ChangeLog README ReleaseNotes TODO
224 %attr(755,root,root) %{_bindir}/asy
225 %dir %{_datadir}/%{name}
226 %{_datadir}/%{name}/*.asy
227 %{_datadir}/%{name}/asymptote.py
228 %{_datadir}/%{name}/nopapersize.ps
229 %{_datadir}/%{name}/reload.js
230 # to emacs package?
231 %{_datadir}/%{name}/asy*.el
232 # kate package?
233 %{_datadir}/%{name}/asy-kate.sh
234 %{_datadir}/asymptote/shaders
235 %{_datadir}/asymptote/webgl
236 %ifnarch ppc
237 %{_mandir}/man1/asy.1*
238 %{_infodir}/asy-faq.info*
239 %{_infodir}/asymptote.info*
240 %endif
241
242 %files gui
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_bindir}/xasy
245 %dir %{_datadir}/%{name}/GUI
246 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
247 %{_datadir}/%{name}/GUI/[!x]*.py
248 %{_datadir}/asymptote/GUI/xasy2asy.py
249 %{_datadir}/asymptote/GUI/xasyArgs.py
250 %{_datadir}/asymptote/GUI/xasyBezierInterface.py
251 %{_datadir}/asymptote/GUI/xasyFile.py
252 %{_datadir}/asymptote/GUI/xasyOptions.py
253 %{_datadir}/asymptote/GUI/xasyStrings.py
254 %{_datadir}/asymptote/GUI/xasySvg.py
255 %{_datadir}/asymptote/GUI/xasyTransform.py
256 %{_datadir}/asymptote/GUI/xasyUtils.py
257 %{_datadir}/asymptote/GUI/xasyValidator.py
258 %{_datadir}/asymptote/GUI/xasyVersion.py
259 %dir %{_datadir}/asymptote/GUI/configs
260 %{_datadir}/asymptote/GUI/configs/xasyconfig.cson
261 %{_datadir}/asymptote/GUI/configs/xasykeymap.cson
262 %dir %{_datadir}/asymptote/GUI/pyUIClass
263 %{_datadir}/asymptote/GUI/pyUIClass/custMatTransform.py
264 %{_datadir}/asymptote/GUI/pyUIClass/labelTextEditor.py
265 %{_datadir}/asymptote/GUI/pyUIClass/setCustomAnchor.py
266 %{_datadir}/asymptote/GUI/pyUIClass/widg_addLabel.py
267 %{_datadir}/asymptote/GUI/pyUIClass/widg_addPolyOpt.py
268 %{_datadir}/asymptote/GUI/pyUIClass/widg_editBezier.py
269 %{_datadir}/asymptote/GUI/pyUIClass/widgetPointEditor.py
270 %{_datadir}/asymptote/GUI/pyUIClass/window1.py
271 %{_datadir}/asymptote/GUI/res
272 %ifnarch ppc
273 %{_mandir}/man1/xasy.1*
274 %endif
275
276 %ifnarch ppc
277 %files doc
278 %defattr(644,root,root,755)
279 %{_docdir}/%{name}-doc
280 %endif
281
282 %files examples
283 %defattr(644,root,root,755)
284 %{_examplesdir}/%{name}-%{version}
285
286 %files latex
287 %defattr(644,root,root,755)
288 %{texmfdist}/tex/latex/asymptote
289
290 %files context
291 %defattr(644,root,root,755)
292 %{texmfdist}/tex/context/asymptote
293
294 %files -n vim-syntax-asymptote
295 %defattr(644,root,root,755)
296 %{_datadir}/vim/vimfiles/syntax/asy.vim
297 %{_datadir}/vim/vimfiles/syntax/asy_filetype.vim
This page took 0.041053 seconds and 2 git commands to generate.