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