Compare commits

...

8 Commits

Author SHA1 Message Date
Fedora Release Engineering 47be1d585c Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 07:04:34 +00:00
Python Maint 2b2615fbd6 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:07:56 +02:00
Python Maint cdeb2d7b5b Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:35:10 +02:00
Fedora Release Engineering 16e358a747 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 07:31:08 +00:00
Python Maint b1e3f75301 Rebuilt for Python 3.14 2025-06-02 22:22:12 +02:00
Fedora Release Engineering aacd1c5098 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 13:31:48 +00:00
Miro Hrončok 4a1aee23ae Simplify and modernize packaging
- Use SPDX identifier for License

    $ askalono identify defusedxml-0.7.1/LICENSE
    License: PSF-2.0 (original text)
    Score: 0.982
2024-10-23 23:35:12 +02:00
Miroslav Suchý b0685fe9df convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-04 19:39:27 +02:00
+24 -29
View File
@@ -1,14 +1,10 @@
%global pypi_name defusedxml Name: python-defusedxml
%global base_version 0.7.1 Version: 0.7.1
#global prerel ...
%global upstream_version %{base_version}%{?prerel}
Name: python-%{pypi_name}
Version: %{base_version}%{?prerel:~%{prerel}}
Release: %autorelease Release: %autorelease
Summary: XML bomb protection for Python stdlib modules Summary: XML bomb protection for Python stdlib modules
License: Python License: PSF-2.0
URL: https://github.com/tiran/defusedxml URL: https://github.com/tiran/defusedxml
Source0: %{pypi_source %{pypi_name} %{upstream_version}} Source: %{pypi_source defusedxml}
# Drop deprecated unittest.makeSuite() # Drop deprecated unittest.makeSuite()
# From https://github.com/tiran/defusedxml/commit/4e6cea5f5b # From https://github.com/tiran/defusedxml/commit/4e6cea5f5b
@@ -17,48 +13,47 @@ Patch: drop-makeSuite.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python3-devel
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python3-lxml
BuildRequires: python%{python3_pkgversion}-lxml
%description %global _description %{expand:
The defusedxml package contains several Python-only workarounds and fixes for The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order 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 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 functions / classes from the right defusedxml module instead of the original
module. module.}
%description %_description
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python3-defusedxml
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
%description -n python%{python3_pkgversion}-%{pypi_name} %description -n python3-defusedxml %_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. This is the python%{python3_pkgversion} build.
%prep %prep
%autosetup -p1 -n %{pypi_name}-%{upstream_version} %autosetup -p1 -n defusedxml-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build %build
%py3_build %pyproject_wheel
%install %install
%py3_install %pyproject_install
%pyproject_save_files -l defusedxml
%check %check
%{python3} tests.py %{py3_test_envvars} %{python3} tests.py
%files -n python%{python3_pkgversion}-%{pypi_name} %files -n python3-defusedxml -f %{pyproject_files}
%doc README.txt README.html CHANGES.txt %doc README.txt README.html CHANGES.txt
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{upstream_version}-py%{python3_version}.egg-info/
%changelog %changelog