commit python-PyYAML for openSUSE:Factory
Hello community, here is the log from the commit of package python-PyYAML for openSUSE:Factory checked in at 2017-02-27 18:35:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyYAML (Old) and /work/SRC/openSUSE:Factory/.python-PyYAML.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-PyYAML" Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyYAML/python-PyYAML.changes 2016-09-11 00:52:57.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyYAML.new/python-PyYAML.changes 2017-02-27 18:35:44.540358130 +0100 @@ -1,0 +2,5 @@ +Mon Feb 20 15:19:50 UTC 2017 - jmatejek@suse.com + +- update for multipython build + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyYAML.spec ++++++ --- /var/tmp/diff_new_pack.0ZOkNE/_old 2017-02-27 18:35:44.892308404 +0100 +++ /var/tmp/diff_new_pack.0ZOkNE/_new 2017-02-27 18:35:44.896307839 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-PyYAML # -# 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,23 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyYAML Version: 3.12 Release: 0 -Url: http://pyyaml.org/wiki/PyYAML Summary: YAML parser and emitter for Python License: MIT Group: Development/Languages/Python +Url: http://pyyaml.org/wiki/PyYAML Source: https://pypi.io/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: libyaml-devel -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%ifpython2 Provides: python-yaml = %{version} Obsoletes: python-yaml < %{version} -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif +%python_subpackages %description YAML is a data serialization format designed for human readability @@ -51,24 +53,25 @@ %setup -q -n PyYAML-%{version} %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build find examples -type f | xargs chmod -x # Fix example permissions %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check #increase file-descriptor-count for ppc to make tests happy %ifarch ppc ppc64 s390 s390x ulimit -Sn 2048 %endif -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES LICENSE README examples %{python_sitearch}/yaml -%{python_sitearch}/_yaml.so -%{python_sitearch}/PyYAML-%{version}-py%{py_ver}.egg-info +%{python_sitearch}/_yaml.*so +%{python_sitearch}/PyYAML-%{version}-py%{python_version}.egg-info %changelog
participants (1)
-
root@hilbertn.suse.de