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