source: projects/specs/trunk/o/ocaml-findlib/ocaml-findlib-vl.spec @ 9296

Revision 9296, 3.4 KB checked in by inagaki, 9 years ago (diff)

2015-01-26 Ryoichi INAGAKI <ryo1@…>

  • ledit: rebuilt
  • ocaml, ocaml-findlib: updated
  • ocaml-camlp4, ocaml-labltk: split from ocaml
  • ocaml-camlp5, pcaml-facile: updated and renamed


Line 
1Summary:        OCaml package manager and build helper
2Summary(ja):    OCaml のパッケージ管理ツール及びビルド補助ツール
3Name:           ocaml-findlib
4Version:        1.5.2
5Release:        1%{?_dist_release}
6
7License:        BSD
8Group:          Development/Tools
9URL:            http://projects.camlcity.org/projects/findlib.html
10
11Source0:        http://download.camlcity.org/download/findlib-%{version}.tar.gz
12
13# Use ocamlopt -g patch to include debug information.
14Patch1:         findlib-1.4-add-debug.patch
15
16# Vine Patch
17# Patch100:     ocaml-findlib-installpath.patch
18
19Buildroot:      %{_tmppath}/%{name}-%{version}-root
20BuildRequires:  ocaml >= 4.02.0
21BuildRequires:  ocaml-camlp4-devel
22BuildRequires:  ncurses-devel
23BuildRequires:  m4
24BuildRequires:  gawk
25Requires:       ocaml
26
27Vendor:         Project Vine
28Distribution:   Vine Linux
29
30%global __ocaml_requires_opts -i Asttypes -i Parsetree
31
32%description
33Objective CAML package manager and build helper.
34
35
36%package        devel
37Summary:        Development files for %{name}
38Summary(ja):    %{name} の開発用ファイル
39Group:          Development/Libraries
40Requires:       %{name} = %{version}-%{release}
41
42%description    devel
43The %{name}-devel package contains libraries and header files for
44developing applications that use %{name}.
45
46
47%prep
48%setup -q -n findlib-%{version}
49%patch1 -p2
50
51%build
52ocamlc -version
53ocamlc -where
54(cd tools/extract_args && make)
55tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
56cat src/findlib/ocaml_args.ml
57./configure -config %{_sysconfdir}/ocamlfind.conf \
58  -bindir %{_bindir} \
59  -sitelib `ocamlc -where` \
60  -mandir %{_mandir} \
61  -with-toolbox
62make all opt
63#%if %opt
64#make opt
65#%endif
66rm doc/guide-html/TIMESTAMP
67
68
69%install
70rm -rf $RPM_BUILD_ROOT
71# Grrr destdir grrrr
72mkdir -p $RPM_BUILD_ROOT%{_bindir}
73make install prefix=$RPM_BUILD_ROOT OCAMLFIND_BIN=$RPM_BUILD_ROOT%{_bindir}
74mv $RPM_BUILD_ROOT/$RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
75
76%clean
77rm -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
Note: See TracBrowser for help on using the repository browser.