From 69501dbe4f2a9377d89a8a1d1e6023bef978943d4cc7ee0c812f1ac8859ed49c Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 28 Aug 2017 19:45:37 +0000 Subject: [PATCH] Accepting request 519205 from home:TheBlackCat:branches:devel:languages:python - update to version 0.2.3: * no changelog available - Implement single-spec version - Fix source URL OBS-URL: https://build.opensuse.org/request/show/519205 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-EasyProcess?expand=0&rev=16 --- EasyProcess-0.1.9.tar.gz | 3 --- EasyProcess-0.2.3.tar.gz | 3 +++ python-EasyProcess.changes | 8 +++++++ python-EasyProcess.spec | 44 ++++++++++++++++++++++++++------------ 4 files changed, 41 insertions(+), 17 deletions(-) delete mode 100644 EasyProcess-0.1.9.tar.gz create mode 100644 EasyProcess-0.2.3.tar.gz diff --git a/EasyProcess-0.1.9.tar.gz b/EasyProcess-0.1.9.tar.gz deleted file mode 100644 index 25cf265..0000000 --- a/EasyProcess-0.1.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9980c0b0eeab97969305d8829bed966a3e28a77284e4f45a9b38fb23ce83633 -size 10653 diff --git a/EasyProcess-0.2.3.tar.gz b/EasyProcess-0.2.3.tar.gz new file mode 100644 index 0000000..3807533 --- /dev/null +++ b/EasyProcess-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94e241cadc9a46f55b5c06000df85618849602e7e1865b8de87576b90a22e61f +size 10402 diff --git a/python-EasyProcess.changes b/python-EasyProcess.changes index 1544dbf..425f07a 100644 --- a/python-EasyProcess.changes +++ b/python-EasyProcess.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 28 19:32:50 UTC 2017 - toddrme2178@gmail.com + +- update to version 0.2.3: + * no changelog available +- Implement single-spec version +- Fix source URL + ------------------------------------------------------------------- Mon May 4 13:36:58 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-EasyProcess.spec b/python-EasyProcess.spec index 1df30d2..137ce27 100644 --- a/python-EasyProcess.spec +++ b/python-EasyProcess.spec @@ -1,7 +1,7 @@ # # spec file for package python-EasyProcess # -# 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,27 +16,32 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-EasyProcess -Version: 0.1.9 +Version: 0.2.3 Release: 0 Url: https://github.com/ponty/easyprocess Summary: Easy to use python subprocess interface License: BSD-2-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 -BuildArch: noarch +Source: http://files.pythonhosted.org/packages/source/E/EasyProcess/EasyProcess-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python3-2to3 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module nose} %endif +BuildArch: noarch + +%python_subpackages %description EasyProcess is an easy to use python subprocess interface. -Features: +Features include: - layer on top of subprocess module - easy to start, stop programs - easy to get standard output/error, return code of programs @@ -57,12 +62,23 @@ Features: %setup -q -n EasyProcess-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%if %{with test} +%check +mkdir tester +pushd tester +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python -B -m nose easyprocess +} +popd +%endif + +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE.txt README.rst %{python_sitelib}/*