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,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