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