]>
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 |
ed5e7fe1 | 5 | Version: 1.82 |
7531697e | 6 | Release: 1 |
51b599cf | 7 | License: GPL v3 |
67493c5f | 8 | Group: Applications/Science |
67493c5f | 9 | Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz |
ed5e7fe1 | 10 | # Source0-md5: 0960360e00e8a1a6b84acb70f623ca72 |
f575f05d | 11 | Patch0: %{name}-memrchr.patch |
e4f2efd9 | 12 | URL: http://asymptote.sourceforge.net/ |
5aafd215 | 13 | BuildRequires: autoconf |
67493c5f | 14 | BuildRequires: gc-devel >= 7.0 |
15 | BuildRequires: gsl-devel >= 1.7 | |
16 | BuildRequires: ncurses-devel | |
17 | BuildRequires: python | |
18 | BuildRequires: readline-devel | |
19 | BuildRequires: rpm-pythonprov | |
0428895c | 20 | BuildRequires: texinfo-texi2dvi |
73995274 | 21 | BuildRequires: texlive-dvips |
456b8bea | 22 | BuildRequires: texlive-fonts-ams |
73995274 ZU |
23 | BuildRequires: texlive-latex |
24 | BuildRequires: texlive-tex-babel | |
67493c5f | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Asymptote is a powerful descriptive vector graphics language for | |
29 | technical drawing, inspired by MetaPost but with an improved C++-like | |
30 | syntax. Asymptote provides for figures the same high-quality level of | |
31 | typesetting that LaTeX does for scientific text. | |
32 | ||
33 | %description -l hu.UTF-8 | |
7df42c97 ZU |
34 | Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló |
35 | a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még | |
36 | képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a | |
37 | tudományos szöveggel. | |
67493c5f | 38 | |
574b04f2 | 39 | %description -l pl.UTF-8 |
40 | Asymptote jest językiem opisu grafiki wektorowej dla rysunków | |
41 | technicznych. Język ten jest inspirowany językiem MetaPost, ale | |
42 | posiada bogatszą składnię w stylu C++. | |
43 | ||
69badf0e JB |
44 | %package gui |
45 | Summary: GUI for asymptote | |
46 | Summary(hu.UTF-8): GUI asymptote-hoz | |
47 | Summary(pl.UTF-8): Graficzny interfejs do asymptote | |
48 | Group: Applications/Science | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description gui | |
52 | GUI for asymptote. | |
53 | ||
54 | %description gui -l hu.UTF-8 | |
55 | GUI asymptote-hoz. | |
56 | ||
57 | %description gui -l hu.UTF-8 -l pl.UTF-8 | |
58 | Graficzny interfejs do asymptote. | |
59 | ||
67493c5f | 60 | %package doc |
61 | Summary: Asymptote documentation | |
87e88524 | 62 | Summary(hu.UTF-8): Asymptote dokumentáció |
e4f2efd9 | 63 | Summary(pl.UTF-8): Dokumentacja do Asymptote |
67493c5f | 64 | Group: Documentation |
65 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
66 | ||
67 | %description doc | |
68 | Asymptote documentation. | |
69 | ||
87e88524 ZU |
70 | %description doc -l hu.UTF-8 |
71 | Asymptote dokumentációja. | |
72 | ||
574b04f2 | 73 | %description doc -l pl.UTF-8 |
e4f2efd9 | 74 | Dokumentacja do Asymptote. |
574b04f2 | 75 | |
67493c5f | 76 | %package examples |
77 | Summary: Asymptote examples | |
87e88524 | 78 | Summary(hu.UTF-8): Asymptote példák |
e4f2efd9 | 79 | Summary(pl.UTF-8): Przykłady do Asymptote |
67493c5f | 80 | Group: Documentation |
81 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
82 | ||
83 | %description examples | |
574b04f2 | 84 | Asymptote examples. |
85 | ||
87e88524 ZU |
86 | %description examples -l hu.UTF-8 |
87 | Asymptote példák. | |
88 | ||
574b04f2 | 89 | %description examples -l pl.UTF-8 |
90 | Przykładowe pliki dla asymptote. | |
67493c5f | 91 | |
811998fe ZU |
92 | %package latex |
93 | Summary: LaTeX styles | |
94 | Summary(hu.UTF-8): LaTeX stílusok | |
69badf0e | 95 | Summary(pl.UTF-8): Style LaTeXa |
811998fe | 96 | Group: Applications/Publishing/TeX |
09cdfb34 | 97 | Requires(post,postun): %{_bindir}/texhash |
811998fe ZU |
98 | |
99 | %description latex | |
100 | LaTeX styles. | |
101 | ||
102 | %description latex -l hu.UTF-8 | |
103 | LaTeX stílusok. | |
104 | ||
69badf0e JB |
105 | %description latex -l pl.UTF-8 |
106 | Style LaTeXa. | |
09cdfb34 | 107 | |
eb37b2fc ZU |
108 | %package context |
109 | Summary: ConTeXt color macros | |
110 | Group: Applications/Publishing/TeX | |
111 | ||
112 | %description context | |
113 | ConTeXt color macros. | |
114 | ||
0428895c ZU |
115 | %package -n vim-syntax-asymptote |
116 | Summary: Vim syntax file to asy-files | |
117 | Summary(hu.UTF-8): Vim syntax fájl asy fájlokhoz | |
118 | Group: Applications/Editors/Vim | |
119 | ||
120 | %description -n vim-syntax-asymptote | |
121 | Vim syntax file to asy files. | |
122 | ||
123 | %description -n vim-syntax-asymptote -l hu.UTF-8 | |
124 | Vim syntax fájl asy fájlokhoz. | |
125 | ||
67493c5f | 126 | %prep |
127 | %setup -q | |
f575f05d | 128 | %patch0 -p1 |
67493c5f | 129 | |
130 | %build | |
5aafd215 | 131 | %{__autoheader} |
132 | %{__autoconf} | |
67493c5f | 133 | %configure \ |
134 | CPPFLAGS=-I/usr/include/gc \ | |
135 | --disable-static \ | |
136 | --enable-gc=%{_includedir}/gc \ | |
137 | --with-docdir=%{_docdir}/%{name}-doc | |
138 | ||
259d854e ZU |
139 | %ifarch ppc |
140 | %{__make} asy | |
141 | %{__make} faq | |
142 | %else | |
5aafd215 | 143 | %{__make} all |
259d854e | 144 | %endif |
67493c5f | 145 | |
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
ddbcf2cf ZU |
149 | %ifarch ppc |
150 | %{__make} install-asy \ | |
151 | %else | |
67493c5f | 152 | %{__make} install \ |
ddbcf2cf | 153 | %endif |
67493c5f | 154 | DESTDIR=$RPM_BUILD_ROOT |
e4f2efd9 | 155 | |
67493c5f | 156 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
e4f2efd9 | 157 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
67493c5f | 158 | |
0428895c ZU |
159 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
160 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/{asymptote/asy.vim,vim/vimfiles/syntax} | |
eb37b2fc | 161 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist} |
0428895c | 162 | |
d375e5d6 | 163 | %ifnarch ppc |
94b3e541 ZU |
164 | %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*,} |
165 | %{__rm} -rf $RPM_BUILD_ROOT%{_infodir}/asymptote | |
d375e5d6 | 166 | %endif |
94b3e541 | 167 | |
67493c5f | 168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
69badf0e JB |
171 | %post latex |
172 | [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 | |
173 | ||
174 | %postun latex | |
175 | [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 | |
176 | ||
67493c5f | 177 | %files |
178 | %defattr(644,root,root,755) | |
e4f2efd9 | 179 | %doc README TODO BUGS |
d375e5d6 | 180 | %ifnarch ppc |
94b3e541 | 181 | %{_infodir}/*.info.gz |
d375e5d6 | 182 | %endif |
67493c5f | 183 | %attr(755,root,root) %{_bindir}/asy |
67493c5f | 184 | %{_datadir}/%{name} |
811998fe | 185 | %exclude %{_datadir}/%{name}/GUI |
d375e5d6 | 186 | %ifnarch ppc |
0016879a | 187 | %{_mandir}/man1/asy.1* |
d375e5d6 | 188 | %endif |
811998fe ZU |
189 | |
190 | %files gui | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_bindir}/xasy | |
be68a45d | 193 | %dir %{_datadir}/%{name}/GUI |
811998fe | 194 | %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py |
0016879a | 195 | %{_datadir}/%{name}/GUI/[!x]*.py |
7acb5d56 | 196 | %ifnarch ppc |
0016879a | 197 | %{_mandir}/man1/xasy.1* |
7acb5d56 | 198 | %endif |
67493c5f | 199 | |
259d854e ZU |
200 | %ifarch ppc |
201 | # What should we do? | |
202 | %else | |
67493c5f | 203 | %files doc |
204 | %defattr(644,root,root,755) | |
205 | %{_docdir}/%{name}-doc | |
259d854e | 206 | %endif |
811998fe | 207 | |
69badf0e JB |
208 | %files examples |
209 | %defattr(644,root,root,755) | |
210 | %{_examplesdir}/%{name}-%{version} | |
211 | ||
811998fe ZU |
212 | %files latex |
213 | %defattr(644,root,root,755) | |
eb37b2fc ZU |
214 | %{_datadir}/texmf-dist/tex/latex/asymptote |
215 | ||
216 | %files context | |
217 | %defattr(644,root,root,755) | |
218 | %{_datadir}/texmf-dist/tex/context/third/asymptote/colo-asy.tex | |
0428895c ZU |
219 | |
220 | %files -n vim-syntax-asymptote | |
221 | %defattr(644,root,root,755) | |
222 | %{_datadir}/vim/vimfiles/syntax |