Matej Cepl 2018-12-04 17:12:02 +00:00 committed by Git OBS Bridge
parent c40fa194cd
commit 1068075697

View File

@ -16,23 +16,21 @@
# #
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests
Name: python-defusedxml Name: python-defusedxml
Version: 0.5.0 Version: 0.5.0
Release: 0 Release: 0
Summary: XML bomb protection for Python stdlib modules Summary: XML bomb protection for Python stdlib modules
License: Python-2.0 License: Python-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/defusedxml URL: https://pypi.python.org/pypi/defusedxml
Source: https://files.pythonhosted.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/d/defusedxml/defusedxml-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml} BuildRequires: %{python_module xml}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-xml Requires: python-xml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -61,8 +59,8 @@ pitfalls.
%endif %endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE
%doc LICENSE README.txt CHANGES.txt %doc README.txt CHANGES.txt
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog