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