forked from pool/python-python-daemon
Accepting request 533010 from devel:languages:python:singlespec-staging
- singlespec auto-conversion - update requirements - use pytest as test runner - update to 2.1.2 * Ensure custom types are part of the Python type hierarchy. * Raise a warning that the ‘runner’ module is pending deprecation. This has been an unofficial example module from the beginning, and it will be removed in a future version. OBS-URL: https://build.opensuse.org/request/show/533010 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
f628c59ad8
commit
ec3085c22d
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-daemon
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@@ -16,31 +16,35 @@
|
||||
#
|
||||
|
||||
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-python-daemon
|
||||
Version: 2.1.1
|
||||
Version: 2.1.2
|
||||
Release: 0
|
||||
Url: http://pypi.python.org/pypi/python-daemon/
|
||||
Summary: Library to implement a well-behaved Unix daemon process
|
||||
License: Apache-2.0 and GPL-3.0
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel >= 2.7
|
||||
BuildRequires: python-docutils
|
||||
BuildRequires: python-lockfile >= 0.10
|
||||
BuildRequires: python-mock >= 1.0
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-testscenarios >= 0.4
|
||||
BuildRequires: python-testtools
|
||||
BuildRequires: python-unittest2 >= 0.6
|
||||
Url: http://pypi.python.org/pypi/python-daemon/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel >= 2.7}
|
||||
BuildRequires: %{python_module docutils}
|
||||
BuildRequires: %{python_module lockfile >= 0.10}
|
||||
BuildRequires: %{python_module mock >= 1.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module testscenarios >= 0.4}
|
||||
BuildRequires: %{python_module testtools}
|
||||
BuildRequires: %{python_module unittest2 >= 0.6}
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-docutils
|
||||
Requires: python-lockfile >= 0.10
|
||||
Provides: python-daemon = %{version}
|
||||
Obsoletes: python-daemon < %{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-daemon = %{version}
|
||||
Obsoletes: %{oldpython}-daemon < %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This library implements the well-behaved daemon specification of PEP 3143, "Standard daemon
|
||||
@@ -54,15 +58,15 @@ process environment for the program; use the instance as a context manager to en
|
||||
%setup -q -n python-daemon-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec -m pytest test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog LICENSE.ASF-2 doc
|
||||
%{python_sitelib}/*
|
||||
|
Reference in New Issue
Block a user