]>
Commit | Line | Data |
---|---|---|
67493c5f | 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 | Name: asymptote | |
4 | Version: 1.43 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Science | |
8 | Group: X11/Applications/Science | |
9 | Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz | |
10 | # Source0-md5: 8f85e1d9c455700f304960a8c5f7f113 | |
11 | URL: http://asymptote.sourceforge.net | |
12 | BuildRequires: gc-devel >= 7.0 | |
13 | BuildRequires: gsl-devel >= 1.7 | |
14 | BuildRequires: ncurses-devel | |
15 | BuildRequires: python | |
16 | BuildRequires: readline-devel | |
17 | BuildRequires: rpm-pythonprov | |
18 | BuildRequires: tetex-dvips | |
19 | BuildRequires: tetex-format-latex | |
20 | BuildRequires: tetex-tex-babel | |
21 | BuildRequires: texinfo-texi2dvi | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Asymptote is a powerful descriptive vector graphics language for | |
26 | technical drawing, inspired by MetaPost but with an improved C++-like | |
27 | syntax. Asymptote provides for figures the same high-quality level of | |
28 | typesetting that LaTeX does for scientific text. | |
29 | ||
30 | %description -l hu.UTF-8 | |
31 | Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, | |
32 | hasonló a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. | |
33 | Asymptote még képes olyan szintű szövegszedésre is, amelyre a | |
34 | LaTeX képes a tudományos szöveggel. | |
35 | ||
36 | %package doc | |
37 | Summary: Asymptote documentation | |
38 | Group: Documentation | |
39 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
40 | ||
41 | %description doc | |
42 | Asymptote documentation. | |
43 | ||
44 | %package examples | |
45 | Summary: Asymptote examples | |
46 | Group: Documentation | |
47 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
48 | ||
49 | %description examples | |
50 | Asymptote documentation. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | ||
55 | %build | |
56 | %configure \ | |
57 | CPPFLAGS=-I/usr/include/gc \ | |
58 | --disable-static \ | |
59 | --enable-gc=%{_includedir}/gc \ | |
60 | --with-docdir=%{_docdir}/%{name}-doc | |
61 | ||
62 | CPPFLAGS=-I/usr/include/gc %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | # I don't know why need it - maybe the bad tetex configuration? | |
68 | # And the solution suggested by asympote's doc doesn't work too :( | |
69 | cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc | |
70 | %{__make} all | |
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
74 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name} | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %attr(755,root,root) %{_bindir}/asy | |
82 | %attr(755,root,root) %{_bindir}/xasy | |
83 | %{_datadir}/%{name} | |
84 | %{_datadir}/texmf/tex/latex/asymptote | |
85 | %{_mandir}/man1/* | |
86 | %doc README TODO BUGS | |
87 | ||
88 | %files examples | |
89 | %defattr(644,root,root,755) | |
90 | %{_examplesdir}/%{name} | |
91 | ||
92 | %files doc | |
93 | %defattr(644,root,root,755) | |
94 | %{_docdir}/%{name}-doc |