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