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