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