.gear/ocaml-stdcompat.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++ .gear/rules | 3 ++ .gear/tags/list | 1 + Makefile.am | 5 ++-- 4 files changed, 81 insertions(+), 2 deletions(-) diff --git a/.gear/ocaml-stdcompat.spec b/.gear/ocaml-stdcompat.spec new file mode 100644 index 0000000..656df13 --- /dev/null +++ b/.gear/ocaml-stdcompat.spec @@ -0,0 +1,74 @@ +%define libname stdcompat +Name: ocaml-%libname +Version: 17 +Release: alt1 +Summary: Compatibility module for OCaml standard library +License: BSD-3-Clause +Group: Development/ML +Url: https://github.com/thierry-martinez/stdcompat +Source0: %name-%version.tar +Patch0: %name-%version-%release.patch +BuildRequires: ocaml-result-devel dune opam + +%description +Compatibility module for OCaml standard library allowing programs to use some +recent additions to the OCaml standard library while preserving the ability to +be compiled on former versions of OCaml. + +%package devel +Summary: Development files for %name +Group: Development/ML +Requires: %name = %version-%release + +%description devel +The %name-devel package contains libraries and signature files for +developing applications that use %name. + +%prep +%setup +%patch0 -p1 + +%build +make -f Makefile.bootstrap +%configure --libdir=%_libdir/ocaml +%make all + +%check +%make test + +%install +%makeinstall_std + + +%files +%doc README.md ChangeLog COPYING +%dir %_libdir/ocaml/%libname +%_libdir/ocaml/%libname/* +%_libdir/ocaml/stublibs/*.so* +%exclude %_libdir/ocaml/%libname/*.cmx +%exclude %_libdir/ocaml/%libname/*.cmt* +%exclude %_libdir/ocaml/%libname/*.ml +%exclude %_libdir/ocaml/%libname/*.cmxa +%exclude %_libdir/ocaml/%libname/*.cmxs + + +%files devel +%_libdir/ocaml/%libname/*.cmx +%_libdir/ocaml/%libname/*.cmt* +%_libdir/ocaml/%libname/*.ml +%_libdir/ocaml/%libname/*.cmxa +%_libdir/ocaml/%libname/*.cmxs + +%changelog +* Mon Oct 04 2021 Anton Farygin 17-alt1 +- 15 -> 17 + +* Fri Mar 19 2021 Anton Farygin 15-alt1 +- 14 -> 15 + +* Mon Oct 12 2020 Anton Farygin 14-alt1 +- 13 -> 14 + +* Thu Mar 05 2020 Anton Farygin 13-alt1 +- first build for ALT + diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..f7a4c44 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec:.gear/ocaml-stdcompat.spec +tar: v@version@:. +diff: v@version@:. . diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..8948e73 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +a04b36637aad37c31c0e4da05f433cecda83b804 v17 diff --git a/Makefile.am b/Makefile.am index 3ec1593..47e6d9a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -165,5 +165,6 @@ CLEANFILES = *.cmi *.cmo *.cmx *.cmt *.cmti *.o *.a stdcompat.cma \ stdcompat.cmxs $(STDCOMPAT_TESTS_EXE) $(bin_SCRIPTS) .depend install-exec-hook : - $(INSTALL_PROGRAM) dllstdcompat__stubs.so $(libdir)/stublibs - echo stdcompat >$(libdir)/stublibs/dllstdcompat__stubs.so.owner + $(MKDIR_P) $(DESTDIR)$(libdir)/stublibs + $(INSTALL_PROGRAM) dllstdcompat__stubs.so $(DESTDIR)$(libdir)/stublibs + echo stdcompat >$(DESTDIR)$(libdir)/stublibs/dllstdcompat__stubs.so.owner