]> git.pld-linux.org Git - packages/asymptote.git/blame - asymptote.spec
- release 2 (by relup.sh)
[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
bc622240 5Version: 2.41
f0d71ab4 6Release: 2
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
bc622240 11# Source0-md5: d16909a9189a3177ad2f8cb8161e32e1
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
67493c5f 22BuildRequires: gc-devel >= 7.0
9425d432 23BuildRequires: gc-c++-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
0428895c 31BuildRequires: texinfo-texi2dvi
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
d375e5d6 228%ifnarch ppc
0016879a 229%{_mandir}/man1/asy.1*
bc622240
JB
230%{_infodir}/asy-faq.info*
231%{_infodir}/asymptote.info*
d375e5d6 232%endif
811998fe
ZU
233
234%files gui
235%defattr(644,root,root,755)
236%attr(755,root,root) %{_bindir}/xasy
be68a45d 237%dir %{_datadir}/%{name}/GUI
811998fe 238%attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
0016879a 239%{_datadir}/%{name}/GUI/[!x]*.py
9425d432
AF
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
7acb5d56 251%ifnarch ppc
0016879a 252%{_mandir}/man1/xasy.1*
7acb5d56 253%endif
67493c5f 254
bc622240 255%ifnarch ppc
67493c5f 256%files doc
257%defattr(644,root,root,755)
258%{_docdir}/%{name}-doc
259d854e 259%endif
811998fe 260
69badf0e
JB
261%files examples
262%defattr(644,root,root,755)
263%{_examplesdir}/%{name}-%{version}
264
811998fe
ZU
265%files latex
266%defattr(644,root,root,755)
df810fe2 267%{texmfdist}/tex/latex/asymptote
eb37b2fc
ZU
268
269%files context
270%defattr(644,root,root,755)
df810fe2 271%{texmfdist}/tex/context/asymptote
0428895c
ZU
272
273%files -n vim-syntax-asymptote
274%defattr(644,root,root,755)
bc622240
JB
275%{_datadir}/vim/vimfiles/syntax/asy.vim
276%{_datadir}/vim/vimfiles/syntax/asy_filetype.vim
This page took 0.110656 seconds and 4 git commands to generate.