[9296] | 1 | Summary: OCaml package manager and build helper |
---|
| 2 | Summary(ja): OCaml のパッケージ管理ツール及びビルド補助ツール |
---|
[521] | 3 | Name: ocaml-findlib |
---|
[9296] | 4 | Version: 1.5.2 |
---|
[521] | 5 | Release: 1%{?_dist_release} |
---|
[3930] | 6 | |
---|
[9296] | 7 | License: BSD |
---|
[521] | 8 | Group: Development/Tools |
---|
[9296] | 9 | URL: http://projects.camlcity.org/projects/findlib.html |
---|
[3930] | 10 | |
---|
[9296] | 11 | Source0: http://download.camlcity.org/download/findlib-%{version}.tar.gz |
---|
[521] | 12 | |
---|
[9296] | 13 | # Use ocamlopt -g patch to include debug information. |
---|
| 14 | Patch1: findlib-1.4-add-debug.patch |
---|
| 15 | |
---|
[521] | 16 | # Vine Patch |
---|
[9296] | 17 | # Patch100: ocaml-findlib-installpath.patch |
---|
[521] | 18 | |
---|
| 19 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
[9296] | 20 | BuildRequires: ocaml >= 4.02.0 |
---|
| 21 | BuildRequires: ocaml-camlp4-devel |
---|
[3930] | 22 | BuildRequires: ncurses-devel |
---|
[9296] | 23 | BuildRequires: m4 |
---|
| 24 | BuildRequires: gawk |
---|
[521] | 25 | Requires: ocaml |
---|
| 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | |
---|
[9296] | 30 | %global __ocaml_requires_opts -i Asttypes -i Parsetree |
---|
[521] | 31 | |
---|
| 32 | %description |
---|
[9296] | 33 | Objective CAML package manager and build helper. |
---|
[521] | 34 | |
---|
[9296] | 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 | |
---|
[521] | 47 | %prep |
---|
[9296] | 48 | %setup -q -n findlib-%{version} |
---|
| 49 | %patch1 -p2 |
---|
[521] | 50 | |
---|
| 51 | %build |
---|
[9296] | 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 |
---|
[521] | 62 | make all opt |
---|
[9296] | 63 | #%if %opt |
---|
| 64 | #make opt |
---|
| 65 | #%endif |
---|
| 66 | rm doc/guide-html/TIMESTAMP |
---|
[521] | 67 | |
---|
[9296] | 68 | |
---|
[521] | 69 | %install |
---|
[9296] | 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} |
---|
[521] | 75 | |
---|
| 76 | %clean |
---|
[9296] | 77 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 78 | |
---|
| 79 | %files |
---|
| 80 | %defattr(-,root,root) |
---|
[9296] | 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 |
---|
[521] | 98 | |
---|
[9296] | 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 | |
---|
[521] | 109 | %changelog |
---|
[9296] | 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 | |
---|
[3930] | 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 | |
---|
[521] | 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 |
---|