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