Accepting request 460262 from devel:languages:python
first batch of singlespec packages OBS-URL: https://build.opensuse.org/request/show/460262 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyYAML?expand=0&rev=13
This commit is contained in:
commit
60af3ce6be
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 20 15:19:50 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- update for multipython build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 3 19:26:05 UTC 2016 - mardnh@gmx.de
|
Sat Sep 3 19:26:05 UTC 2016 - mardnh@gmx.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-PyYAML
|
# 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
|
# 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,23 +16,25 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-PyYAML
|
Name: python-PyYAML
|
||||||
Version: 3.12
|
Version: 3.12
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://pyyaml.org/wiki/PyYAML
|
|
||||||
Summary: YAML parser and emitter for Python
|
Summary: YAML parser and emitter for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: http://pyyaml.org/wiki/PyYAML
|
||||||
Source: https://pypi.io/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
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: libyaml-devel
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-setuptools
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%ifpython2
|
||||||
Provides: python-yaml = %{version}
|
Provides: python-yaml = %{version}
|
||||||
Obsoletes: 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
|
%endif
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
YAML is a data serialization format designed for human readability
|
YAML is a data serialization format designed for human readability
|
||||||
@ -51,24 +53,25 @@ configuration files to object serialization and persistance.
|
|||||||
%setup -q -n PyYAML-%{version}
|
%setup -q -n PyYAML-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" python setup.py build
|
export CFLAGS="%{optflags}"
|
||||||
|
%python_build
|
||||||
find examples -type f | xargs chmod -x # Fix example permissions
|
find examples -type f | xargs chmod -x # Fix example permissions
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#increase file-descriptor-count for ppc to make tests happy
|
#increase file-descriptor-count for ppc to make tests happy
|
||||||
%ifarch ppc ppc64 s390 s390x
|
%ifarch ppc ppc64 s390 s390x
|
||||||
ulimit -Sn 2048
|
ulimit -Sn 2048
|
||||||
%endif
|
%endif
|
||||||
python setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES LICENSE README examples
|
%doc CHANGES LICENSE README examples
|
||||||
%{python_sitearch}/yaml
|
%{python_sitearch}/yaml
|
||||||
%{python_sitearch}/_yaml.so
|
%{python_sitearch}/_yaml.*so
|
||||||
%{python_sitearch}/PyYAML-%{version}-py%{py_ver}.egg-info
|
%{python_sitearch}/PyYAML-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user