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