ocaml-findlib-vl.spec 3.4 KB

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