File google-drive-ocamlfuse.spec of Package google-drive-ocamlfuse

# spec file for package google-drive-ocamlfuse
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2016-2017 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

%define build_flavor @BUILD_FLAVOR@%{nil}
%if "%{build_flavor}" == "testsuite"
%define nsuffix -testsuite
%define nsuffix %{nil}

%define     pkg google-drive-ocamlfuse
Name:           %{pkg}%{nsuffix}
Version:        0.7.26
Release:        0
Summary:        FUSE filesystem for Google Drive
License:        MIT
Group:          System/Filesystems
Source0:        %{pkg}-%{version}.tar.xz
BuildRequires:  ocaml
BuildRequires:  ocaml-dune
BuildRequires:  ocaml-rpm-macros >= 20210121
%if 1
BuildRequires:  ocamlfind(camlidl)
BuildRequires:  ocamlfind(cryptokit)
BuildRequires:  ocamlfind(extlib)
BuildRequires:  ocamlfind(gapi-ocaml)
BuildRequires:  ocamlfind(ocamlfuse)
BuildRequires:  ocamlfind(sqlite3)
BuildRequires:  ocamlfind(threads)

%if "%{build_flavor}" == "testsuite"
BuildRequires:  ocamlfind(google-drive-ocamlfuse)
BuildRequires:  ocamlfind(oUnit)

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:

%autosetup -p1 -n %{pkg}-%{version}

%if "%{build_flavor}" == ""

%if "%{build_flavor}" == ""
tee -a %{name}.files < %{name}.files.devel

%if "%{build_flavor}" == "testsuite"

%if "%{build_flavor}" == ""
%files -f %{name}.files
%doc doc/


openSUSE Build Service is sponsored by