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