From 56fe27bf1087192516d3d6d51b8d9416b920f26433b273c46ec747b3091ac5cf Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 22 Aug 2017 13:21:27 +0000 Subject: [PATCH] Accepting request 518129 from home:tbechtold:branches:devel:languages:python - update to 1.0.3: * don't re-split arguments * Version bump (1.0.2) * Version bump to 1.0.3 * remove un-needed function * update README - convert to singlespec OBS-URL: https://build.opensuse.org/request/show/518129 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=10 --- python-editor-1.0.1.tar.gz | 3 --- python-editor-1.0.3.tar.gz | 3 +++ python-python-editor.changes | 11 +++++++++++ python-python-editor.spec | 29 +++++++++++++++-------------- 4 files changed, 29 insertions(+), 17 deletions(-) delete mode 100644 python-editor-1.0.1.tar.gz create mode 100644 python-editor-1.0.3.tar.gz diff --git a/python-editor-1.0.1.tar.gz b/python-editor-1.0.1.tar.gz deleted file mode 100644 index 5b917a3..0000000 --- a/python-editor-1.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8672e9a44a7957741453dd35e842299f6c29f0a88dc9e4316b0fa5935abb9186 -size 7014 diff --git a/python-editor-1.0.3.tar.gz b/python-editor-1.0.3.tar.gz new file mode 100644 index 0000000..1c5d332 --- /dev/null +++ b/python-editor-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3c066acee22a1c94f63938341d4fb374e3fdd69366ed6603d7b24bed1efc565 +size 6975 diff --git a/python-python-editor.changes b/python-python-editor.changes index 90ad288..ea38b3e 100644 --- a/python-python-editor.changes +++ b/python-python-editor.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Aug 22 12:49:38 UTC 2017 - tbechtold@suse.com + +- update to 1.0.3: + * don't re-split arguments + * Version bump (1.0.2) + * Version bump to 1.0.3 + * remove un-needed function + * update README +- convert to singlespec + ------------------------------------------------------------------- Fri Sep 16 14:35:20 UTC 2016 - toddrme2178@gmail.com diff --git a/python-python-editor.spec b/python-python-editor.spec index 439dcfd..dc633b5 100644 --- a/python-python-editor.spec +++ b/python-python-editor.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-editor # -# Copyright (c) 2016 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,25 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-editor -Version: 1.0.1 +Version: 1.0.3 Release: 0 Summary: Programmatically open an editor, capture the result License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/fmoo/python-editor Source: https://files.pythonhosted.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros %if 0%{?is_opensuse} BuildRequires: nano %endif 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 -%endif + +%python_subpackages %description python-editor is a library that provides the editor module for @@ -44,18 +44,19 @@ programmatically interfacing with your system’s EDITOR. %setup -q -n python-editor-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %if 0%{?is_opensuse} -%check -export EDITOR='nano' -python test.py +# do not run tests for now (https://github.com/fmoo/python-editor/issues/14) +# %check +# export EDITOR='nano' +# Xpython_exec test.py %endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.md %{python_sitelib}/*