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