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