1 | Summary: OCaml package manager and build helper |
---|
2 | Summary(ja): OCaml のパッケージ管理ツール及びビルド補助ツール |
---|
3 | Name: ocaml-findlib |
---|
4 | Version: 1.5.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: BSD |
---|
8 | Group: Development/Tools |
---|
9 | URL: http://projects.camlcity.org/projects/findlib.html |
---|
10 | |
---|
11 | Source0: http://download.camlcity.org/download/findlib-%{version}.tar.gz |
---|
12 | |
---|
13 | # Use ocamlopt -g patch to include debug information. |
---|
14 | Patch1: findlib-1.4-add-debug.patch |
---|
15 | |
---|
16 | # Vine Patch |
---|
17 | # Patch100: ocaml-findlib-installpath.patch |
---|
18 | |
---|
19 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | BuildRequires: ocaml >= 4.02.0 |
---|
21 | BuildRequires: ocaml-camlp4-devel |
---|
22 | BuildRequires: ncurses-devel |
---|
23 | BuildRequires: m4 |
---|
24 | BuildRequires: gawk |
---|
25 | Requires: ocaml |
---|
26 | |
---|
27 | Vendor: Project Vine |
---|
28 | Distribution: Vine Linux |
---|
29 | |
---|
30 | %global __ocaml_requires_opts -i Asttypes -i Parsetree |
---|
31 | |
---|
32 | %description |
---|
33 | Objective CAML package manager and build helper. |
---|
34 | |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Development files for %{name} |
---|
38 | Summary(ja): %{name} の開発用ファイル |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %{name} = %{version}-%{release} |
---|
41 | |
---|
42 | %description devel |
---|
43 | The %{name}-devel package contains libraries and header files for |
---|
44 | developing applications that use %{name}. |
---|
45 | |
---|
46 | |
---|
47 | %prep |
---|
48 | %setup -q -n findlib-%{version} |
---|
49 | %patch1 -p2 |
---|
50 | |
---|
51 | %build |
---|
52 | ocamlc -version |
---|
53 | ocamlc -where |
---|
54 | (cd tools/extract_args && make) |
---|
55 | tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||: |
---|
56 | cat src/findlib/ocaml_args.ml |
---|
57 | ./configure -config %{_sysconfdir}/ocamlfind.conf \ |
---|
58 | -bindir %{_bindir} \ |
---|
59 | -sitelib `ocamlc -where` \ |
---|
60 | -mandir %{_mandir} \ |
---|
61 | -with-toolbox |
---|
62 | make all opt |
---|
63 | #%if %opt |
---|
64 | #make opt |
---|
65 | #%endif |
---|
66 | rm doc/guide-html/TIMESTAMP |
---|
67 | |
---|
68 | |
---|
69 | %install |
---|
70 | rm -rf $RPM_BUILD_ROOT |
---|
71 | # Grrr destdir grrrr |
---|
72 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
73 | make install prefix=$RPM_BUILD_ROOT OCAMLFIND_BIN=$RPM_BUILD_ROOT%{_bindir} |
---|
74 | mv $RPM_BUILD_ROOT/$RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_bindir} |
---|
75 | |
---|
76 | %clean |
---|
77 | rm -rf $RPM_BUILD_ROOT |
---|
78 | |
---|
79 | %files |
---|
80 | %defattr(-,root,root) |
---|
81 | %doc LICENSE doc/README |
---|
82 | %config(noreplace) %{_sysconfdir}/ocamlfind.conf |
---|
83 | %{_bindir}/* |
---|
84 | %{_mandir}/man1/* |
---|
85 | %{_mandir}/man5/* |
---|
86 | %{_libdir}/ocaml/*/META |
---|
87 | %{_libdir}/ocaml/topfind |
---|
88 | %{_libdir}/ocaml/findlib |
---|
89 | #if %opt |
---|
90 | %exclude %{_libdir}/ocaml/findlib/*.a |
---|
91 | %exclude %{_libdir}/ocaml/findlib/*.cmxa |
---|
92 | #endif |
---|
93 | %exclude %{_libdir}/ocaml/findlib/*.mli |
---|
94 | %exclude %{_libdir}/ocaml/findlib/Makefile.config |
---|
95 | #exclude %{_libdir}/ocaml/findlib/make_wizard |
---|
96 | #exclude %{_libdir}/ocaml/findlib/make_wizard.pattern |
---|
97 | %{_libdir}/ocaml/num-top |
---|
98 | |
---|
99 | %files devel |
---|
100 | %doc LICENSE doc/README doc/guide-html |
---|
101 | #if %opt |
---|
102 | %{_libdir}/ocaml/findlib/*.a |
---|
103 | %{_libdir}/ocaml/findlib/*.cmxa |
---|
104 | #endif |
---|
105 | %{_libdir}/ocaml/findlib/*.mli |
---|
106 | %{_libdir}/ocaml/findlib/Makefile.config |
---|
107 | |
---|
108 | |
---|
109 | %changelog |
---|
110 | * Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.5.3-1 |
---|
111 | - updated to 1.5.2 |
---|
112 | - built with ocaml 4.02.1 |
---|
113 | |
---|
114 | * Sun May 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.7-1 |
---|
115 | - updated to 1.2.7 |
---|
116 | - added BR: ncurses-devel |
---|
117 | |
---|
118 | * Sat May 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.4-1 |
---|
119 | - new upstream release |
---|
120 | - spec in UTF-8 |
---|
121 | |
---|
122 | * Sun Aug 3 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.2-1 |
---|
123 | - new upstream release (dropped Patch100 was merged into upstream) |
---|
124 | |
---|
125 | * Sun Sep 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2pl1-0vl2 |
---|
126 | - rebuilt for VineSeed |
---|
127 | |
---|
128 | * Sun Sep 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2pl1-0vl1 |
---|
129 | - new upstream release |
---|
130 | - rebuilt with ocaml 3.10.0 |
---|
131 | |
---|
132 | * Sat May 26 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.1.1-0vl1 |
---|
133 | - initial build |
---|