]> git.pld-linux.org Git - packages/asymptote.git/blame - asymptote.spec
- 1.70
[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
5ee7c90f 5Version: 1.70
c094f28d 6Release: 1
51b599cf 7License: GPL v3
67493c5f 8Group: Applications/Science
67493c5f 9Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
5ee7c90f 10# Source0-md5: 3d001d5ce77f00f5c3061cccfd4832af
e4f2efd9 11URL: http://asymptote.sourceforge.net/
5aafd215 12BuildRequires: autoconf
67493c5f 13BuildRequires: gc-devel >= 7.0
14BuildRequires: gsl-devel >= 1.7
15BuildRequires: ncurses-devel
16BuildRequires: python
17BuildRequires: readline-devel
18BuildRequires: rpm-pythonprov
73995274
ZU
19BuildRequires: texlive-dvips
20BuildRequires: texlive-latex
21BuildRequires: texlive-tex-babel
67493c5f 22BuildRequires: texinfo-texi2dvi
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Asymptote is a powerful descriptive vector graphics language for
27technical drawing, inspired by MetaPost but with an improved C++-like
28syntax. Asymptote provides for figures the same high-quality level of
29typesetting that LaTeX does for scientific text.
30
31%description -l hu.UTF-8
7df42c97
ZU
32Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz, hasonló
33a MetaPost-hoz, de kibővítve C++-szerű szintaxissal. Asymptote még
34képes olyan szintű szövegszedésre is, amelyre a LaTeX képes a
35tudományos szöveggel.
67493c5f 36
574b04f2 37%description -l pl.UTF-8
38Asymptote jest językiem opisu grafiki wektorowej dla rysunków
39technicznych. Język ten jest inspirowany językiem MetaPost, ale
40posiada bogatszą składnię w stylu C++.
41
69badf0e
JB
42%package gui
43Summary: GUI for asymptote
44Summary(hu.UTF-8): GUI asymptote-hoz
45Summary(pl.UTF-8): Graficzny interfejs do asymptote
46Group: Applications/Science
47Requires: %{name} = %{version}-%{release}
48
49%description gui
50GUI for asymptote.
51
52%description gui -l hu.UTF-8
53GUI asymptote-hoz.
54
55%description gui -l hu.UTF-8 -l pl.UTF-8
56Graficzny interfejs do asymptote.
57
67493c5f 58%package doc
59Summary: Asymptote documentation
87e88524 60Summary(hu.UTF-8): Asymptote dokumentáció
e4f2efd9 61Summary(pl.UTF-8): Dokumentacja do Asymptote
67493c5f 62Group: Documentation
63Requires: %{name} = %{epoch}:%{version}-%{release}
64
65%description doc
66Asymptote documentation.
67
87e88524
ZU
68%description doc -l hu.UTF-8
69Asymptote dokumentációja.
70
574b04f2 71%description doc -l pl.UTF-8
e4f2efd9 72Dokumentacja do Asymptote.
574b04f2 73
67493c5f 74%package examples
75Summary: Asymptote examples
87e88524 76Summary(hu.UTF-8): Asymptote példák
e4f2efd9 77Summary(pl.UTF-8): Przykłady do Asymptote
67493c5f 78Group: Documentation
79Requires: %{name} = %{epoch}:%{version}-%{release}
80
81%description examples
574b04f2 82Asymptote examples.
83
87e88524
ZU
84%description examples -l hu.UTF-8
85Asymptote példák.
86
574b04f2 87%description examples -l pl.UTF-8
88Przykładowe pliki dla asymptote.
67493c5f 89
811998fe
ZU
90%package latex
91Summary: LaTeX styles
92Summary(hu.UTF-8): LaTeX stílusok
69badf0e 93Summary(pl.UTF-8): Style LaTeXa
811998fe 94Group: Applications/Publishing/TeX
09cdfb34 95Requires(post,postun): %{_bindir}/texhash
811998fe
ZU
96
97%description latex
98LaTeX styles.
99
100%description latex -l hu.UTF-8
101LaTeX stílusok.
102
69badf0e
JB
103%description latex -l pl.UTF-8
104Style LaTeXa.
09cdfb34 105
67493c5f 106%prep
107%setup -q
108
109%build
5aafd215 110%{__autoheader}
111%{__autoconf}
67493c5f 112%configure \
113 CPPFLAGS=-I/usr/include/gc \
114 --disable-static \
115 --enable-gc=%{_includedir}/gc \
116 --with-docdir=%{_docdir}/%{name}-doc
7df42c97 117cd doc && for i in %{_datadir}/texmf/tex/texinfo/*; do ln -s $i; done && cd ..
67493c5f 118
5aafd215 119%{__make} all
67493c5f 120
121%install
122rm -rf $RPM_BUILD_ROOT
123
124# I don't know why need it - maybe the bad tetex configuration?
125# And the solution suggested by asympote's doc doesn't work too :(
68c3c89c 126# cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc
67493c5f 127%{__make} install \
128 DESTDIR=$RPM_BUILD_ROOT
e4f2efd9 129
67493c5f 130install -d $RPM_BUILD_ROOT%{_examplesdir}
e4f2efd9 131mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
415a9e93 132# %{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf-local $RPM_BUILD_ROOT%{_datadir}/texmf
67493c5f 133
134%clean
135rm -rf $RPM_BUILD_ROOT
136
69badf0e
JB
137%post latex
138[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
139
140%postun latex
141[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
142
67493c5f 143%files
144%defattr(644,root,root,755)
e4f2efd9 145%doc README TODO BUGS
67493c5f 146%attr(755,root,root) %{_bindir}/asy
67493c5f 147%{_datadir}/%{name}
811998fe 148%exclude %{_datadir}/%{name}/GUI
0016879a 149%{_mandir}/man1/asy.1*
811998fe
ZU
150
151%files gui
152%defattr(644,root,root,755)
153%attr(755,root,root) %{_bindir}/xasy
be68a45d 154%dir %{_datadir}/%{name}/GUI
811998fe 155%attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
0016879a
JB
156%{_datadir}/%{name}/GUI/[!x]*.py
157%{_mandir}/man1/xasy.1*
67493c5f 158
67493c5f 159%files doc
160%defattr(644,root,root,755)
161%{_docdir}/%{name}-doc
811998fe 162
69badf0e
JB
163%files examples
164%defattr(644,root,root,755)
165%{_examplesdir}/%{name}-%{version}
166
811998fe
ZU
167%files latex
168%defattr(644,root,root,755)
169%{_datadir}/texmf/tex/latex/asymptote
This page took 0.083378 seconds and 4 git commands to generate.