1 Summary: Asymptote is a powerful descriptive vector graphics language for technical drawing
2 Summary(hu.UTF-8): Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz
3 Summary(pl.UTF-8): Język opisu grafiki wektorowej do rysunków technicznych
8 Group: Applications/Science
9 Source0: http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
10 # Source0-md5: 774067a30e54308a061aed20098c01d9
11 Patch0: %{name}-memrchr.patch
12 URL: http://asymptote.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: fftw3-devel
15 BuildRequires: gc-devel >= 7.0
16 BuildRequires: ghostscript
17 BuildRequires: gsl-devel >= 1.7
18 BuildRequires: libstdc++-devel
19 BuildRequires: ncurses-devel
21 BuildRequires: readline-devel
22 BuildRequires: rpm-pythonprov
23 BuildRequires: texinfo-texi2dvi
24 BuildRequires: texlive-dvips
25 BuildRequires: texlive-fonts-ams
26 BuildRequires: texlive-format-pdflatex
27 BuildRequires: texlive-latex
28 #BuildRequires: texlive-tex-babel
29 BuildRequires: zlib-devel
30 Suggests: ImageMagick-coder-dot
31 Suggests: ImageMagick-coder-jpeg
32 Suggests: ImageMagick-coder-png
33 # e.g. "label" command needs latex
34 Suggests: texlive-latex
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define texmfdist %{_datadir}/texmf-dist
40 Asymptote is a powerful descriptive vector graphics language for
41 technical drawing, inspired by MetaPost but with an improved C++-like
42 syntax. Asymptote provides for figures the same high-quality level of
43 typesetting that LaTeX does for scientific text.
45 %description -l hu.UTF-8
46 Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
47 a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
48 képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
51 %description -l pl.UTF-8
52 Asymptote jest językiem opisu grafiki wektorowej dla rysunków
53 technicznych. Język ten jest inspirowany językiem MetaPost, ale
54 posiada bogatszą składnię w stylu C++.
57 Summary: GUI for asymptote
58 Summary(hu.UTF-8): GUI asymptote-hoz
59 Summary(pl.UTF-8): Graficzny interfejs do asymptote
60 Group: Applications/Science
61 Requires: %{name} = %{version}-%{release}
62 Requires: python-tkinter
67 %description gui -l hu.UTF-8
70 %description gui -l hu.UTF-8 -l pl.UTF-8
71 Graficzny interfejs do asymptote.
74 Summary: Asymptote documentation
75 Summary(hu.UTF-8): Asymptote dokumentáció
76 Summary(pl.UTF-8): Dokumentacja do Asymptote
78 Requires: %{name} = %{epoch}:%{version}-%{release}
81 Asymptote documentation.
83 %description doc -l hu.UTF-8
84 Asymptote dokumentációja.
86 %description doc -l pl.UTF-8
87 Dokumentacja do Asymptote.
90 Summary: Asymptote examples
91 Summary(hu.UTF-8): Asymptote példák
92 Summary(pl.UTF-8): Przykłady do Asymptote
94 Requires: %{name} = %{epoch}:%{version}-%{release}
99 %description examples -l hu.UTF-8
102 %description examples -l pl.UTF-8
103 Przykładowe pliki dla asymptote.
106 Summary: LaTeX styles
107 Summary(hu.UTF-8): LaTeX stílusok
108 Summary(pl.UTF-8): Style LaTeXa
109 Group: Applications/Publishing/TeX
110 Requires(post,postun): %{_bindir}/texhash
115 %description latex -l hu.UTF-8
118 %description latex -l pl.UTF-8
122 Summary: ConTeXt color macros
123 Group: Applications/Publishing/TeX
124 Requires(post,postun): %{_bindir}/texhash
125 Requires: texlive-context
128 ConTeXt color macros.
130 %package -n vim-syntax-asymptote
131 Summary: Vim syntax file to asy-files
132 Summary(hu.UTF-8): Vim syntax fájl asy fájlokhoz
133 Group: Applications/Editors/Vim
135 %description -n vim-syntax-asymptote
136 Vim syntax file to asy files.
138 %description -n vim-syntax-asymptote -l hu.UTF-8
139 Vim syntax fájl asy fájlokhoz.
149 CPPFLAGS=-I/usr/include/gc \
151 --enable-gc=%{_includedir}/gc \
152 --with-docdir=%{_docdir}/%{name}-doc
162 rm -rf $RPM_BUILD_ROOT
165 %{__make} install-asy \
169 DESTDIR=$RPM_BUILD_ROOT
171 install -d $RPM_BUILD_ROOT%{_examplesdir}
172 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
174 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
175 %{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax}
176 %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
177 %{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote
178 %{__rm} -rf $RPM_BUILD_ROOT%{texmfdist}/tex/context/third
181 %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,}
182 %{__rm} -rf $RPM_BUILD_ROOT%{_infodir}/asymptote
186 rm -rf $RPM_BUILD_ROOT
189 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
192 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
195 %defattr(644,root,root,755)
196 %doc README TODO BUGS
200 %attr(755,root,root) %{_bindir}/asy
202 %exclude %{_datadir}/%{name}/GUI
204 %{_mandir}/man1/asy.1*
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_bindir}/xasy
210 %dir %{_datadir}/%{name}/GUI
211 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
212 %{_datadir}/%{name}/GUI/[!x]*.py
214 %{_mandir}/man1/xasy.1*
221 %defattr(644,root,root,755)
222 %{_docdir}/%{name}-doc
226 %defattr(644,root,root,755)
227 %{_examplesdir}/%{name}-%{version}
230 %defattr(644,root,root,755)
231 %{texmfdist}/tex/latex/asymptote
234 %defattr(644,root,root,755)
235 # should be in texlive.spec
236 %dir %{texmfdist}/tex/context
237 %{texmfdist}/tex/context/asymptote
239 %files -n vim-syntax-asymptote
240 %defattr(644,root,root,755)
241 %{_datadir}/vim/vimfiles/syntax