File opencloud.spec of Package opencloud

#
# spec file for package opencloud
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define githash 3d1c6fb16699a17e70caacb9ddf527714d05ce63

Name:           opencloud
Version:        0.0.1
Release:        0
Summary:        opencloud server
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        Apache-2.0
URL:            https://github.com/opencloud-eu/opencloud
Source0:        https://github.com/opencloud-eu/opencloud/archive/%{githash}.tar.gz#/%{name}-%{version}.tar.gz
#Source1:        vendor.tar.xz
BuildRequires:  go
BuildRequires:  automake

%description
Intelligent file management and a strong open source community turn files into
valuable resources - effectively structured and usable in the long term.

%prep
%autosetup -p1 -n opencloud-%{githash}

%build
VERSION=%{version} make generate
VERSION=%{version} make -C opencloud build

%install
install -D opencloud/bin/opencloud %{buildroot}%{_bindir}/opencloud

%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/opencloud

%changelog
openSUSE Build Service is sponsored by