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
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/
17 BuildRequires: Mesa-libOSMesa-devel
18 BuildRequires: OpenGL-GLU-devel
19 BuildRequires: OpenGL-devel
20 BuildRequires: OpenGL-glut-devel
21 BuildRequires: autoconf >= 2.50
23 BuildRequires: fftw3-devel >= 3
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)
50 %define texmfdist %{_datadir}/texmf-dist
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.
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
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++.
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
80 %description gui -l hu.UTF-8
83 %description gui -l hu.UTF-8 -l pl.UTF-8
84 Graficzny interfejs do asymptote.
87 Summary: Asymptote documentation
88 Summary(hu.UTF-8): Asymptote dokumentáció
89 Summary(pl.UTF-8): Dokumentacja do Asymptote
91 Requires: %{name} = %{epoch}:%{version}-%{release}
94 Asymptote documentation.
96 %description doc -l hu.UTF-8
97 Asymptote dokumentációja.
99 %description doc -l pl.UTF-8
100 Dokumentacja do Asymptote.
103 Summary: Asymptote examples
104 Summary(hu.UTF-8): Asymptote példák
105 Summary(pl.UTF-8): Przykłady do Asymptote
107 Requires: %{name} = %{epoch}:%{version}-%{release}
109 %description examples
112 %description examples -l hu.UTF-8
115 %description examples -l pl.UTF-8
116 Przykładowe pliki dla asymptote.
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
128 %description latex -l hu.UTF-8
131 %description latex -l pl.UTF-8
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
142 ConTeXt color macros.
144 %description context -l pl.UTF-8
145 Makra kolorów ConTeXta.
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
153 %description -n vim-syntax-asymptote
154 Vim syntax file to asy files.
156 %description -n vim-syntax-asymptote -l hu.UTF-8
157 Vim syntax fájl asy fájlokhoz.
159 %description -n vim-syntax-asymptote -l pl.UTF-8
160 Plik składni Vima dla plików asy.
173 --with-docdir=%{_docdir}/%{name}-doc
183 rm -rf $RPM_BUILD_ROOT
186 %{__make} install-asy \
190 DESTDIR=$RPM_BUILD_ROOT
192 install -d $RPM_BUILD_ROOT%{_examplesdir}
193 %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
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
202 %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*.info,}
203 rmdir $RPM_BUILD_ROOT%{_infodir}/asymptote
207 rm -rf $RPM_BUILD_ROOT
209 %post -p /sbin/postshell
210 -/usr/sbin/fix-info-dir -c %{_infodir}
212 %postun -p /sbin/postshell
213 -/usr/sbin/fix-info-dir -c %{_infodir}
216 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
219 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
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
231 %{_datadir}/%{name}/asy*.el
233 %{_datadir}/%{name}/asy-kate.sh
234 %{_datadir}/asymptote/shaders
235 %{_datadir}/asymptote/webgl
237 %{_mandir}/man1/asy.1*
238 %{_infodir}/asy-faq.info*
239 %{_infodir}/asymptote.info*
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
273 %{_mandir}/man1/xasy.1*
278 %defattr(644,root,root,755)
279 %{_docdir}/%{name}-doc
283 %defattr(644,root,root,755)
284 %{_examplesdir}/%{name}-%{version}
287 %defattr(644,root,root,755)
288 %{texmfdist}/tex/latex/asymptote
291 %defattr(644,root,root,755)
292 %{texmfdist}/tex/context/asymptote
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