File python-supervisor.spec of Package python-supervisor

#
# spec file for package python-supervisor
#
# 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/
#


Name:           python-supervisor
Version:        3.3.3
Release:        0
Summary:        A system for controlling process state under UNIX
License:        SUSE-Repoze
Group:          Development/Languages/Python
Url:            http://supervisord.org/
Source:         https://pypi.io/packages/source/s/supervisor/supervisor-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-meld3 >= 0.6.5
BuildRequires:  python-setuptools
# test requirements
BuildRequires:  python-mock >= 0.5.0
Requires:       python-meld3 >= 0.6.5
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
Suggests:       python-cElementTree >= 1.0.2
%endif
BuildArch:      noarch

%description
Supervisor is a client/server system that allows its users to
control a number of processes on UNIX-like operating systems.

%prep
%setup -q -n supervisor-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}/%{python_sitelib}/supervisor/tests
rm -r %{buildroot}/%{python_sitelib}/supervisor/scripts

%check
python setup.py test

%files
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSES.txt README.rst
%{_bindir}/echo_supervisord_conf
%{_bindir}/pidproxy
%{_bindir}/supervisorctl
%{_bindir}/supervisord
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by