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