diff --git a/defusedxml-0.5.0.tar.gz b/defusedxml-0.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6aec153054607e6093b26aed638b40f77f42b757 Binary files /dev/null and b/defusedxml-0.5.0.tar.gz differ diff --git a/defusedxml-0.6.0.tar.gz b/defusedxml-0.6.0.tar.gz deleted file mode 100644 index 570eda8d7c63a9b0dce1be0242ef31ed152dfcee..0000000000000000000000000000000000000000 Binary files a/defusedxml-0.6.0.tar.gz and /dev/null differ diff --git a/python-defusedxml.spec b/python-defusedxml.spec index e332e1fb89252e54c628b0601766deec44377f8e..93ec026c92b3bc9486b5740a28ca3651f1a0baa4 100644 --- a/python-defusedxml.spec +++ b/python-defusedxml.spec @@ -1,41 +1,58 @@ %global _empty_manifest_terminate_build 0 Name: python-defusedxml -Version: 0.6.0 +Version: 0.5.0 Release: 1 Summary: XML bomb protection for Python stdlib modules -License: PSFL +License: Python-2.0 and MIT URL: https://github.com/tiran/defusedxml -Source0: https://files.pythonhosted.org/packages/a4/5f/f8aa58ca0cf01cbcee728abc9d88bfeb74e95e6cb4334cfd5bed5673ea77/defusedxml-0.6.0.tar.gz +Source0: https://files.pythonhosted.org/packages/74/ba/4ba4e89e21b5a2e267d80736ea674609a0a33cc4435a6d748ef04f1f9374/defusedxml-0.5.0.tar.gz BuildArch: noarch - - %description -XML bomb protection for Python stdlib modules - + defusedxml -defusing XML bombs and other exploits "It's just XML, what could +probably go wrong?"Christian Heimes Synopsis The results +of an attack on a vulnerable XML library can be fairly dramatic. With just a few +hundred **Bytes*of XML data an attacker can occupy several **Gigabytes*of memory +within **seconds**. An attacker can also keep CPUs busy for a long time with a +small to medium size request. Under some circumstances it is even possible to +access local files on your server, to circumvent a firewall, or to abuse +services to rebound attacks to third parties. - -%package -n python3-defusedxml +%package -n python2-defusedxml Summary: XML bomb protection for Python stdlib modules -Provides: python-defusedxml -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-defusedxml - +Provides: python2-defusedxml +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-defusedxml + defusedxml -defusing XML bombs and other exploits "It's just XML, what could +probably go wrong?"Christian Heimes Synopsis The results +of an attack on a vulnerable XML library can be fairly dramatic. With just a few +hundred **Bytes*of XML data an attacker can occupy several **Gigabytes*of memory +within **seconds**. An attacker can also keep CPUs busy for a long time with a +small to medium size request. Under some circumstances it is even possible to +access local files on your server, to circumvent a firewall, or to abuse +services to rebound attacks to third parties. %package help Summary: Development documents and examples for defusedxml -Provides: python3-defusedxml-doc +Provides: python2-defusedxml-doc %description help - + defusedxml -defusing XML bombs and other exploits "It's just XML, what could +probably go wrong?"Christian Heimes Synopsis The results +of an attack on a vulnerable XML library can be fairly dramatic. With just a few +hundred **Bytes*of XML data an attacker can occupy several **Gigabytes*of memory +within **seconds**. An attacker can also keep CPUs busy for a long time with a +small to medium size request. Under some circumstances it is even possible to +access local files on your server, to circumvent a firewall, or to abuse +services to rebound attacks to third parties. %prep -%autosetup -n defusedxml-0.6.0 +%autosetup -n defusedxml-0.5.0 %build -%py3_build +%py2_build %install -%py3_install +%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 @@ -62,12 +79,12 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-defusedxml -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-defusedxml -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Wed Dec 16 2020 Python_Bot +* Tue May 11 2021 OpenStack_SIG - Package Spec generated