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