File nextcloud-apps-carnet.spec of Package nextcloud-apps-carnet
#
# spec file for package nextcloud-apps-carnet
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, 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 https://bugs.opensuse.org/
#
%define app_name carnet
Name: nextcloud-apps-%{app_name}
Version: 0.24.5
Release: 0
#
Summary: Nextcloud Apps - Carnet notes and tasks
License: AGPL-3.0-only
Group: Productivity/Networking/Web/Utilities
URL: https://apps.nextcloud.com/apps/carnet
Source0: https://github.com/CarnetApp/CarnetNextcloud/releases/download/v%{version}/carnet-nc-v%{version}.tar.gz
#
BuildRequires: nextcloud > 15
BuildRequires: nextcloud-packaging >= 16
%requires_ge nextcloud
BuildArch: noarch
%description
Carnet is a powerful note taking app which purpose is not only to write your
shopping list but can also be used to write longer texts, stories, etc. Carnet
is available on Android and Linux, on your web browser, Windows and Mac, with
sync capabilities
* Complete editor: bold/italic/underline/color/highlight
* Import from Google Keep (only on desktop, then sync on mobile)
* Insert images / review
* Open HTML format
* Organize with folders and choose root storage folder depending on your needs
* Keywords
* Quickly see your recent notes
* Search amount your notes
* Protect the app with a pin code (no encryption) on android
* Statistics : words/sentences/characters
* Sync with ownCloud/NextCloud
* Online editor as a ownCloud/NextCloud App
%prep
%setup -n %{app_name}
# Remove zip files which cause issues with rpmlint
rm -rf vendor/nelexa/zip/tests/PhpZip/php-zip-ext-test-resources/
rm -rf vendor/nelexa/zip/tests/PhpZip/resources/
rm -f release.sh
rm -f to_stable_branch.sh
rm -f templates/CarnetElectron/compile.sh
rm -f templates/CarnetElectron/release_*.sh
rm -f templates/CarnetElectron/to_stable_branch.sh
# Remove version control files
find -name .gitignore -delete
find -name .github | xargs rm -rf
find -name .gitmodules -delete
find -name .gitattributes -delete
find -name .travis.yml -delete
find -name \*.swp -delete
%build
find -type f -print0 | xargs -r0 chmod a-x
%{nextcloud_apps_package %{app_name}}
%changelog