Accepting request 489166 from home:TheBlackCat:branches:devel:languages:python
- Update to 5.0 - Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/489166 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-defusedxml?expand=0&rev=5
This commit is contained in:
parent
6987fcf3ac
commit
a8b1701114
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cd551d5a518b745407635bb85116eb813818ecaf182e773c35b36239fc3f2478
|
||||
size 48889
|
3
defusedxml-0.5.0.tar.gz
Normal file
3
defusedxml-0.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:24d7f2f94f7f3cb6061acb215685e5125fbcdc40a857eff9de22518820b0a4f4
|
||||
size 60405
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 18 16:58:49 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 5.0
|
||||
* Add compatibility with Python 3.6
|
||||
* Drop support for Python 2.6, 3.1, 3.2, 3.3
|
||||
* Fix lxml tests (XMLSyntaxError: Detected an entity reference loop)
|
||||
- Implement single-spec version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 31 14:25:04 UTC 2017 - rsalevsky@suse.com
|
||||
|
||||
|
@ -16,24 +16,26 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-defusedxml
|
||||
Version: 0.4.1
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: XML bomb protection for Python stdlib modules
|
||||
License: Python-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://pypi.python.org/pypi/defusedxml
|
||||
Source: https://pypi.python.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module xml}
|
||||
Requires: python-xml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
The results of an attack on a vulnerable XML library can be fairly dramatic.
|
||||
@ -44,21 +46,22 @@ CPUs busy for a long time with a small to medium size request.
|
||||
This library allows for XML to be parsed in a manner that avoids these
|
||||
pitfalls.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n defusedxml-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.txt CHANGES.txt
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user