File nextcloud-apps-terms_of_service.spec of Package nextcloud-apps-terms_of_service

#
# spec file for package nextcloud-apps-terms_of_service
#
# Copyright (c) 2020 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 app_name terms_of_service
Name:           nextcloud-apps-%{app_name}
Version:        1.10.2
Release:        0
#
Summary:        Nextcloud Apps - Terms of Service
License:        AGPL-3.0-only
Group:          Productivity/Networking/Web/Utilities
URL:            https://apps.nextcloud.com/apps/terms_of_service
Source0:        https://github.com/nextcloud-releases/terms_of_service/releases/download/v%{version}/terms_of_service-v%{version}.tar.gz
BuildRequires:  nextcloud > 19
BuildRequires:  nextcloud-packaging >= 16
%requires_ge nextcloud
Recommends:     %{nextcloud_php}-maxminddb
BuildArch:      noarch

%description
Requires users to accept the terms of service before accessing data. 

%prep
%setup -n %{app_name}

%build
rm -rf vendor/maxmind-db/reader/ext
find -name '.*' -and -type f -exec rm {} +
%{nextcloud_apps_package %{app_name}}

%changelog

openSUSE Build Service is sponsored by