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

#
# spec file for package nextcloud-apps-mail
#
# 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 mail
Name:           nextcloud-apps-%{app_name}
Version:        5.5.5
Release:        0
%define pkg_version %version 
#
Summary:        Nextcloud Apps - Mail
License:        AGPL-3.0-only
Group:          Productivity/Networking/Web/Utilities
URL:            https://apps.nextcloud.com/apps/mail
Source0:        https://github.com/nextcloud-releases/mail/releases/download/v%{version}/mail-v%{pkg_version}.tar.gz
#
BuildRequires:  nextcloud > 15
BuildRequires:  nextcloud-packaging >= 16
%requires_ge nextcloud
BuildArch:      noarch

%description
* πŸš€ Integration with other Nextcloud apps! Currently Contacts, Calendar &
  Files – more to come.
* πŸ“₯ Multiple mail accounts! Personal and company account? No problem, and a
  nice unified inbox. Connect any IMAP account.
* πŸ”’ Send & receive encrypted mails! Using the great Mailvelope browser
  extension.
* πŸ™ˆ We’re not reinventing the wheel! Based on the great Horde libraries.
* πŸ“¬ Want to host your own mail server? We don’t have to reimplement this as
  you could set up Mail-in-a-Box!

%prep
%setup -n %{app_name}

%build
# Remove shipped binaries
rm -f vendor/coenjacobs/mozart/bin/mozart
rm -f vendor/cerdic/css-tidy/bin/pcsstidy
rm -f vendor/christophwurst/kitinerary-bin/bin/kitinerary-extractor
# Nothing in here should be executable ever. If it's binaries, make sure they cannot be executed.
find . -perm -o=x -and -type f -exec chmod a-x {} +
find -name \*.orig -print -delete
find vendor -type f -exec sed -i '1 s,^#!/usr/bin/env bash$,#!/bin/bash,' {} +
find vendor -type f -exec sed -i '1 s,^#!/usr/bin/env php$,#!/usr/bin/php,' {} +
rm -rf vendor/rubix

%{nextcloud_apps_package %{app_name}}

%changelog
openSUSE Build Service is sponsored by