Compare commits
10 Commits
13ccdb226a
...
2d01b30383
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d01b30383 | ||
|
|
3452da934d | ||
|
|
35718969d9 | ||
|
|
0806e424d6 | ||
|
|
4361b60255 | ||
|
|
13511bfce9 | ||
|
|
acdc262478 | ||
|
|
d290d7aa64 | ||
|
|
bd4c6d5a57 | ||
|
|
a34c48fb01 |
BIN
5.3.1.tar.gz
BIN
5.3.1.tar.gz
Binary file not shown.
BIN
PyYAML-6.0.tar.gz
Normal file
BIN
PyYAML-6.0.tar.gz
Normal file
Binary file not shown.
66
PyYAML.spec
66
PyYAML.spec
@ -2,18 +2,15 @@
|
||||
%bcond_without python3
|
||||
|
||||
Name: pyyaml
|
||||
Version: 5.3.1
|
||||
Version: 6.0
|
||||
Release: 2
|
||||
Summary: YAML parser and emitter for Python
|
||||
License: MIT
|
||||
URL: https://github.com/yaml/pyyaml
|
||||
Source0: https://github.com/yaml/pyyaml/archive/%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc libyaml-devel
|
||||
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-devel python2-setuptools python2-Cython
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
BuildRequires: python3-devel python3-setuptools python3-Cython
|
||||
@ -32,31 +29,6 @@ arbitrary Python object.
|
||||
PyYAML is applicable for a broad range of tasks from complex configuration
|
||||
files to object serialization and persistence.
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-pyyaml
|
||||
Summary: %summary
|
||||
Provides: python-yaml = %{version}-%{release}
|
||||
Provides: python-yaml%{?_isa} = %{version}-%{release}
|
||||
Provides: python2-yaml = %{version}-%{release}
|
||||
Provides: python2-yaml%{?_isa} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-pyyaml}
|
||||
Provides: PyYAML = %{version}-%{release}
|
||||
Provides: PyYAML%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: PyYAML < %{version}-%{release}
|
||||
|
||||
%description -n python2-pyyaml
|
||||
YAML is a data serialization format designed for human readability and
|
||||
interaction with scripting languages. PyYAML is a YAML parser and emitter for
|
||||
Python.
|
||||
|
||||
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support,
|
||||
capable extension API, and sensible error messages. PyYAML supports standard
|
||||
YAML tags and provides Python-specific tags that allow to represent an
|
||||
arbitrary Python object.
|
||||
|
||||
PyYAML is applicable for a broad range of tasks from complex configuration
|
||||
files to object serialization and persistence.
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%package -n python3-pyyaml
|
||||
@ -83,47 +55,47 @@ files to object serialization and persistence.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%setup -q -n PyYAML-%{version}
|
||||
|
||||
%build
|
||||
%if %{with python2}
|
||||
%py2_build
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%py3_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if %{with python2}
|
||||
%py2_install
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%py3_install
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with python2}
|
||||
%{__python2} setup.py test
|
||||
%endif
|
||||
%if %{with python3}
|
||||
%{__python3} setup.py test
|
||||
%endif
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-pyyaml
|
||||
%license LICENSE
|
||||
%doc CHANGES README examples
|
||||
%{python2_sitearch}/*
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python3-pyyaml
|
||||
%license LICENSE
|
||||
%doc CHANGES README examples
|
||||
%doc CHANGES examples
|
||||
%{python3_sitearch}/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Oct 26 2022 zhuofeng <zhuofeng2@huawei.com> - 6.0-2
|
||||
- rebuild for next release
|
||||
|
||||
* Fri Dec 24 2021 tianwei <tianwei12@huawei.com> - 6.0-1
|
||||
- Upgrade to 6.0
|
||||
|
||||
* Tue Jul 13 2021 huangtianhua <huangtianhua@huawei.com> - 5.4.1-1
|
||||
- Upgrade to 5.4.1
|
||||
|
||||
* Fri Jun 11 2021 zhaomengchao <zhaomengchao3@huawei.com> - 5.3.1-4
|
||||
* Fix CVE-2020-14343
|
||||
|
||||
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 5.3.1-3
|
||||
* delete python2
|
||||
|
||||
* Fri Sep 11 2020 liuweibo <liuweibo10@huawei.com> - 5.3.1-2
|
||||
* Fix Source0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user