14
0

Accepting request 306498 from home:benoit_monin:branches:devel:languages:python

- update to version 2.0.5
- update package license: changed upstream to apache-2.0
- point the source URL to pypi
- set a minimum version for python-devel
- remove python-MiniMock from build dependencies
- add python-docutils, python-mock, python-testscenarios,
  python-testtools, python-unittest2 as test dependencies
- set a minimum version for python-lockfile
- remove sed call to fix non-executable script: fixed upstream
- run the test during build
- add LICENSE.ASF-2 and doc to package documentation

OBS-URL: https://build.opensuse.org/request/show/306498
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=9
This commit is contained in:
Denisart Benjamin
2015-05-16 12:54:36 +00:00
committed by Git OBS Bridge
parent feb3869148
commit f18aff55a9
4 changed files with 121 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-daemon
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -17,18 +17,23 @@
Name: python-python-daemon
Version: 1.5.5
Version: 2.0.5
Release: 0
Url: http://pypi.python.org/pypi/python-daemon/
Summary: Library to implement a well-behaved Unix daemon process
License: Python-2.0
License: Apache-2.0
Group: Development/Languages/Python
Source: python-daemon-%{version}.tar.bz2
Source: https://pypi.python.org/packages/source/p/python-daemon/python-daemon-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-MiniMock
BuildRequires: python-devel
BuildRequires: python-devel >= 2.7
BuildRequires: python-docutils
BuildRequires: python-lockfile >= 0.10
BuildRequires: python-mock >= 1.0
BuildRequires: python-setuptools
Requires: python-lockfile
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools
BuildRequires: python-unittest2 >= 0.6
Requires: python-lockfile >= 0.10
Provides: python-daemon = %{version}
Obsoletes: python-daemon < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -47,7 +52,6 @@ process environment for the program; use the instance as a context manager to en
%prep
%setup -q -n python-daemon-%{version}
sed -i "1d" daemon/version/version_info.py # Fix non-executable script
%build
python setup.py build
@@ -55,9 +59,12 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py -q test
%files
%defattr(-,root,root,-)
%doc ChangeLog
%doc ChangeLog LICENSE.ASF-2 doc
%{python_sitelib}/*
%changelog