1 | Name: ocaml |
---|
2 | Summary: The Objective Caml compiler and programming environment |
---|
3 | Summary(ja): Objective Caml コンパイラとプログラミング環境 |
---|
4 | Version: 3.11.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Source0: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-%{version}.tar.bz2 |
---|
7 | Source1: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10-refman.html.tar.gz |
---|
8 | Source2: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10-refman.ps.gz |
---|
9 | Source3: http://caml.inria.fr/distrib/ocaml-3.10/ocaml-3.10-refman.info.tar.gz |
---|
10 | Source4: ocaml-info-entry |
---|
11 | |
---|
12 | # Vine Source(s) |
---|
13 | Source10: caml-mode-install.sh |
---|
14 | Source11: caml-mode-remove.sh |
---|
15 | |
---|
16 | License: QPL/LGPL |
---|
17 | Group: Development/Languages |
---|
18 | URL: http://caml.inria.fr/ |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | BuildRequires: ncurses-devel gdbm-devel emacsen |
---|
22 | BuildRequires: libX11-devel |
---|
23 | BuildRequires: tk tcl expect thread |
---|
24 | Requires(post,preun): install-info |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | |
---|
29 | Packager: inagaki |
---|
30 | |
---|
31 | %define debug_package %{nil} |
---|
32 | |
---|
33 | %description |
---|
34 | Objective Caml is a high-level, strongly-typed, functional and |
---|
35 | object-oriented programming language from the ML family of languages. |
---|
36 | |
---|
37 | This package comprises two batch compilers (a fast bytecode compiler |
---|
38 | and an optimizing native-code compiler), an interactive toplevel system, |
---|
39 | parsing tools (Lex,Yacc,Camlp4), a replay debugger, a documentation generator, |
---|
40 | and a comprehensive library. |
---|
41 | |
---|
42 | %description -l ja |
---|
43 | Object Caml は ML 系言語の方言で、高水準で強い型付けを備えた関数型と |
---|
44 | オブジェクト指向を併せ持ったプログラミング言語です。 |
---|
45 | このパッケージには、2 つのバッチコンパイラ (コンパイル速度が高速な |
---|
46 | バイトコードコンパイラと最適化を行なうネイティブコードコンパイラ)、 |
---|
47 | トップレベル対話環境、構文解析ツール (Lex, Yac, Camlp4)、リプレイ |
---|
48 | デバッガ、ドキュメント生成ツール、そして広範囲に渡るライブラリが含まれて |
---|
49 | います。 |
---|
50 | |
---|
51 | %package labltk |
---|
52 | Summary: Tk bindings for Objective Caml |
---|
53 | Summary(ja): Objective Caml の Tk バインディング |
---|
54 | Group: Development/Languages |
---|
55 | Requires: ocaml = %{version}-%{release} |
---|
56 | Requires: tk tcl |
---|
57 | Obsoletes: labltk <= %{version} |
---|
58 | |
---|
59 | %description labltk |
---|
60 | A library for interfacing Objective Caml with the scripting language |
---|
61 | Tcl/Tk. It include the OCamlBrowser code editor / library browser. |
---|
62 | |
---|
63 | %package camlp4 |
---|
64 | Summary: Pre-Processor-Pretty-Printer for OCaml |
---|
65 | Group: Development/Languages |
---|
66 | Requires: ocaml = %{version}-%{release} |
---|
67 | Obsoletes: camlp4 <= %{version} |
---|
68 | |
---|
69 | %description camlp4 |
---|
70 | Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source |
---|
71 | file and printing some result on standard output. |
---|
72 | |
---|
73 | %package mode |
---|
74 | Summary: Emacs mode for Objective Caml |
---|
75 | Summary(ja): Objective Caml の Emacs mode |
---|
76 | Group: Applications/Editors/Emacs |
---|
77 | Requires: ocaml = %{version}-%{release} |
---|
78 | Prereq: emacs, emacsen-common |
---|
79 | Obsoletes: ocaml-emacs <= %{version} |
---|
80 | |
---|
81 | %description mode |
---|
82 | Emacs mode for Objective Caml. |
---|
83 | |
---|
84 | %description -l ja mode |
---|
85 | Objective Caml 用の Emacs mode です. |
---|
86 | |
---|
87 | |
---|
88 | %prep |
---|
89 | %setup -q -T -b 0 |
---|
90 | %setup -q -T -D -a 1 |
---|
91 | %setup -q -T -D -a 3 |
---|
92 | cp %{SOURCE2} refman.ps.gz |
---|
93 | cp %{SOURCE4} infoman/ocaml-info-entry |
---|
94 | |
---|
95 | %build |
---|
96 | ./configure -cc "%{__cc} %{optflags}" -with-pthread \ |
---|
97 | -bindir %{_bindir} \ |
---|
98 | -libdir %{_libdir}/ocaml \ |
---|
99 | -mandir %{_mandir} \ |
---|
100 | -prefix %{_prefix} |
---|
101 | make world opt opt.opt |
---|
102 | (cd infoman; gzip -cd ocaml.info.gz >> ocaml-info-entry; mv ocaml-info-entry ocaml.info; gzip -f ocaml.info) |
---|
103 | # for dumpobj, objinfo |
---|
104 | (cd tools; make dumpobj; make objinfo; cd ..) |
---|
105 | |
---|
106 | %install |
---|
107 | rm -rf $RPM_BUILD_ROOT |
---|
108 | |
---|
109 | make install BINDIR=%{buildroot}%{_bindir} LIBDIR=%{buildroot}%{_libdir}/ocaml MANDIR=%{buildroot}%{_mandir} |
---|
110 | |
---|
111 | mv %{buildroot}%{_libdir}/ocaml/ld.conf %{buildroot}%{_libdir}/ocaml/ld.conf.orig |
---|
112 | sed -e "s|^%{buildroot}||" %{buildroot}%{_libdir}/ocaml/ld.conf.orig > %{buildroot}%{_libdir}/ocaml/ld.conf |
---|
113 | rm -f %{buildroot}%{_libdir}/ocaml/ld.conf.orig |
---|
114 | (mkdir -p %{buildroot}%{_infodir}; cd infoman; cp ocaml*.gz %{buildroot}%{_infodir}) |
---|
115 | # for dumpobj, objinfo |
---|
116 | (cd tools; install dumpobj objinfo %{buildroot}%{_bindir}) |
---|
117 | |
---|
118 | # for Emacs Lisp |
---|
119 | make -C emacs install install-ocamltags BINDIR=%{buildroot}%{_bindir} \ |
---|
120 | EMACSDIR=%{buildroot}%{_datadir}/emacs/site-lisp/caml-mode |
---|
121 | |
---|
122 | # emacsen-common-ize |
---|
123 | mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/emacsen-common/packages/install |
---|
124 | mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/emacsen-common/packages/remove |
---|
125 | %_installemacsenscript caml-mode %{SOURCE10} |
---|
126 | |
---|
127 | %_removeemacsenscript caml-mode %{SOURCE11} |
---|
128 | |
---|
129 | |
---|
130 | # Disable build root strip policy: |
---|
131 | # executables generated by ocamlc -custom MUST NOT BE STRIPPED |
---|
132 | # But now that we have dynamic loading of C code, none of the executables |
---|
133 | # in the distribution is generated by ocamlc -custom, so leave default. |
---|
134 | # %define __spec_install_post /usr/lib/rpm/brp-compress |
---|
135 | |
---|
136 | %clean |
---|
137 | rm -rf $RPM_BUILD_ROOT |
---|
138 | |
---|
139 | %post |
---|
140 | /sbin/install-info %{_infodir}/ocaml.info %{_infodir}/dir |
---|
141 | |
---|
142 | %post mode |
---|
143 | if [ "$1" = 2 ]; then |
---|
144 | %_emacsenPackageRemove caml-mode |
---|
145 | |
---|
146 | fi |
---|
147 | |
---|
148 | %_addemacsenlist caml-mode |
---|
149 | |
---|
150 | %_emacsenPackageInstall caml-mode |
---|
151 | |
---|
152 | %preun |
---|
153 | if [ $1 = 0 ]; then |
---|
154 | /sbin/install-info --delete %{_infodir}/ocaml.info %{_infodir}/dir |
---|
155 | fi |
---|
156 | |
---|
157 | %preun mode |
---|
158 | if [ "$1" = 0 ]; then |
---|
159 | %_emacsenPackageRemove caml-mode |
---|
160 | |
---|
161 | %_removeemacsenlist caml-mode |
---|
162 | |
---|
163 | fi |
---|
164 | |
---|
165 | |
---|
166 | %files |
---|
167 | %defattr(-, root, root) |
---|
168 | %doc README LICENSE refman.ps.gz htmlman |
---|
169 | %{_bindir}/* |
---|
170 | %{_mandir}/man1/* |
---|
171 | %{_mandir}/man3/* |
---|
172 | %{_libdir}/ocaml |
---|
173 | %{_infodir}/* |
---|
174 | ### in ocaml-camlp4 |
---|
175 | %exclude %{_bindir}/camlp4* |
---|
176 | %exclude %{_bindir}/mkcamlp4 |
---|
177 | #exclude %{_bindir}/ocpp |
---|
178 | %exclude %{_libdir}/ocaml/camlp4/ |
---|
179 | #exclude %{_mandir}/man1/camlp4* |
---|
180 | #exclude %{_mandir}/man1/mkcamlp4* |
---|
181 | #exclude %{_mandir}/man1/ocpp* |
---|
182 | ### in ocaml-labltk |
---|
183 | %exclude %{_bindir}/labltk |
---|
184 | %exclude %{_bindir}/ocamlbrowser |
---|
185 | %exclude %{_libdir}/ocaml/labltk/ |
---|
186 | %exclude %{_libdir}/ocaml/stublibs/dlllabltk.so |
---|
187 | %exclude %{_libdir}/ocaml/stublibs/dlltkanim.so |
---|
188 | ### in ocaml-mode |
---|
189 | %exclude %{_bindir}/ocamltags |
---|
190 | |
---|
191 | %files camlp4 |
---|
192 | %defattr(-, root, root, 0755) |
---|
193 | %{_bindir}/camlp4* |
---|
194 | %{_bindir}/mkcamlp4 |
---|
195 | #{_bindir}/ocpp |
---|
196 | %dir %{_libdir}/ocaml/ |
---|
197 | %{_libdir}/ocaml/camlp4/ |
---|
198 | #{_mandir}/man1/camlp4* |
---|
199 | #{_mandir}/man1/mkcamlp4* |
---|
200 | #{_mandir}/man1/ocpp* |
---|
201 | |
---|
202 | %files labltk |
---|
203 | %defattr(-, root, root, 0755) |
---|
204 | %doc otherlibs/labltk/examples_*tk |
---|
205 | %{_bindir}/labltk |
---|
206 | %{_bindir}/ocamlbrowser |
---|
207 | %dir %{_libdir}/ocaml/ |
---|
208 | %dir %{_libdir}/ocaml/stublibs/ |
---|
209 | %{_libdir}/ocaml/labltk/ |
---|
210 | %{_libdir}/ocaml/stublibs/dlllabltk.so |
---|
211 | %{_libdir}/ocaml/stublibs/dlltkanim.so |
---|
212 | |
---|
213 | %files mode |
---|
214 | %defattr(-, root, root, 0755) |
---|
215 | %doc emacs/README |
---|
216 | %{_bindir}/ocamltags |
---|
217 | %dir %{_datadir}/emacs/ |
---|
218 | %dir %{_datadir}/emacs/site-lisp/caml-mode |
---|
219 | %{_datadir}/emacs/site-lisp/caml-mode/*.el |
---|
220 | #{_datadir}/emacs/site-lisp/caml-mode/*.elc |
---|
221 | %{_prefix}/lib/emacsen-common/packages/install/caml-mode |
---|
222 | %{_prefix}/lib/emacsen-common/packages/remove/caml-mode |
---|
223 | |
---|
224 | |
---|
225 | %changelog |
---|
226 | * Sat May 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.11.0-1 |
---|
227 | - new upstream release |
---|
228 | - spec in UTF-8 |
---|
229 | |
---|
230 | * Sat Jul 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.10.2-1vl5 |
---|
231 | - new upstream release for VineSeed |
---|
232 | |
---|
233 | * Sat Jul 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.10.2-1vl4 |
---|
234 | - new upstream release |
---|
235 | |
---|
236 | * Wed Feb 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.10.1-0vl1 |
---|
237 | - new upstream release |
---|
238 | |
---|
239 | * Sun Sep 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.10.0-0vl2 |
---|
240 | - rebuilt with VineSeed |
---|
241 | |
---|
242 | * Sun Sep 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.10.0-0vl1 |
---|
243 | - new upstream release |
---|
244 | |
---|
245 | * Tue Nov 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.09.3-0vl2 |
---|
246 | - rebuilt for VinePlus/4.0 |
---|
247 | |
---|
248 | * Mon Nov 27 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.09.3-0vl1 |
---|
249 | - new upstream release |
---|
250 | |
---|
251 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.09.2-0vl4 |
---|
252 | - changed ocaml-mode Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
253 | |
---|
254 | * Wed Aug 30 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> - 3.09.2-0vl3 |
---|
255 | - add BuildRequires: XOrg-devel, ncurses-devel, gdbm-devel, emacsen |
---|
256 | - use %%{_prefix}/lib instead of %%{_libdir} for elisp directory |
---|
257 | |
---|
258 | * Wed Jun 7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.2-0vl2 |
---|
259 | - rebuilt for VineSeed Plus |
---|
260 | |
---|
261 | * Wed Jun 7 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.2-0vl1 |
---|
262 | - new upstream release |
---|
263 | |
---|
264 | * Sat Feb 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.1-0vl3 |
---|
265 | - rebuilt for VineSeed Plus |
---|
266 | |
---|
267 | * Sat Feb 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.1-0vl2 |
---|
268 | - rebuilt for VinePlus/3.0 |
---|
269 | - added BuildRequires: expect, thread |
---|
270 | |
---|
271 | * Sat Jan 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.1-0vl1 |
---|
272 | - new upstream release |
---|
273 | |
---|
274 | * Sat Nov 5 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.0-0vl2 |
---|
275 | - rebuild for VineSeed Plus |
---|
276 | |
---|
277 | * Thu Nov 3 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.09.0-0vl1 |
---|
278 | - new upstream release |
---|
279 | |
---|
280 | * Tue Oct 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.4-0vl3 |
---|
281 | - rebuild with VineSeed Plus |
---|
282 | |
---|
283 | * Mon Oct 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.4-0vl2 |
---|
284 | - rebuild with VinePlus/3.0 |
---|
285 | - added dumpobj, objinfo |
---|
286 | |
---|
287 | * Sat Oct 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.4-0vl1 |
---|
288 | - new upstream release |
---|
289 | - split to caml4p, labltk, mode packages |
---|
290 | |
---|
291 | * Thu Mar 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.3-0vl1 |
---|
292 | - new upstream release |
---|
293 | |
---|
294 | * Sat Dec 4 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.2-0vl1 |
---|
295 | - new upstream release |
---|
296 | |
---|
297 | * Fri Oct 15 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.1-0vl1 |
---|
298 | - new upstream release |
---|
299 | |
---|
300 | * Fri Aug 20 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.0-0vl4 |
---|
301 | - fixed typo based on 3.08.0-0vl3 |
---|
302 | * Thu Aug 12 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 3.08.0-0vl3 |
---|
303 | - Modified typo: %%descriptin -l ja into %description -l ja |
---|
304 | |
---|
305 | * Tue Aug 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.08.0-0vl3 |
---|
306 | - rebuild for VinePlus/3.0 and VineSeedPlus |
---|
307 | - updated Japanese description |
---|
308 | - merged VinePlus/2.6 spec file |
---|
309 | * Fri Jul 23 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 3.08.0-0vl2 |
---|
310 | - Modified the character code of this file into euc-jp. |
---|
311 | * Tue Jul 21 2004 by IKEDA Katsumi <ikeda@rg8.so-net.ne.jp> 3.08.0-0vl1 |
---|
312 | - new upstream release. |
---|
313 | - Modified Copyright. |
---|
314 | - Added Summary(ja), %%descriptin -l ja, Prereq and %%clean. |
---|
315 | - Added %%post and %%preun for running /sbin/install-info. |
---|
316 | |
---|
317 | * Wed Apr 7 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.07-2vl2 |
---|
318 | - rebuild for VineSeed |
---|
319 | - s/Copyright/License/ |
---|
320 | |
---|
321 | * Thu Feb 12 2004 by IKEDA Katsumi <ikedak@rg8.so-net.ne.jp> |
---|
322 | - 3.07-2vl1 |
---|
323 | - Modified %Vendor and %BuildRoot. |
---|
324 | - Add %Distribution. |
---|