From 283a154e60dde1bad1efe6a2e90602de5658ed33379ec5ad9a37de6b2ebdd57c Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sat, 4 Mar 2017 10:19:23 +0000 Subject: [PATCH 1/4] - Convert to python singlespec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytools?expand=0&rev=9 --- LICENSE.mit | 21 -------------------- python-pytools.changes | 5 +++++ python-pytools.spec | 44 ++++++++++++++++++------------------------ 3 files changed, 24 insertions(+), 46 deletions(-) delete mode 100644 LICENSE.mit diff --git a/LICENSE.mit b/LICENSE.mit deleted file mode 100644 index 174b947..0000000 --- a/LICENSE.mit +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Andreas Kloeckner - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/python-pytools.changes b/python-pytools.changes index 21ff344..43eb176 100644 --- a/python-pytools.changes +++ b/python-pytools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 4 10:18:50 UTC 2017 - mpluskal@suse.com + +- Convert to python singlespec + ------------------------------------------------------------------- Thu Feb 4 14:01:28 UTC 2016 - mpluskal@suse.com diff --git a/python-pytools.spec b/python-pytools.spec index 047dcb8..830321c 100644 --- a/python-pytools.spec +++ b/python-pytools.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytools # -# 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,11 +16,6 @@ # -%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 Name: python-pytools Version: 2016.1 Release: 0 @@ -29,18 +24,16 @@ License: MIT Group: Development/Languages/Python Url: http://pypi.python.org/pypi/pytools Source0: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz -Source1: LICENSE.mit -BuildRequires: python-appdirs >= 1.4.0 -BuildRequires: python-decorator >= 3.2.0 -BuildRequires: python-devel -BuildRequires: python-numpy >= 1.6.0 -BuildRequires: python-setuptools -BuildRequires: python-six >= 1.8.0 -Requires: python-appdirs >= 1.4.0 -Requires: python-decorator >= 3.2.0 -Requires: python-numpy >= 1.6.0 -Requires: python-six >= 1.8.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module appdirs} +BuildRequires: %{python_module base} +BuildRequires: %{python_module decorator} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages %description Pytools is a big bag of things that are "missing" from the Python standard library. @@ -57,20 +50,21 @@ nonetheless, here's what's on offer: %prep %setup -q -n pytools-%{version} -cp %{SOURCE1} . %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README LICENSE.mit -%{python_sitelib}/* +%doc README +%{python_sitelib}/pytools.py* +%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/pytools-%{version}-py%{python_version}.egg-info %changelog From 3583d687b2723f47f318a43ea97a79cc216d9dec709e12e968edbb6cc58839dd Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sat, 4 Mar 2017 10:21:33 +0000 Subject: [PATCH 2/4] - Update to version 2016.2.6 * No changelog available OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytools?expand=0&rev=10 --- python-pytools.changes | 4 +++- python-pytools.spec | 6 +++--- pytools-2016.1.tar.gz | 3 --- pytools-2016.2.6.tar.gz | 3 +++ 4 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 pytools-2016.1.tar.gz create mode 100644 pytools-2016.2.6.tar.gz diff --git a/python-pytools.changes b/python-pytools.changes index 43eb176..14de912 100644 --- a/python-pytools.changes +++ b/python-pytools.changes @@ -1,6 +1,8 @@ ------------------------------------------------------------------- -Sat Mar 4 10:18:50 UTC 2017 - mpluskal@suse.com +Sat Mar 4 10:20:56 UTC 2017 - mpluskal@suse.com +- Update to version 2016.2.6 + * No changelog available - Convert to python singlespec ------------------------------------------------------------------- diff --git a/python-pytools.spec b/python-pytools.spec index 830321c..c3af375 100644 --- a/python-pytools.spec +++ b/python-pytools.spec @@ -17,13 +17,13 @@ Name: python-pytools -Version: 2016.1 +Version: 2016.2.6 Release: 0 Summary: A collection of tools for Python License: MIT Group: Development/Languages/Python -Url: http://pypi.python.org/pypi/pytools -Source0: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz +Url: https://pypi.python.org/pypi/pytools +Source0: https://pypi.python.org/packages/68/22/d424bc64595df163da60684396357631ae3d21c44bc9788d2b0f11b3655d/pytools-%{version}.tar.gz BuildRequires: %{python_module appdirs} BuildRequires: %{python_module base} BuildRequires: %{python_module decorator} diff --git a/pytools-2016.1.tar.gz b/pytools-2016.1.tar.gz deleted file mode 100644 index 6ddab1e..0000000 --- a/pytools-2016.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:084feeb68171fc36ddb40f27c4ad5b60d3596716a5f3ad3523257a0d27a351cc -size 47498 diff --git a/pytools-2016.2.6.tar.gz b/pytools-2016.2.6.tar.gz new file mode 100644 index 0000000..59c6eb1 --- /dev/null +++ b/pytools-2016.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dd49932b8f81a8b622685cff3dd515e351a9290aef0fd5d020e4df00c06aa95 +size 49708 From e373db5fea4c64c6cf59dfe2f57083a8d20be892d2f8b71fbba408618ba0403f Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sun, 11 Jun 2017 10:26:38 +0000 Subject: [PATCH 3/4] - Update to version 2017.3 * No changelog available OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytools?expand=0&rev=11 --- python-pytools.changes | 6 ++++++ python-pytools.spec | 12 ++++++------ pytools-2016.2.6.tar.gz | 3 --- pytools-2017.3.tar.gz | 3 +++ 4 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 pytools-2016.2.6.tar.gz create mode 100644 pytools-2017.3.tar.gz diff --git a/python-pytools.changes b/python-pytools.changes index 14de912..9e714b1 100644 --- a/python-pytools.changes +++ b/python-pytools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jun 11 10:26:02 UTC 2017 - mpluskal@suse.com + +- Update to version 2017.3 + * No changelog available + ------------------------------------------------------------------- Sat Mar 4 10:20:56 UTC 2017 - mpluskal@suse.com diff --git a/python-pytools.spec b/python-pytools.spec index c3af375..29eb6cc 100644 --- a/python-pytools.spec +++ b/python-pytools.spec @@ -17,16 +17,17 @@ Name: python-pytools -Version: 2016.2.6 +Version: 2017.3 Release: 0 Summary: A collection of tools for Python License: MIT Group: Development/Languages/Python Url: https://pypi.python.org/pypi/pytools -Source0: https://pypi.python.org/packages/68/22/d424bc64595df163da60684396357631ae3d21c44bc9788d2b0f11b3655d/pytools-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/pytools/pytools-%{version}.tar.gz BuildRequires: %{python_module appdirs} BuildRequires: %{python_module base} BuildRequires: %{python_module decorator} +BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} @@ -56,15 +57,14 @@ nonetheless, here's what's on offer: %install %python_install +%fdupes %{buildroot} %check -%python_exec setup.py test +python2 setup.py test %files %{python_files} %defattr(-,root,root,-) %doc README -%{python_sitelib}/pytools.py* -%pycache_only %{python_sitelib}/__pycache__ -%{python_sitelib}/pytools-%{version}-py%{python_version}.egg-info +%{python_sitelib}/* %changelog diff --git a/pytools-2016.2.6.tar.gz b/pytools-2016.2.6.tar.gz deleted file mode 100644 index 59c6eb1..0000000 --- a/pytools-2016.2.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6dd49932b8f81a8b622685cff3dd515e351a9290aef0fd5d020e4df00c06aa95 -size 49708 diff --git a/pytools-2017.3.tar.gz b/pytools-2017.3.tar.gz new file mode 100644 index 0000000..e27f093 --- /dev/null +++ b/pytools-2017.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fdb3f4564c3b89401975eed886f8f8ac87c46fe20c21b69ae830711719ecaca +size 50600 From 1bd1d1df618e170b68447952c7e56836eef41bee1adcd70d7fa1999c2e8c36dd Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sun, 11 Jun 2017 10:27:51 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytools?expand=0&rev=12 --- python-pytools.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-pytools.spec b/python-pytools.spec index 29eb6cc..caf26b7 100644 --- a/python-pytools.spec +++ b/python-pytools.spec @@ -64,7 +64,7 @@ python2 setup.py test %files %{python_files} %defattr(-,root,root,-) -%doc README +%doc README LICENSE %{python_sitelib}/* %changelog