]> git.pld-linux.org Git - packages/asymptote.git/blame - asymptote.spec
- 1.68
[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
05261a2a 5Version: 1.68
be68a45d 6Release: 1
51b599cf 7License: GPL v3
67493c5f 8Group: Applications/Science
67493c5f 9Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
05261a2a 10# Source0-md5: 61a7819027e30a435add7d1af73425bc
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
19BuildRequires: tetex-dvips
20BuildRequires: tetex-format-latex
21BuildRequires: tetex-tex-babel
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
67493c5f 42%package doc
43Summary: Asymptote documentation
87e88524 44Summary(hu.UTF-8): Asymptote dokumentáció
e4f2efd9 45Summary(pl.UTF-8): Dokumentacja do Asymptote
67493c5f 46Group: Documentation
47Requires: %{name} = %{epoch}:%{version}-%{release}
48
49%description doc
50Asymptote documentation.
51
87e88524
ZU
52%description doc -l hu.UTF-8
53Asymptote dokumentációja.
54
574b04f2 55%description doc -l pl.UTF-8
e4f2efd9 56Dokumentacja do Asymptote.
574b04f2 57
67493c5f 58%package examples
59Summary: Asymptote examples
87e88524 60Summary(hu.UTF-8): Asymptote példák
e4f2efd9 61Summary(pl.UTF-8): Przykłady do Asymptote
67493c5f 62Group: Documentation
63Requires: %{name} = %{epoch}:%{version}-%{release}
64
65%description examples
574b04f2 66Asymptote examples.
67
87e88524
ZU
68%description examples -l hu.UTF-8
69Asymptote példák.
70
574b04f2 71%description examples -l pl.UTF-8
72Przykładowe pliki dla asymptote.
67493c5f 73
811998fe
ZU
74%package latex
75Summary: LaTeX styles
76Summary(hu.UTF-8): LaTeX stílusok
77Group: Applications/Publishing/TeX
09cdfb34 78Requires(post,postun): %{_bindir}/texhash
811998fe
ZU
79
80%description latex
81LaTeX styles.
82
83%description latex -l hu.UTF-8
84LaTeX stílusok.
85
86%package gui
87Summary: GUI for asymptote
88Summary(hu.UTF-8): GUI asymptote-hoz
89Group: Applications/Science
90Requires: %{name} = %{epoch}:%{version}-%{release}
91
92%description gui
93GUI for asymptote.
94
95%description gui -l hu.UTF-8
96GUI asymptote-hoz.
97
09cdfb34
ZU
98%post latex
99[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
100
101%postun latex
102[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
103
67493c5f 104%prep
105%setup -q
106
107%build
5aafd215 108%{__autoheader}
109%{__autoconf}
67493c5f 110%configure \
111 CPPFLAGS=-I/usr/include/gc \
112 --disable-static \
113 --enable-gc=%{_includedir}/gc \
114 --with-docdir=%{_docdir}/%{name}-doc
7df42c97 115cd doc && for i in %{_datadir}/texmf/tex/texinfo/*; do ln -s $i; done && cd ..
67493c5f 116
5aafd215 117%{__make} all
67493c5f 118
119%install
120rm -rf $RPM_BUILD_ROOT
121
122# I don't know why need it - maybe the bad tetex configuration?
123# And the solution suggested by asympote's doc doesn't work too :(
68c3c89c 124# cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc
67493c5f 125%{__make} install \
126 DESTDIR=$RPM_BUILD_ROOT
e4f2efd9 127
67493c5f 128install -d $RPM_BUILD_ROOT%{_examplesdir}
e4f2efd9 129mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
811998fe 130%{__mv} $RPM_BUILD_ROOT%{_datadir}/texmf-local $RPM_BUILD_ROOT%{_datadir}/texmf
67493c5f 131
132%clean
133rm -rf $RPM_BUILD_ROOT
134
135%files
136%defattr(644,root,root,755)
e4f2efd9 137%doc README TODO BUGS
67493c5f 138%attr(755,root,root) %{_bindir}/asy
67493c5f 139%{_datadir}/%{name}
811998fe
ZU
140%exclude %{_datadir}/%{name}/GUI
141%{_mandir}/man1/asy*
142
143%files gui
144%defattr(644,root,root,755)
145%attr(755,root,root) %{_bindir}/xasy
be68a45d 146%dir %{_datadir}/%{name}/GUI
811998fe 147%attr(755,root,root) %{_datadir}/%{name}/GUI/xasy.py
be68a45d 148%{_datadir}/%{name}/GUI/[!xasy.py]*
811998fe 149%{_mandir}/man1/xasy*
67493c5f 150
151%files examples
152%defattr(644,root,root,755)
e4f2efd9 153%{_examplesdir}/%{name}-%{version}
67493c5f 154
155%files doc
156%defattr(644,root,root,755)
157%{_docdir}/%{name}-doc
811998fe
ZU
158
159%files latex
160%defattr(644,root,root,755)
161%{_datadir}/texmf/tex/latex/asymptote
This page took 0.144906 seconds and 4 git commands to generate.