File discourse-plugin-data-explorer.spec of Package discourse-plugin-data-explorer
#
# spec file for package discourse-plugin-data-explorer
#
# Copyright (c) 2018 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 app_dir /srv/www/vhosts/discourse
%define plugin_dir %{app_dir}/plugins
%define plugin_name discourse-data-explorer
Name: discourse-plugin-data-explorer
Version: 0
Release: 0
Summary: Data Explorer Plugin
License: MIT
Group: Internal
Url: https://github.com/discourse/discourse-data-explorer.git
Source: %{plugin_name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: rsync
BuildRequires: discourse
%requires_ge discourse
%description
Data Explorer Plugin
%prep
%setup -q -n %{plugin_name}-%{version}
%build
chmod -R u=rwX,g=rX,o= .
chmod -R u=rwX,g=rX,o=X .
#chmod -R u=rwX,g=rX,o=rX public
%install
install -D -d -m 0751 %{buildroot}%{plugin_dir}/%{plugin_name}/
rsync -av $PWD/ %{buildroot}%{plugin_dir}/%{plugin_name}/
%postun
touch %{app_dir}/tmp/rebuild.txt
%service_del_postun discourse-update.service
%files
%attr(-,root,discourse) %{plugin_dir}/%{plugin_name}/
%changelog