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