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