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