2010-06-28 10:55:16 +00:00
|
|
|
#
|
2011-12-07 14:33:04 +00:00
|
|
|
# spec file for package python-zdaemon
|
2010-06-28 10:55:16 +00:00
|
|
|
#
|
2019-04-11 12:00:26 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-06-28 10:55:16 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 14:16:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-06-28 10:55:16 +00:00
|
|
|
#
|
|
|
|
|
|
2014-02-17 09:40:35 +00:00
|
|
|
|
2010-06-28 10:55:16 +00:00
|
|
|
%define modname zdaemon
|
2017-07-06 11:33:27 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-02-07 13:01:48 +00:00
|
|
|
Name: python-%{modname}
|
2019-04-11 12:00:26 +00:00
|
|
|
Version: 4.3
|
2011-12-07 14:33:04 +00:00
|
|
|
Release: 0
|
2010-06-28 10:55:16 +00:00
|
|
|
Summary: Daemon process control library and tools
|
2011-12-08 13:35:52 +00:00
|
|
|
License: ZPL-2.1
|
2014-02-07 13:01:48 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:26:31 +00:00
|
|
|
URL: https://github.com/zopefoundation/zdaemon
|
2017-07-06 11:33:27 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz
|
2019-09-12 17:16:52 +00:00
|
|
|
Patch0: obs-timeout.patch
|
2017-07-06 11:33:27 +00:00
|
|
|
BuildRequires: %{python_module ZConfig}
|
2019-04-11 12:00:26 +00:00
|
|
|
BuildRequires: %{python_module manuel}
|
|
|
|
|
BuildRequires: %{python_module mock}
|
2017-07-06 11:33:27 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-04-11 12:00:26 +00:00
|
|
|
BuildRequires: %{python_module zc.customdoctests}
|
|
|
|
|
BuildRequires: %{python_module zope.testing}
|
|
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
2017-07-06 11:33:27 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2014-02-17 09:40:35 +00:00
|
|
|
Requires: python-ZConfig
|
2017-07-06 11:33:27 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(preun): update-alternatives
|
2010-06-28 10:55:16 +00:00
|
|
|
BuildArch: noarch
|
2017-07-06 11:33:27 +00:00
|
|
|
%python_subpackages
|
2010-06-28 10:55:16 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
zdaemon is a Python package which provides APIs for managing
|
|
|
|
|
applications run as daemons. Its principal use to date has been to
|
|
|
|
|
manage the application server and storage server daemons for Zope / ZEO,
|
|
|
|
|
although it is not limited to running Python-based applications
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
2019-09-12 17:16:52 +00:00
|
|
|
%patch0 -p1
|
2015-05-24 18:37:29 +00:00
|
|
|
# remove unwanted shebang
|
|
|
|
|
sed -i '1 { /^#!/ d }' src/zdaemon/tests/nokill.py
|
2017-07-06 11:33:27 +00:00
|
|
|
rm -rf src/zdaemon.egg-info
|
2010-06-28 10:55:16 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-07-06 11:33:27 +00:00
|
|
|
%python_build
|
2010-06-28 10:55:16 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-07-06 11:33:27 +00:00
|
|
|
%python_install
|
2019-04-11 12:00:26 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-07-06 11:33:27 +00:00
|
|
|
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/zdaemon
|
2014-02-07 13:01:48 +00:00
|
|
|
|
2019-04-11 12:00:26 +00:00
|
|
|
%check
|
|
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
2014-02-07 13:01:48 +00:00
|
|
|
%post
|
2017-07-06 11:33:27 +00:00
|
|
|
%python_install_alternative zdaemon
|
2014-02-07 13:01:48 +00:00
|
|
|
|
2015-05-24 18:37:29 +00:00
|
|
|
%postun
|
2017-07-06 11:33:27 +00:00
|
|
|
%python_uninstall_alternative zdaemon
|
2014-02-07 13:01:48 +00:00
|
|
|
|
2017-07-06 11:33:27 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:26:31 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.rst CHANGES.rst
|
2017-07-06 11:33:27 +00:00
|
|
|
%python_alternative %{_bindir}/zdaemon
|
2015-05-24 18:37:29 +00:00
|
|
|
%{python_sitelib}/*
|
2010-06-28 10:55:16 +00:00
|
|
|
|
2014-02-17 09:40:35 +00:00
|
|
|
%changelog
|