]>
Commit | Line | Data |
---|---|---|
67493c5f | 1 | Summary: Asymptote is a powerful descriptive vector graphics language for technical drawing |
574b04f2 | 2 | Summary(hu.UTF-8): Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz |
e4f2efd9 | 3 | Summary(pl.UTF-8): Język opisu grafiki wektorowej do rysunków technicznych |
67493c5f | 4 | Name: asymptote |
bc50fc0a | 5 | Version: 1.66 |
811998fe | 6 | Release: 2 |
51b599cf | 7 | License: GPL v3 |
67493c5f | 8 | Group: Applications/Science |
67493c5f | 9 | Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz |
bc50fc0a | 10 | # Source0-md5: 225b06f80f228b7440fb4328c83c9c9a |
e4f2efd9 | 11 | URL: http://asymptote.sourceforge.net/ |
5aafd215 | 12 | BuildRequires: autoconf |
67493c5f | 13 | BuildRequires: gc-devel >= 7.0 |
14 | BuildRequires: gsl-devel >= 1.7 | |
15 | BuildRequires: ncurses-devel | |
16 | BuildRequires: python | |
17 | BuildRequires: readline-devel | |
18 | BuildRequires: rpm-pythonprov | |
19 | BuildRequires: tetex-dvips | |
20 | BuildRequires: tetex-format-latex | |
21 | BuildRequires: tetex-tex-babel | |
22 | BuildRequires: texinfo-texi2dvi | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Asymptote is a powerful descriptive vector graphics language for | |
27 | technical drawing, inspired by MetaPost but with an improved C++-like | |
28 | syntax. Asymptote provides for figures the same high-quality level of | |
29 | typesetting that LaTeX does for scientific text. | |
30 | ||
31 | %description -l hu.UTF-8 | |
7df42c97 ZU |
32 | Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló |
33 | a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még | |
34 | képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a | |
35 | tudományos szöveggel. | |
67493c5f | 36 | |
574b04f2 | 37 | %description -l pl.UTF-8 |
38 | Asymptote jest językiem opisu grafiki wektorowej dla rysunków | |
39 | technicznych. Język ten jest inspirowany językiem MetaPost, ale | |
40 | posiada bogatszą składnię w stylu C++. | |
41 | ||
67493c5f | 42 | %package doc |
43 | Summary: Asymptote documentation | |
87e88524 | 44 | Summary(hu.UTF-8): Asymptote dokumentáció |
e4f2efd9 | 45 | Summary(pl.UTF-8): Dokumentacja do Asymptote |
67493c5f | 46 | Group: Documentation |
47 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
48 | ||
49 | %description doc | |
50 | Asymptote documentation. | |
51 | ||
87e88524 ZU |
52 | %description doc -l hu.UTF-8 |
53 | Asymptote dokumentációja. | |
54 | ||
574b04f2 | 55 | %description doc -l pl.UTF-8 |
e4f2efd9 | 56 | Dokumentacja do Asymptote. |
574b04f2 | 57 | |
67493c5f | 58 | %package examples |
59 | Summary: Asymptote examples | |
87e88524 | 60 | Summary(hu.UTF-8): Asymptote példák |
e4f2efd9 | 61 | Summary(pl.UTF-8): Przykłady do Asymptote |
67493c5f | 62 | Group: Documentation |
63 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
64 | ||
65 | %description examples | |
574b04f2 | 66 | Asymptote examples. |
67 | ||
87e88524 ZU |
68 | %description examples -l hu.UTF-8 |
69 | Asymptote példák. | |
70 | ||
574b04f2 | 71 | %description examples -l pl.UTF-8 |
72 | Przykładowe pliki dla asymptote. | |
67493c5f | 73 | |
811998fe ZU |
74 | %package latex |
75 | Summary: LaTeX styles | |
76 | Summary(hu.UTF-8): LaTeX stílusok | |
77 | Group: Applications/Publishing/TeX | |
78 | ||
79 | %description latex | |
80 | LaTeX styles. | |
81 | ||
82 | %description latex -l hu.UTF-8 | |
83 | LaTeX stílusok. | |
84 | ||
85 | %package gui | |
86 | Summary: GUI for asymptote | |
87 | Summary(hu.UTF-8): GUI asymptote-hoz | |
88 | Group: Applications/Science | |
89 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
90 | ||
91 | %description gui | |
92 | GUI for asymptote. | |
93 | ||
94 | %description gui -l hu.UTF-8 | |
95 | GUI asymptote-hoz. | |
96 | ||
67493c5f | 97 | %prep |
98 | %setup -q | |
99 | ||
100 | %build | |
5aafd215 | 101 | %{__autoheader} |
102 | %{__autoconf} | |
67493c5f | 103 | %configure \ |
104 | CPPFLAGS=-I/usr/include/gc \ | |
105 | --disable-static \ | |
106 | --enable-gc=%{_includedir}/gc \ | |
107 | --with-docdir=%{_docdir}/%{name}-doc | |
7df42c97 | 108 | cd doc && for i in %{_datadir}/texmf/tex/texinfo/*; do ln -s $i; done && cd .. |
67493c5f | 109 | |
5aafd215 | 110 | %{__make} all |
67493c5f | 111 | |
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | # I don't know why need it - maybe the bad tetex configuration? | |
116 | # And the solution suggested by asympote's doc doesn't work too :( | |
68c3c89c | 117 | # cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc |
67493c5f | 118 | %{__make} install \ |
119 | DESTDIR=$RPM_BUILD_ROOT | |
e4f2efd9 | 120 | |
67493c5f | 121 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
e4f2efd9 | 122 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
811998fe | 123 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf-local $RPM_BUILD_ROOT%{_datadir}/texmf |
67493c5f | 124 | |
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %files | |
129 | %defattr(644,root,root,755) | |
e4f2efd9 | 130 | %doc README TODO BUGS |
67493c5f | 131 | %attr(755,root,root) %{_bindir}/asy |
67493c5f | 132 | %{_datadir}/%{name} |
811998fe ZU |
133 | %exclude %{_datadir}/%{name}/GUI |
134 | %{_mandir}/man1/asy* | |
135 | ||
136 | %files gui | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_bindir}/xasy | |
139 | %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py | |
140 | %{_datadir}/%{name}/GUI | |
141 | %{_mandir}/man1/xasy* | |
67493c5f | 142 | |
143 | %files examples | |
144 | %defattr(644,root,root,755) | |
e4f2efd9 | 145 | %{_examplesdir}/%{name}-%{version} |
67493c5f | 146 | |
147 | %files doc | |
148 | %defattr(644,root,root,755) | |
149 | %{_docdir}/%{name}-doc | |
811998fe ZU |
150 | |
151 | %files latex | |
152 | %defattr(644,root,root,755) | |
153 | %{_datadir}/texmf/tex/latex/asymptote |