File roundcubemail-plugin-contextmenu.spec of Package roundcubemail-plugin-contextmenu
#
# spec file for package roundcubemail-plugin-contextmenu
#
# 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 http://bugs.opensuse.org/
#
%define roundcube_plugindir /srv/www/vhosts/roundcubemail/public/plugins/
%define plugin contextmenu
%define user_group_name _roundcubemail
Name: roundcubemail-plugin-contextmenu
Version: 3.1
Release: 0
Summary: Roundcubemail - contextmenu plugin
License: AGPL-3.0
Group: Productivity/Networking/Web/Utilities
Url: https://plugins.roundcube.net/packages/roundcube/contextmenu
Source: roundcube-contextmenu-3.0.tar.gz
BuildRequires: roundcubemail
BuildRequires: rsync
%requires_ge roundcubemail
%description
contextmenu plugin for the RoundCube Webmailer
%prep
%autosetup -p1 -n roundcube-%{plugin}-%{version}
%build
find -type f -executable -print0 | xargs -r0 chmod a-x
%install
install -D -d -m 0755 %{buildroot}%{roundcube_plugindir}/%{plugin}/
rsync -av $PWD/ %{buildroot}%{roundcube_plugindir}/%{plugin}/
%files
%defattr(-,root,%{user_group_name})
%doc README.md
%{roundcube_plugindir}/%{plugin}/
%changelog