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://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
10 # Source0-md5: 41254066198abeb4379fc3989891b670
11 Patch0: %{name}-memrchr.patch
12 URL: http://asymptote.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: gc-devel >= 7.0
15 BuildRequires: ghostscript
16 BuildRequires: gsl-devel >= 1.7
17 BuildRequires: ncurses-devel
19 BuildRequires: readline-devel
20 BuildRequires: rpm-pythonprov
21 BuildRequires: texinfo-texi2dvi
22 BuildRequires: texlive-dvips
23 BuildRequires: texlive-fonts-ams
24 BuildRequires: texlive-latex
25 BuildRequires: texlive-tex-babel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define texmfdist %{_datadir}/texmf-dist
31 Asymptote is a powerful descriptive vector graphics language for
32 technical drawing, inspired by MetaPost but with an improved C++-like
33 syntax. Asymptote provides for figures the same high-quality level of
34 typesetting that LaTeX does for scientific text.
36 %description -l hu.UTF-8
37 Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
38 a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
39 képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
42 %description -l pl.UTF-8
43 Asymptote jest językiem opisu grafiki wektorowej dla rysunków
44 technicznych. Język ten jest inspirowany językiem MetaPost, ale
45 posiada bogatszą składnię w stylu C++.
48 Summary: GUI for asymptote
49 Summary(hu.UTF-8): GUI asymptote-hoz
50 Summary(pl.UTF-8): Graficzny interfejs do asymptote
51 Group: Applications/Science
52 Requires: %{name} = %{version}-%{release}
57 %description gui -l hu.UTF-8
60 %description gui -l hu.UTF-8 -l pl.UTF-8
61 Graficzny interfejs do asymptote.
64 Summary: Asymptote documentation
65 Summary(hu.UTF-8): Asymptote dokumentáció
66 Summary(pl.UTF-8): Dokumentacja do Asymptote
68 Requires: %{name} = %{epoch}:%{version}-%{release}
71 Asymptote documentation.
73 %description doc -l hu.UTF-8
74 Asymptote dokumentációja.
76 %description doc -l pl.UTF-8
77 Dokumentacja do Asymptote.
80 Summary: Asymptote examples
81 Summary(hu.UTF-8): Asymptote példák
82 Summary(pl.UTF-8): Przykłady do Asymptote
84 Requires: %{name} = %{epoch}:%{version}-%{release}
89 %description examples -l hu.UTF-8
92 %description examples -l pl.UTF-8
93 Przykładowe pliki dla asymptote.
97 Summary(hu.UTF-8): LaTeX stílusok
98 Summary(pl.UTF-8): Style LaTeXa
99 Group: Applications/Publishing/TeX
100 Requires(post,postun): %{_bindir}/texhash
105 %description latex -l hu.UTF-8
108 %description latex -l pl.UTF-8
112 Summary: ConTeXt color macros
113 Group: Applications/Publishing/TeX
114 Requires(post,postun): %{_bindir}/texhash
115 Requires: texlive-context
118 ConTeXt color macros.
120 %package -n vim-syntax-asymptote
121 Summary: Vim syntax file to asy-files
122 Summary(hu.UTF-8): Vim syntax fájl asy fájlokhoz
123 Group: Applications/Editors/Vim
125 %description -n vim-syntax-asymptote
126 Vim syntax file to asy files.
128 %description -n vim-syntax-asymptote -l hu.UTF-8
129 Vim syntax fájl asy fájlokhoz.
139 CPPFLAGS=-I/usr/include/gc \
141 --enable-gc=%{_includedir}/gc \
142 --with-docdir=%{_docdir}/%{name}-doc
152 rm -rf $RPM_BUILD_ROOT
155 %{__make} install-asy \
159 DESTDIR=$RPM_BUILD_ROOT
161 install -d $RPM_BUILD_ROOT%{_examplesdir}
162 mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
164 install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
165 %{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax}
166 %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist}
167 %{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote
168 %{__rm} -rf $RPM_BUILD_ROOT%{texmfdist}/tex/context/third
171 %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,}
172 %{__rm} -rf $RPM_BUILD_ROOT%{_infodir}/asymptote
176 rm -rf $RPM_BUILD_ROOT
179 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
182 [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
185 %defattr(644,root,root,755)
186 %doc README TODO BUGS
188 %{_infodir}/*.info.gz
190 %attr(755,root,root) %{_bindir}/asy
192 %exclude %{_datadir}/%{name}/GUI
194 %{_mandir}/man1/asy.1*
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_bindir}/xasy
200 %dir %{_datadir}/%{name}/GUI
201 %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
202 %{_datadir}/%{name}/GUI/[!x]*.py
204 %{_mandir}/man1/xasy.1*
211 %defattr(644,root,root,755)
212 %{_docdir}/%{name}-doc
216 %defattr(644,root,root,755)
217 %{_examplesdir}/%{name}-%{version}
220 %defattr(644,root,root,755)
221 %{texmfdist}/tex/latex/asymptote
224 %defattr(644,root,root,755)
225 # should be in texlive.spec
226 %dir %{texmfdist}/tex/context
227 %{texmfdist}/tex/context/asymptote
229 %files -n vim-syntax-asymptote
230 %defattr(644,root,root,755)
231 %{_datadir}/vim/vimfiles/syntax