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