]> git.pld-linux.org Git - packages/asymptote.git/blame - asymptote.spec
- %build and %install cleanup
[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
3Summary(pl.UTF-8): Języka opisu grafiki wektorowej do technicznych rysunków
67493c5f 4Name: asymptote
5Version: 1.43
6Release: 1
7License: GPL
8Group: Applications/Science
9Group: X11/Applications/Science
10Source0: http://dl.sourceforge.net/asymptote/%{name}-%{version}.src.tgz
11# Source0-md5: 8f85e1d9c455700f304960a8c5f7f113
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
20BuildRequires: tetex-dvips
21BuildRequires: tetex-format-latex
22BuildRequires: tetex-tex-babel
23BuildRequires: texinfo-texi2dvi
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
33Asymptote egy leíró vektorgrafikus nyelv technikai rajzokhoz,
34hasonló a MetaPost-hoz, de kibővítve C++-szerű szintaxissal.
35Asymptote még képes olyan szintű szövegszedésre is, amelyre a
36LaTeX képes a tudományos szöveggel.
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
67493c5f 43%package doc
44Summary: Asymptote documentation
45Group: Documentation
46Requires: %{name} = %{epoch}:%{version}-%{release}
47
48%description doc
49Asymptote documentation.
50
574b04f2 51%description doc -l pl.UTF-8
52Dokumentacja asymptote.
53
67493c5f 54%package examples
55Summary: Asymptote examples
56Group: Documentation
57Requires: %{name} = %{epoch}:%{version}-%{release}
58
59%description examples
574b04f2 60Asymptote examples.
61
62%description examples -l pl.UTF-8
63Przykładowe pliki dla asymptote.
67493c5f 64
65%prep
66%setup -q
67
68%build
5aafd215 69%{__autoheader}
70%{__autoconf}
67493c5f 71%configure \
72 CPPFLAGS=-I/usr/include/gc \
73 --disable-static \
74 --enable-gc=%{_includedir}/gc \
75 --with-docdir=%{_docdir}/%{name}-doc
76
5aafd215 77%{__make} all
67493c5f 78
79%install
80rm -rf $RPM_BUILD_ROOT
81
82# I don't know why need it - maybe the bad tetex configuration?
83# And the solution suggested by asympote's doc doesn't work too :(
84cp %{_datadir}/texmf/tex/{plain/pdfcolor/pdfcolor.tex,generic/epsf/epsf.tex,texinfo/texinfo.tex} doc
67493c5f 85%{__make} install \
86 DESTDIR=$RPM_BUILD_ROOT
87install -d $RPM_BUILD_ROOT%{_examplesdir}
88mv $RPM_BUILD_ROOT%{_docdir}/%{name}-doc/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%files
94%defattr(644,root,root,755)
95%attr(755,root,root) %{_bindir}/asy
96%attr(755,root,root) %{_bindir}/xasy
97%{_datadir}/%{name}
98%{_datadir}/texmf/tex/latex/asymptote
99%{_mandir}/man1/*
100%doc README TODO BUGS
101
102%files examples
103%defattr(644,root,root,755)
104%{_examplesdir}/%{name}
105
106%files doc
107%defattr(644,root,root,755)
108%{_docdir}/%{name}-doc
This page took 0.110124 seconds and 4 git commands to generate.