forked from pool/python-pytools
- 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:
21
LICENSE.mit
21
LICENSE.mit
@@ -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.
|
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user