%undefine _package_note_flags %ifnarch %{ocaml_native_compiler} %global debug_package %{nil} %endif # $global gitrev f5b1237a230d510d7030704487a433015e4ebf63 # Version: 0.7.29.git20220427 # Source: ${url}/archive/${gitrev}.tar.gz Name: google-drive-ocamlfuse Version: 0.7.30 Release: 1%{?dist} Summary: A FUSE filesystem for Google Drive. License: MIT URL: https://github.com/astrada/google-drive-ocamlfuse Source: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: ocaml >= 4.04.0 BuildRequires: ocaml-dune-devel BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-odoc BuildRequires: ocaml-camlidl-devel BuildRequires: ocaml-cryptokit-devel BuildRequires: ocaml-extlib-devel BuildRequires: ocaml-gapi-devel >= 0.4.2 BuildRequires: ocaml-ocamlfuse-devel >= 2.7.1.cvs6 BuildRequires: ocaml-ounit-devel BuildRequires: ocaml-sqlite-devel BuildRequires: ocaml-tiny-httpd-devel # And now all the *undocumented* dependencies... BuildRequires: ocaml-biniou-devel BuildRequires: ocaml-curl-devel BuildRequires: ocaml-easy-format-devel BuildRequires: ocaml-ocamlnet-devel BuildRequires: ocaml-seq-devel BuildRequires: ocaml-yojson-devel BuildRequires: ocaml-zarith-devel BuildRequires: fuse-devel %description %{name} is a FUSE filesystem for Google Drive, written in OCaml. %prep %autosetup # -n ${name}-${gitrev} %build dune build %{?_smp_mflags} --verbose --profile release dune build @doc %install dune install --destdir=%{buildroot} # We do not want the dune markers find _build/default/_doc/_html -name .dune-keep -delete # We do not want the ml files find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete # We install the documentation with the doc macro rm -fr %{buildroot}%{_prefix}/doc # This is a leaf package; we don't need dune or opam directives. rm -f %{buildroot}%{_libdir}/ocaml/google-drive-ocamlfuse/{dune-package,opam} %check dune runtest --profile release %files %doc README.md %license LICENSE %{_bindir}/google-drive-ocamlfuse %{_libdir}/ocaml/google-drive-ocamlfuse/META %changelog * Wed Jul 27 2022 Jashank Jeremy - 0.7.30-1 - New version 0.7.30 (and bump for Fedora 37 mass rebuild). * Fri Jun 24 2022 Jashank Jeremy - 0.7.29.git20220427-2 - Bump to rebuild with OCaml 4.14.0. * Fri May 06 2022 Jashank Jeremy - 0.7.29.git20220427-1 - Initial RPM release.