File roundcubemail-plugin-ap4rc.spec of Package roundcubemail-plugin-ap4rc

#
# spec file for package roundcubemail-plugin-ap4rc
#
# Copyright (c) 2021 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 roundcube_plugindir    /srv/www/vhosts/roundcubemail/public/plugins/
%define plugin ap4rc 
%define user_group_name _roundcubemail

Name:           roundcubemail-plugin-ap4rc
Version:        0.0.2+git9.28b83d3
Release:        0
Summary:        Application Passwords for Roundcube
License:        GPL-3.0-or-later
URL:            https://github.com/darix/ap4rc
Source:         _service 
BuildRequires:  roundcubemail 
BuildRequires:  rsync
%requires_ge    roundcubemail
BuildArch:      noarch

%description
Application Passwords for Roundcube.

In a neat modern way.

%prep
mv %{_sourcedir}/%{plugin}-%{version} %{_builddir}/%{plugin}-%{version}
%autosetup -p1 -D -T 0 -n %{plugin}-%{version}

%build

%install
install -D -d -m 0755 %{buildroot}%{roundcube_plugindir}/%{plugin}/
rsync -av --exclude='SQL/' --exclude="*.md" --exclude=LICENSE --chmod u=rwX,go=rX $PWD/ %{buildroot}%{roundcube_plugindir}/%{plugin}/

%files
%doc README.md
%doc SQL/
%license LICENSE
%attr(-,root,%{user_group_name}) %{roundcube_plugindir}/%{plugin}/

%changelog

openSUSE Build Service is sponsored by