ocaml-gen/ocaml-gen.spec

87 lines
1.9 KiB
RPMSpec
Raw Normal View History

2017-10-12 01:52:51 +00:00
%global debug_package %{nil}
Name: ocaml-gen
2017-11-17 02:54:00 +00:00
Version: 0.5
2017-12-02 11:03:40 +00:00
Release: 2%{?dist}
2017-10-12 01:52:51 +00:00
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}
%build
2017-11-17 02:54:00 +00:00
./configure
2017-10-12 01:52:51 +00:00
%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
2017-11-17 02:54:00 +00:00
%doc README.md CHANGELOG.md
2017-10-12 01:52:51 +00:00
%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
%files devel
2017-11-17 02:54:00 +00:00
%doc README.md CHANGELOG.md gen.docdir/*
2017-10-12 01:52:51 +00:00
%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
2017-12-02 11:03:40 +00:00
* Sat Dec 02 2017 Richard W.M. Jones <rjones@redhat.com> - 0.5-2
- OCaml 4.06.0 rebuild.
2017-11-17 02:54:00 +00:00
* Fri Nov 17 2017 Andy Li <andy@onthewings.net> - 0.5-1
- New upstream version 0.5.
2017-10-12 01:52:51 +00:00
* Fri Jul 07 2017 Andy Li <andy@onthewings.net> - 0.4.0.1-1
- Initial RPM release.