]>
Commit | Line | Data |
---|---|---|
c83c549d | 1 | # TODO: OpenImageIO? (--enable-openimageio) |
67493c5f | 2 | Summary: Asymptote is a powerful descriptive vector graphics language for technical drawing |
574b04f2 | 3 | Summary(hu.UTF-8): Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz |
e4f2efd9 | 4 | Summary(pl.UTF-8): Język opisu grafiki wektorowej do rysunków technicznych |
67493c5f | 5 | Name: asymptote |
7586670c | 6 | Version: 2.59 |
72965576 | 7 | Release: 3 |
bc622240 JB |
8 | # uses GPL libraries (gsl, readline), so final license is GPL |
9 | License: GPL v3+ (LGPL v3+ code) | |
67493c5f | 10 | Group: Applications/Science |
aa974d1c | 11 | Source0: http://downloads.sourceforge.net/asymptote/%{name}-%{version}.src.tgz |
7586670c | 12 | # Source0-md5: d43d86b6e80faa7364ab57a6161ac1d0 |
f575f05d | 13 | Patch0: %{name}-memrchr.patch |
c83c549d | 14 | Patch1: %{name}-info.patch |
e4f2efd9 | 15 | URL: http://asymptote.sourceforge.net/ |
c83c549d | 16 | BuildRequires: GLM |
bc622240 JB |
17 | BuildRequires: Mesa-libOSMesa-devel |
18 | BuildRequires: OpenGL-GLU-devel | |
19 | BuildRequires: OpenGL-devel | |
20 | BuildRequires: OpenGL-glut-devel | |
21 | BuildRequires: autoconf >= 2.50 | |
22 | BuildRequires: bison | |
23 | BuildRequires: fftw3-devel >= 3 | |
24 | BuildRequires: flex | |
c83c549d JB |
25 | BuildRequires: gc-c++-devel >= 8.0.4 |
26 | BuildRequires: gc-devel >= 8.0.4 | |
6f19eac0 | 27 | BuildRequires: ghostscript |
67493c5f | 28 | BuildRequires: gsl-devel >= 1.7 |
bc622240 | 29 | BuildRequires: libstdc++-devel >= 6:4.7 |
67493c5f | 30 | BuildRequires: ncurses-devel |
bc622240 JB |
31 | BuildRequires: python >= 2 |
32 | BuildRequires: readline-devel >= 4.3 | |
67493c5f | 33 | BuildRequires: rpm-pythonprov |
c83c549d | 34 | BuildRequires: texinfo |
7586670c | 35 | BuildRequires: texinfo-texi2dvi >= 6.7 |
73995274 | 36 | BuildRequires: texlive-dvips |
456b8bea | 37 | BuildRequires: texlive-fonts-ams |
a3caeacc | 38 | BuildRequires: texlive-format-pdflatex |
73995274 | 39 | BuildRequires: texlive-latex |
1a3867c7 | 40 | BuildRequires: texlive-latex-ams |
f03a555d | 41 | #BuildRequires: texlive-tex-babel |
42 | BuildRequires: zlib-devel | |
56a71b6d ZU |
43 | Suggests: ImageMagick-coder-dot |
44 | Suggests: ImageMagick-coder-jpeg | |
45 | Suggests: ImageMagick-coder-png | |
62cedd45 ZU |
46 | # e.g. "label" command needs latex |
47 | Suggests: texlive-latex | |
67493c5f | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
df810fe2 ZU |
50 | %define texmfdist %{_datadir}/texmf-dist |
51 | ||
67493c5f | 52 | %description |
53 | Asymptote is a powerful descriptive vector graphics language for | |
54 | technical drawing, inspired by MetaPost but with an improved C++-like | |
55 | syntax. Asymptote provides for figures the same high-quality level of | |
56 | typesetting that LaTeX does for scientific text. | |
57 | ||
58 | %description -l hu.UTF-8 | |
7df42c97 ZU |
59 | Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló |
60 | a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még | |
61 | képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a | |
62 | tudományos szöveggel. | |
67493c5f | 63 | |
574b04f2 | 64 | %description -l pl.UTF-8 |
65 | Asymptote jest językiem opisu grafiki wektorowej dla rysunków | |
66 | technicznych. Język ten jest inspirowany językiem MetaPost, ale | |
67 | posiada bogatszą składnię w stylu C++. | |
68 | ||
69badf0e JB |
69 | %package gui |
70 | Summary: GUI for asymptote | |
71 | Summary(hu.UTF-8): GUI asymptote-hoz | |
72 | Summary(pl.UTF-8): Graficzny interfejs do asymptote | |
73 | Group: Applications/Science | |
74 | Requires: %{name} = %{version}-%{release} | |
c046b545 | 75 | Requires: python-tkinter |
69badf0e JB |
76 | |
77 | %description gui | |
78 | GUI for asymptote. | |
79 | ||
80 | %description gui -l hu.UTF-8 | |
81 | GUI asymptote-hoz. | |
82 | ||
83 | %description gui -l hu.UTF-8 -l pl.UTF-8 | |
84 | Graficzny interfejs do asymptote. | |
85 | ||
67493c5f | 86 | %package doc |
87 | Summary: Asymptote documentation | |
87e88524 | 88 | Summary(hu.UTF-8): Asymptote dokumentáció |
e4f2efd9 | 89 | Summary(pl.UTF-8): Dokumentacja do Asymptote |
67493c5f | 90 | Group: Documentation |
91 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
92 | ||
93 | %description doc | |
94 | Asymptote documentation. | |
95 | ||
87e88524 ZU |
96 | %description doc -l hu.UTF-8 |
97 | Asymptote dokumentációja. | |
98 | ||
574b04f2 | 99 | %description doc -l pl.UTF-8 |
e4f2efd9 | 100 | Dokumentacja do Asymptote. |
574b04f2 | 101 | |
67493c5f | 102 | %package examples |
103 | Summary: Asymptote examples | |
87e88524 | 104 | Summary(hu.UTF-8): Asymptote példák |
e4f2efd9 | 105 | Summary(pl.UTF-8): Przykłady do Asymptote |
67493c5f | 106 | Group: Documentation |
107 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
108 | ||
109 | %description examples | |
574b04f2 | 110 | Asymptote examples. |
111 | ||
87e88524 ZU |
112 | %description examples -l hu.UTF-8 |
113 | Asymptote példák. | |
114 | ||
574b04f2 | 115 | %description examples -l pl.UTF-8 |
116 | Przykładowe pliki dla asymptote. | |
67493c5f | 117 | |
811998fe ZU |
118 | %package latex |
119 | Summary: LaTeX styles | |
120 | Summary(hu.UTF-8): LaTeX stílusok | |
69badf0e | 121 | Summary(pl.UTF-8): Style LaTeXa |
811998fe | 122 | Group: Applications/Publishing/TeX |
09cdfb34 | 123 | Requires(post,postun): %{_bindir}/texhash |
811998fe ZU |
124 | |
125 | %description latex | |
126 | LaTeX styles. | |
127 | ||
128 | %description latex -l hu.UTF-8 | |
129 | LaTeX stílusok. | |
130 | ||
69badf0e JB |
131 | %description latex -l pl.UTF-8 |
132 | Style LaTeXa. | |
09cdfb34 | 133 | |
eb37b2fc ZU |
134 | %package context |
135 | Summary: ConTeXt color macros | |
bc622240 | 136 | Summary(pl.UTF-8): Makra kolorów ConTeXta |
eb37b2fc | 137 | Group: Applications/Publishing/TeX |
df810fe2 ZU |
138 | Requires(post,postun): %{_bindir}/texhash |
139 | Requires: texlive-context | |
eb37b2fc ZU |
140 | |
141 | %description context | |
142 | ConTeXt color macros. | |
143 | ||
bc622240 JB |
144 | %description context -l pl.UTF-8 |
145 | Makra kolorów ConTeXta. | |
146 | ||
0428895c ZU |
147 | %package -n vim-syntax-asymptote |
148 | Summary: Vim syntax file to asy-files | |
149 | Summary(hu.UTF-8): Vim syntax fájl asy fájlokhoz | |
bc622240 | 150 | Summary(pl.UTF-8): Plik składni Vima dla plików asy |
0428895c ZU |
151 | Group: Applications/Editors/Vim |
152 | ||
153 | %description -n vim-syntax-asymptote | |
154 | Vim syntax file to asy files. | |
155 | ||
156 | %description -n vim-syntax-asymptote -l hu.UTF-8 | |
157 | Vim syntax fájl asy fájlokhoz. | |
158 | ||
bc622240 JB |
159 | %description -n vim-syntax-asymptote -l pl.UTF-8 |
160 | Plik składni Vima dla plików asy. | |
161 | ||
67493c5f | 162 | %prep |
163 | %setup -q | |
f575f05d | 164 | %patch0 -p1 |
c83c549d | 165 | %patch1 -p1 |
67493c5f | 166 | |
167 | %build | |
5aafd215 | 168 | %{__autoconf} |
bc622240 | 169 | %{__autoheader} |
67493c5f | 170 | %configure \ |
bc622240 | 171 | --enable-gc=system \ |
c83c549d | 172 | --enable-offscreen \ |
67493c5f | 173 | --with-docdir=%{_docdir}/%{name}-doc |
174 | ||
259d854e ZU |
175 | %ifarch ppc |
176 | %{__make} asy | |
177 | %{__make} faq | |
178 | %else | |
5aafd215 | 179 | %{__make} all |
259d854e | 180 | %endif |
67493c5f | 181 | |
182 | %install | |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
ddbcf2cf ZU |
185 | %ifarch ppc |
186 | %{__make} install-asy \ | |
187 | %else | |
67493c5f | 188 | %{__make} install \ |
ddbcf2cf | 189 | %endif |
67493c5f | 190 | DESTDIR=$RPM_BUILD_ROOT |
e4f2efd9 | 191 | |
67493c5f | 192 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
bc622240 | 193 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
67493c5f | 194 | |
0428895c | 195 | install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
bc622240 | 196 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/asymptote/*.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax |
eb37b2fc | 197 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf{,-dist} |
df810fe2 | 198 | %{__mv} $RPM_BUILD_ROOT%{texmfdist}/tex/context/{third,}/asymptote |
9425d432 | 199 | %{__rm} -r $RPM_BUILD_ROOT%{texmfdist}/tex/context/third |
0428895c | 200 | |
d375e5d6 | 201 | %ifnarch ppc |
bc622240 JB |
202 | %{__mv} $RPM_BUILD_ROOT%{_infodir}/{asymptote/*.info,} |
203 | rmdir $RPM_BUILD_ROOT%{_infodir}/asymptote | |
d375e5d6 | 204 | %endif |
94b3e541 | 205 | |
67493c5f | 206 | %clean |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
c854ad4f ER |
209 | %post -p /sbin/postshell |
210 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
211 | ||
212 | %postun -p /sbin/postshell | |
213 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
214 | ||
69badf0e JB |
215 | %post latex |
216 | [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 | |
217 | ||
218 | %postun latex | |
219 | [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 | |
220 | ||
67493c5f | 221 | %files |
222 | %defattr(644,root,root,755) | |
bc622240 | 223 | %doc BUGS ChangeLog README ReleaseNotes TODO |
67493c5f | 224 | %attr(755,root,root) %{_bindir}/asy |
bc622240 JB |
225 | %dir %{_datadir}/%{name} |
226 | %{_datadir}/%{name}/*.asy | |
227 | %{_datadir}/%{name}/asymptote.py | |
228 | %{_datadir}/%{name}/nopapersize.ps | |
229 | %{_datadir}/%{name}/reload.js | |
230 | # to emacs package? | |
231 | %{_datadir}/%{name}/asy*.el | |
232 | # kate package? | |
233 | %{_datadir}/%{name}/asy-kate.sh | |
7586670c JR |
234 | %{_datadir}/asymptote/shaders |
235 | %{_datadir}/asymptote/webgl | |
d375e5d6 | 236 | %ifnarch ppc |
0016879a | 237 | %{_mandir}/man1/asy.1* |
bc622240 JB |
238 | %{_infodir}/asy-faq.info* |
239 | %{_infodir}/asymptote.info* | |
d375e5d6 | 240 | %endif |
811998fe ZU |
241 | |
242 | %files gui | |
243 | %defattr(644,root,root,755) | |
244 | %attr(755,root,root) %{_bindir}/xasy | |
be68a45d | 245 | %dir %{_datadir}/%{name}/GUI |
811998fe | 246 | %attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py |
0016879a | 247 | %{_datadir}/%{name}/GUI/[!x]*.py |
7586670c JR |
248 | %{_datadir}/asymptote/GUI/xasy2asy.py |
249 | %{_datadir}/asymptote/GUI/xasyArgs.py | |
250 | %{_datadir}/asymptote/GUI/xasyBezierInterface.py | |
251 | %{_datadir}/asymptote/GUI/xasyFile.py | |
252 | %{_datadir}/asymptote/GUI/xasyOptions.py | |
253 | %{_datadir}/asymptote/GUI/xasyStrings.py | |
254 | %{_datadir}/asymptote/GUI/xasySvg.py | |
255 | %{_datadir}/asymptote/GUI/xasyTransform.py | |
256 | %{_datadir}/asymptote/GUI/xasyUtils.py | |
257 | %{_datadir}/asymptote/GUI/xasyValidator.py | |
258 | %{_datadir}/asymptote/GUI/xasyVersion.py | |
259 | %dir %{_datadir}/asymptote/GUI/configs | |
260 | %{_datadir}/asymptote/GUI/configs/xasyconfig.cson | |
261 | %{_datadir}/asymptote/GUI/configs/xasykeymap.cson | |
262 | %dir %{_datadir}/asymptote/GUI/pyUIClass | |
263 | %{_datadir}/asymptote/GUI/pyUIClass/custMatTransform.py | |
264 | %{_datadir}/asymptote/GUI/pyUIClass/labelTextEditor.py | |
265 | %{_datadir}/asymptote/GUI/pyUIClass/setCustomAnchor.py | |
266 | %{_datadir}/asymptote/GUI/pyUIClass/widg_addLabel.py | |
267 | %{_datadir}/asymptote/GUI/pyUIClass/widg_addPolyOpt.py | |
268 | %{_datadir}/asymptote/GUI/pyUIClass/widg_editBezier.py | |
269 | %{_datadir}/asymptote/GUI/pyUIClass/widgetPointEditor.py | |
270 | %{_datadir}/asymptote/GUI/pyUIClass/window1.py | |
271 | %{_datadir}/asymptote/GUI/res | |
7acb5d56 | 272 | %ifnarch ppc |
0016879a | 273 | %{_mandir}/man1/xasy.1* |
7acb5d56 | 274 | %endif |
67493c5f | 275 | |
bc622240 | 276 | %ifnarch ppc |
67493c5f | 277 | %files doc |
278 | %defattr(644,root,root,755) | |
279 | %{_docdir}/%{name}-doc | |
259d854e | 280 | %endif |
811998fe | 281 | |
69badf0e JB |
282 | %files examples |
283 | %defattr(644,root,root,755) | |
284 | %{_examplesdir}/%{name}-%{version} | |
285 | ||
811998fe ZU |
286 | %files latex |
287 | %defattr(644,root,root,755) | |
df810fe2 | 288 | %{texmfdist}/tex/latex/asymptote |
eb37b2fc ZU |
289 | |
290 | %files context | |
291 | %defattr(644,root,root,755) | |
df810fe2 | 292 | %{texmfdist}/tex/context/asymptote |
0428895c ZU |
293 | |
294 | %files -n vim-syntax-asymptote | |
295 | %defattr(644,root,root,755) | |
bc622240 JB |
296 | %{_datadir}/vim/vimfiles/syntax/asy.vim |
297 | %{_datadir}/vim/vimfiles/syntax/asy_filetype.vim |