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