2015-04-24 16:31:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-packaging
|
|
|
|
#
|
2016-03-08 16:38:19 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-24 16:31:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2015-06-25 11:01:38 +02:00
|
|
|
#
|
2015-04-24 16:31:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-packaging
|
2016-12-06 13:06:37 +01:00
|
|
|
Version: 16.8
|
2015-04-24 16:31:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Core utilities for Python packages
|
2015-06-25 11:01:38 +02:00
|
|
|
License: Apache-2.0
|
2015-04-24 16:31:25 +02:00
|
|
|
Group: Development/Languages/Python
|
2015-06-25 11:01:38 +02:00
|
|
|
Url: https://github.com/pypa/packaging
|
2016-06-06 13:27:53 +02:00
|
|
|
Source: https://pypi.io/packages/source/p/packaging/packaging-%{version}.tar.gz
|
2015-04-24 16:31:25 +02:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-pretend
|
2016-03-08 16:38:19 +01:00
|
|
|
BuildRequires: python-pyparsing
|
2015-06-25 11:01:38 +02:00
|
|
|
BuildRequires: python-pytest
|
|
|
|
BuildRequires: python-setuptools
|
2016-03-08 16:38:19 +01:00
|
|
|
BuildRequires: python-six
|
|
|
|
Requires: python-pyparsing
|
|
|
|
Requires: python-six
|
2015-04-24 16:31:25 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
%description
|
|
|
|
Core utilities for Python packages
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n packaging-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
py.test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGELOG.rst LICENSE README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|