14
0

- Convert to python singlespec

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytools?expand=0&rev=9
This commit is contained in:
2017-03-04 10:19:23 +00:00
committed by Git OBS Bridge
parent 13224636ee
commit 283a154e60
3 changed files with 24 additions and 46 deletions

View File

@@ -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.

View File

@@ -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 Thu Feb 4 14:01:28 UTC 2016 - mpluskal@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytools # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Name: python-pytools
Version: 2016.1 Version: 2016.1
Release: 0 Release: 0
@@ -29,18 +24,16 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://pypi.python.org/pypi/pytools Url: http://pypi.python.org/pypi/pytools
Source0: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz Source0: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz
Source1: LICENSE.mit BuildRequires: %{python_module appdirs}
BuildRequires: python-appdirs >= 1.4.0 BuildRequires: %{python_module base}
BuildRequires: python-decorator >= 3.2.0 BuildRequires: %{python_module decorator}
BuildRequires: python-devel BuildRequires: %{python_module numpy}
BuildRequires: python-numpy >= 1.6.0 BuildRequires: %{python_module setuptools}
BuildRequires: python-setuptools BuildRequires: %{python_module six}
BuildRequires: python-six >= 1.8.0 BuildRequires: fdupes
Requires: python-appdirs >= 1.4.0 BuildRequires: python-rpm-macros
Requires: python-decorator >= 3.2.0 BuildArch: noarch
Requires: python-numpy >= 1.6.0 %python_subpackages
Requires: python-six >= 1.8.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Pytools is a big bag of things that are "missing" from the Python standard library. 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 %prep
%setup -q -n pytools-%{version} %setup -q -n pytools-%{version}
cp %{SOURCE1} .
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%check %check
python setup.py test %python_exec setup.py test
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README LICENSE.mit %doc README
%{python_sitelib}/* %{python_sitelib}/pytools.py*
%pycache_only %{python_sitelib}/__pycache__
%{python_sitelib}/pytools-%{version}-py%{python_version}.egg-info
%changelog %changelog