Compare commits
31 Commits
f19
...
epel8-playground
| Author | SHA1 | Date | |
|---|---|---|---|
| 510bae60ae | |||
| 6c18e163b4 | |||
| 851067357f | |||
| 6bae04a203 | |||
| 082a4dbedd | |||
| 38eed839d4 | |||
| a3fd36dd25 | |||
| 08592600c3 | |||
| b0ba67f931 | |||
| b6287a6c82 | |||
| a8d1c871ee | |||
| 0f762e05f7 | |||
| 85a145e648 | |||
| 30fd0c53c2 | |||
| 2864d19e19 | |||
| 967467ab0f | |||
| a7078684c6 | |||
| 309267b58f | |||
| 35fcd07e94 | |||
| 047317282f | |||
| 164962eaa9 | |||
| 5883a22562 | |||
| c9f4578f9e | |||
| 898114da0e | |||
| 6839ef4a3b | |||
| e646a49ec8 | |||
| 1383f3e224 | |||
| 9c48f6a532 | |||
| c93d8674ee | |||
| a28edff0f1 | |||
| eac516ac24 |
@@ -1 +0,0 @@
|
|||||||
/defusedxml-0.4.tar.gz
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
epel8-playground decommissioned : https://pagure.io/epel/issue/136
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
%global with_python3 1
|
|
||||||
%global pypi_name defusedxml
|
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
|
||||||
Version: 0.4
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: XML bomb protection for Python stdlib modules
|
|
||||||
License: Python
|
|
||||||
URL: https://bitbucket.org/tiran/defusedxml
|
|
||||||
Source0: http://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
|
|
||||||
%if 0%{with_python3}
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
|
||||||
The defusedxml package contains several Python-only workarounds and fixes for
|
|
||||||
denial of service and other vulnerabilities in Python's XML libraries. In order
|
|
||||||
to benefit from the protection you just have to import and use the listed
|
|
||||||
functions / classes from the right defusedxml module instead of the original
|
|
||||||
module.
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-%{pypi_name}
|
|
||||||
Summary: XML bomb protection for Python stdlib modules
|
|
||||||
|
|
||||||
%description -n python3-%{pypi_name}
|
|
||||||
The defusedxml package contains several Python-only workarounds and fixes for
|
|
||||||
denial of service and other vulnerabilities in Python's XML libraries. In order
|
|
||||||
to benefit from the protection you just have to import and use the listed
|
|
||||||
functions / classes from the right defusedxml module instead of the original
|
|
||||||
module.
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{pypi_name}-%{version}
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/bin/env python|#!%{__python3}|'
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%build
|
|
||||||
%{__python} setup.py build
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py build
|
|
||||||
popd
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%install
|
|
||||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
||||||
popd
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%check
|
|
||||||
%{__python} tests.py
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} tests.py
|
|
||||||
popd
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc README.txt README.html LICENSE CHANGES.txt
|
|
||||||
%{python_sitelib}/%{pypi_name}
|
|
||||||
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-%{pypi_name}
|
|
||||||
%doc README.txt README.html LICENSE CHANGES.txt
|
|
||||||
%{python3_sitelib}/%{pypi_name}
|
|
||||||
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Tue Mar 26 2013 Miro Hrončok <mhroncok@redhat.com> - 0.4-1
|
|
||||||
- Initial package.
|
|
||||||
Reference in New Issue
Block a user