initial import (#1468939)

This commit is contained in:
Andy Li 2017-10-12 09:52:51 +08:00
parent ae0e68e946
commit 352e522df4
4 changed files with 88 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/ocaml-gen-0.4.0.1.tar.gz

View File

@ -1,3 +0,0 @@
# ocaml-gen
The ocaml-gen package

86
ocaml-gen.spec Normal file
View File

@ -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 <andy@onthewings.net> - 0.4.0.1-1
- Initial RPM release.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ocaml-gen-0.4.0.1.tar.gz) = 30722cca6d9b360a9a7d4a97f7553935d5425d5e3d49a7ae265bd0aee5961628a20d182775767a125cf367e1cd218ce4e782f025951468a4f95975163a1f4d76