Name: ocaml-seq Version: 0.1 Release: 2%{?dist} Summary: Compatibility package for OCaml's standard iterator type # Note the license is really this, and not "GPL" as documented in the # README. I filed a bug upstream to get them to include a license # file: https://github.com/c-cube/seq/issues/4 License: LGPLv2+ with exceptions URL: https://github.com/c-cube/seq Source0: https://github.com/c-cube/seq/archive/0.1.tar.gz # Upstream patches since 0.1 was released. Patch0001: 0001-switch-between-definition-alias-module-depending-on-.patch Patch0002: 0002-fix-opam-set-LGPL-as-the-license-close-2.patch Patch0003: 0003-fix-opam-specify-constraints-on-ocaml-4.07.patch BuildRequires: ocaml BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamlbuild-devel %description Compatibility package for OCaml's standard iterator type starting from 4.07. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and signature files for developing applications that use %{name}. %prep %setup -q -n seq-%{version} %autopatch -p1 %build make %{?_smp_mflags} all %install export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR mkdir -p $OCAMLFIND_DESTDIR/stublibs make install # Don't ship the .ml file. rm $OCAMLFIND_DESTDIR/seq/seq.ml %files %doc README.md %{_libdir}/ocaml/seq %ifarch %{ocaml_native_compiler} %exclude %{_libdir}/ocaml/seq/*.a %exclude %{_libdir}/ocaml/seq/*.cmxa %exclude %{_libdir}/ocaml/seq/*.cmx %endif %exclude %{_libdir}/ocaml/seq/*.mli %exclude %{_libdir}/ocaml/seq/META %files devel %ifarch %{ocaml_native_compiler} %{_libdir}/ocaml/seq/*.a %{_libdir}/ocaml/seq/*.cmxa %{_libdir}/ocaml/seq/*.cmx %endif %{_libdir}/ocaml/seq/*.mli %{_libdir}/ocaml/seq/META %changelog * Thu Aug 1 2019 Richard W.M. Jones - 0.1-2 - Add a link to upstream bug about the license. - Don't install seq.ml file. - Don't package META twice. * Thu Aug 1 2019 Richard W.M. Jones - 0.1-1 - Initial version.