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