forked from pool/python-PyYAML
Accepting request 471398 from home:XRevan86
OBS-URL: https://build.opensuse.org/request/show/471398 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyYAML?expand=0&rev=19
This commit is contained in:
parent
107bc81fc6
commit
730f79f7e4
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 3 11:42:12 UTC 2017 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
- Use pythonhosted.org for the reference link.
|
||||||
|
- Provide python-yaml instead of python2-yaml again.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 20 15:19:50 UTC 2017 - jmatejek@suse.com
|
Mon Feb 20 15:19:50 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define oldpython python
|
||||||
Name: python-PyYAML
|
Name: python-PyYAML
|
||||||
Version: 3.12
|
Version: 3.12
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -24,17 +25,16 @@ 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
|
Url: http://pyyaml.org/wiki/PyYAML
|
||||||
Source: https://pypi.io/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: libyaml-devel
|
BuildRequires: libyaml-devel
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Provides: python-yaml = %{version}
|
# python-yaml was last used in openSUSE 12.1.
|
||||||
Obsoletes: python-yaml < %{version}
|
Provides: %{oldpython}-yaml = %{version}
|
||||||
|
Obsoletes: %{oldpython}-yaml < %{version}
|
||||||
%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
|
||||||
@ -49,27 +49,30 @@ allow to represent an arbitrary Python object.
|
|||||||
PyYAML is applicable for a broad range of tasks from complex
|
PyYAML is applicable for a broad range of tasks from complex
|
||||||
configuration files to object serialization and persistance.
|
configuration files to object serialization and persistance.
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n PyYAML-%{version}
|
%setup -q -n PyYAML-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build
|
%python_build
|
||||||
find examples -type f | xargs chmod -x # Fix example permissions
|
# Fix example permissions.
|
||||||
|
find examples/ -type f | xargs chmod a-x
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%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_exec setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
%files %{python_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%{python_version}.egg-info
|
%{python_sitearch}/PyYAML-%{version}-py%{python_version}.egg-info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user