# # spec file for package google-drive-ocamlfuse # # Copyright (c) 2016 Sérgio Basto. # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # NOTE: This RPM will generate 'W: unstripped-binary-or-object' warnings from # rpmlint. You can't strip OCaml binaries, so these need to be ignored. %define debug_package %{nil} %global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) # This violates the OCaml package naming guidelines but it's not a library or # utility, it's a binary package so should be fine? Name: google-drive-ocamlfuse Version: 0.7.22 Release: 3%{?dist} License: BSD Summary: A FUSE filesystem over Google Drive Url: http://gdfuse.forge.ocamlcore.org Source: https://github.com/astrada/google-drive-ocamlfuse/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: fuse-devel BuildRequires: ocaml >= 4.02.3 BuildRequires: ocaml-biniou-devel BuildRequires: ocaml-camlidl-devel BuildRequires: ocaml-cryptokit-devel BuildRequires: ocaml-curl-devel BuildRequires: ocaml-dune >= 2.5 BuildRequires: ocaml-easy-format-devel BuildRequires: ocaml-extlib-devel BuildRequires: ocaml-findlib-devel >= 1.2.7 BuildRequires: ocaml-gapi-devel >= 0.3.19 BuildRequires: ocaml-ocamlfuse-devel >= 2.7.1 BuildRequires: ocaml-ocamlnet-devel BuildRequires: ocaml-sqlite-devel >= 1.6.1 BuildRequires: ocaml-yojson-devel BuildRequires: ocaml-zarith-devel BuildRequires: zlib-devel %if 0%{?fedora} >= 32 BuildRequires: ocaml-odoc %define _dune_targets @install @doc %else %define _dune_targets @install %endif Requires: ocaml >= 4.02.3 Requires: ocaml-biniou Requires: ocaml-camlidl Requires: ocaml-cryptokit Requires: ocaml-curl Requires: ocaml-easy-format Requires: ocaml-extlib Requires: ocaml-gapi >= 0.3.19 Requires: ocaml-ocamlfuse > 2.7.1 Requires: ocaml-ocamlnet Requires: ocaml-sqlite Requires: ocaml-yojson Requires: ocaml-zarith Requires: zlib # Some things in the description trigger 'W: spelling-error' from rpmlint, but # they're correctly spelled. %description google-drive-ocamlfuse is a FUSE-based file system backed by Google Drive, written in OCaml. It lets you mount your Google Drive on Linux. On the first time, just run google-drive-ocamlfuse, which will open a browser for authentication. If that process succeeds, it will print "Access token retrieved correctly.". Now run google-drive-ocamlfuse with an empty directory supplied, which is the mount point for your Google Drive. You can optionally unmount with fusermount -u mount-point. Further documentation is available here: https://github.com/astrada/google-drive-ocamlfuse/wiki %prep %autosetup %build dune build --for-release-of-package=%{name} %{_dune_targets} %install %{__install} -p -d -m 0755 %{buildroot}%{_docdir} %{__install} -p -d -m 0755 %{buildroot}%{_libdir}/ocaml dune install --destdir=%{buildroot} --prefix=%{_prefix} --libdir=%{_libdir}/ocaml --mandir=%{_mandir} mv %{buildroot}%{_prefix}/doc/%{name} %{buildroot}%{_docdir}/%{name} rm -f %{buildroot}%{_docdir}/%{name}/LICENSE %if 0%{?fedora} >= 32 cp -R %{_builddir}/%{buildsubdir}/_build/default/_doc/_html %{buildroot}%{_docdir}/%{name}/html %endif find %{buildroot} -type f -empty -delete find %{buildroot} -type d -empty -delete %files %defattr(-,root,root) %license LICENSE %doc README.md %if 0%{?fedora} >= 32 %doc %{_docdir}/%{name}/html %endif %{_bindir}/%{name} %exclude %{_libdir}/ocaml/%{name}/dune-package %exclude %{_libdir}/ocaml/%{name}/opam %changelog * Sun Jun 28 2020 Joel Goguen - 0.7.22-1 - Update google-drive-ocamlfuse to 0.7.22 - Update build commands to do a reproducible build * Sat Sep 07 2019 Joel Goguen - 0.7.11-1 - Update google-drive-ocamlfuse to 0.7.11 - Replace jbuilder with ocaml-dune * Thu Jan 25 2018 Sérgio Basto - 0.6.24-1 - Update google-drive-ocamlfuse to 0.6.24 * Sun Nov 05 2017 Sérgio Basto - 0.6.21-1 - Update google-drive-ocamlfuse to 0.6.21 - Enable debuginfo * Sat Jul 22 2017 Sérgio Basto - 0.6.20-1 - Update google-drive-ocamlfuse to 0.6.20 * Tue Jul 11 2017 Sérgio Basto - 0.6.17-1 - Update to 0.6.17 * Tue Dec 06 2016 Sérgio Basto - 0.6.2-1 - Update to 0.6.2 * Fri Apr 22 2016 Sérgio Basto - 0.5.22-2 - Rebuild for gapi-ocaml-0.2.10 * Thu Mar 10 2016 Sérgio Basto - 0.5.22-1 - Update to 0.5.22 * Mon Sep 28 2015 hpj@urpla.net - update to version 0.5.18 (no changelog available) * Sun Mar 29 2015 hpj@urpla.net - update to version 0.5.13 (no changelog available) * Tue Jan 6 2015 hpj@urpla.net - version 0.5.12: initial build