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