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