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