diff --git a/5.3.1.tar.gz b/5.3.1.tar.gz deleted file mode 100644 index 66f30f95ff72d6325981bf7f8fec0e54febe2a47..0000000000000000000000000000000000000000 Binary files a/5.3.1.tar.gz and /dev/null differ diff --git a/PyYAML-3.10.tar.gz b/PyYAML-3.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..21c26dc1b08771e59c9e613e6604e314eaee1bed Binary files /dev/null and b/PyYAML-3.10.tar.gz differ diff --git a/PyYAML.spec b/PyYAML.spec index 864dbc028301f5a576691c5b9c66df74428e883f..ac8f070c196601911b534eeb7b5636246842615b 100644 --- a/PyYAML.spec +++ b/PyYAML.spec @@ -1,94 +1,72 @@ -%bcond_without python2 -%bcond_without python3 - -Name: pyyaml -Version: 5.3.1 -Release: 3 -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 - -BuildRequires: gcc libyaml-devel - - -%if %{with python3} -BuildRequires: python3-devel python3-setuptools python3-Cython -%endif - +%global _empty_manifest_terminate_build 0 +Name: pyyaml +Version: 3.10 +Release: 1 +Summary: YAML parser and emitter for Python +License: MIT +URL: http://pyyaml.org/wiki/PyYAML +Source0: https://files.pythonhosted.org/packages/00/17/3b822893a1789a025d3f676a381338516a8f65e686d915b0834ecc9b4979/PyYAML-3.10.tar.gz +BuildArch: noarch %description 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. - - -%if %{with python3} -%package -n python3-pyyaml -Summary: %summary -Provides: python3-yaml = %{version}-%{release} -Provides: python3-yaml%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python3-pyyaml} -Provides: python3-PyYAML = %{version}-%{release} -Provides: python3-PyYAML%{?_isa} = %{version}-%{release} -Obsoletes: python3-PyYAML < 4.1-5 - -%description -n python3-pyyaml +interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. + +%package -n python2-pyyaml +Summary: YAML parser and emitter for Python +Provides: python2-pyyaml,python2-PyYAML +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%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. +interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. -PyYAML is applicable for a broad range of tasks from complex configuration -files to object serialization and persistence. -%endif +%package help +Summary: Development documents and examples for PyYAML +Provides: python2-pyyaml-doc, python2-PyYAML-doc +%description help +YAML is a data serialization format designed for human readability and +interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. %prep -%setup -q -n %{name}-%{version} +%autosetup -n PyYAML-3.10 %build -%if %{with python3} -%py3_build -%endif +%py2_build %install -%if %{with python3} -%py3_install -%endif - -%check -%if %{with python3} -%{__python3} setup.py test -%endif - - -%if %{with python3} -%files -n python3-pyyaml -%license LICENSE -%doc CHANGES README examples -%{python3_sitearch}/* -%endif +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python2-pyyaml -f filelist.lst +%dir %{python2_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog -* Thu Oct 29 2020 tianwei - 5.3.1-3 -* delete python2 - -* Fri Sep 11 2020 liuweibo - 5.3.1-2 -* Fix Source0 - -* Fri Apr 24 2020 Bruce - 5.3.1-1 -* update upstream to 5.3.1 - -* Tue Aug 27 2019 openEuler Buildteam - 5.1.2-1 -- Package init +* Tue May 11 2021 OpenStack_SIG +- Package Spec generated