From 352e522df47a99b243291b65641155b8a64db802 Mon Sep 17 00:00:00 2001 From: Andy Li Date: Thu, 12 Oct 2017 09:52:51 +0800 Subject: [PATCH] initial import (#1468939) --- .gitignore | 1 + README.md | 3 -- ocaml-gen.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 88 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 ocaml-gen.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..216e574 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ocaml-gen-0.4.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index e4efd9c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# ocaml-gen - -The ocaml-gen package \ No newline at end of file diff --git a/ocaml-gen.spec b/ocaml-gen.spec new file mode 100644 index 0000000..57b4296 --- /dev/null +++ b/ocaml-gen.spec @@ -0,0 +1,86 @@ +%global debug_package %{nil} + +Name: ocaml-gen +Version: 0.4.0.1 +Release: 1%{?dist} +Summary: Simple, efficient iterators for OCaml + +License: BSD +URL: https://github.com/c-cube/gen +Source0: https://github.com/c-cube/gen/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: ocaml +BuildRequires: ocaml-ocamlbuild +BuildRequires: ocaml-findlib +BuildRequires: ocaml-ocamldoc + +%description +Iterators for OCaml, both restartable and consumable. +The implementation keeps a good balance between simplicity and performance. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and signature files for +developing applications that use %{name}. + + +%prep +%setup -q -n gen-%{version} +./configure + + +%build +%make_build + + +%install +export DESTDIR=$RPM_BUILD_ROOT +export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml +mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs +%make_install doc + + +%check +%make_build test + + +%files +%doc README.md +%license LICENSE +%{_libdir}/ocaml/gen +%ifarch %{ocaml_native_compiler} +%exclude %{_libdir}/ocaml/gen/*.a +%exclude %{_libdir}/ocaml/gen/*.cmxa +%exclude %{_libdir}/ocaml/gen/*.cmx +%endif +%exclude %{_libdir}/ocaml/gen/*.ml +%exclude %{_libdir}/ocaml/gen/*.mli + +# These are empty files. +%exclude %{_libdir}/ocaml/gen/genLabels.annot +%exclude %{_libdir}/ocaml/gen/genLabels_intf.annot +%exclude %{_libdir}/ocaml/gen/genM_intf.annot +%exclude %{_libdir}/ocaml/gen/gen_intf.annot + + +%files devel +%doc README.md gen.docdir/* +%license LICENSE +%ifarch %{ocaml_native_compiler} +%{_libdir}/ocaml/gen/*.a +%{_libdir}/ocaml/gen/*.cmxa +%{_libdir}/ocaml/gen/*.cmx +%endif +%{_libdir}/ocaml/gen/*.ml +%{_libdir}/ocaml/gen/*.mli + + +%changelog +* Fri Jul 07 2017 Andy Li - 0.4.0.1-1 +- Initial RPM release. diff --git a/sources b/sources new file mode 100644 index 0000000..ac9a371 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ocaml-gen-0.4.0.1.tar.gz) = 30722cca6d9b360a9a7d4a97f7553935d5425d5e3d49a7ae265bd0aee5961628a20d182775767a125cf367e1cd218ce4e782f025951468a4f95975163a1f4d76