|
|
80449f |
%global pypi_name defusedxml
|
|
|
80449f |
%global base_version 0.7.1
|
|
|
80449f |
#global prerel ...
|
|
|
80449f |
%global upstream_version %{base_version}%{?prerel}
|
|
|
80449f |
Name: python-%{pypi_name}
|
|
|
80449f |
Version: %{base_version}%{?prerel:~%{prerel}}
|
|
|
80449f |
Release: 1%{?dist}
|
|
|
80449f |
Summary: XML bomb protection for Python stdlib modules
|
|
|
80449f |
License: Python
|
|
|
80449f |
URL: https://github.com/tiran/defusedxml
|
|
|
80449f |
Source0: %{pypi_source %{pypi_name} %{upstream_version}}
|
|
|
80449f |
|
|
|
80449f |
BuildArch: noarch
|
|
|
80449f |
|
|
|
80449f |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
80449f |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
80449f |
|
|
|
80449f |
%description
|
|
|
80449f |
The defusedxml package contains several Python-only workarounds and fixes for
|
|
|
80449f |
denial of service and other vulnerabilities in Python's XML libraries. In order
|
|
|
80449f |
to benefit from the protection you just have to import and use the listed
|
|
|
80449f |
functions / classes from the right defusedxml module instead of the original
|
|
|
80449f |
module.
|
|
|
80449f |
|
|
|
80449f |
|
|
|
80449f |
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
80449f |
Summary: %{summary}
|
|
|
80449f |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
80449f |
|
|
|
80449f |
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
80449f |
The defusedxml package contains several Python-only workarounds and fixes for
|
|
|
80449f |
denial of service and other vulnerabilities in Python's XML libraries. In order
|
|
|
80449f |
to benefit from the protection you just have to import and use the listed
|
|
|
80449f |
functions / classes from the right defusedxml module instead of the original
|
|
|
80449f |
module. This is the python%{python3_pkgversion} build.
|
|
|
80449f |
|
|
|
80449f |
|
|
|
80449f |
%prep
|
|
|
80449f |
%autosetup -p1 -n %{pypi_name}-%{upstream_version}
|
|
|
80449f |
|
|
|
80449f |
%build
|
|
|
80449f |
%py3_build
|
|
|
80449f |
|
|
|
80449f |
%install
|
|
|
80449f |
%py3_install
|
|
|
80449f |
|
|
|
80449f |
%check
|
|
|
80449f |
%{python3} tests.py
|
|
|
80449f |
|
|
|
80449f |
|
|
|
80449f |
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
80449f |
%doc README.txt README.html CHANGES.txt
|
|
|
80449f |
%license LICENSE
|
|
|
80449f |
%{python3_sitelib}/%{pypi_name}/
|
|
|
80449f |
%{python3_sitelib}/%{pypi_name}-%{upstream_version}-py%{python3_version}.egg-info/
|
|
|
80449f |
|
|
|
80449f |
|
|
|
80449f |
%changelog
|
|
|
80449f |
* Mon May 03 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.7.1-1
|
|
|
80449f |
- Update to 0.7.1
|
|
|
80449f |
- Fixes: rhbz#1935032
|
|
|
80449f |
|
|
|
80449f |
* Wed Jan 27 2021 Miro Hrončok <mhroncok@redhat.com> - 0.7.0~rc2-1
|
|
|
80449f |
- Update to 0.7.0rc2
|
|
|
80449f |
- Fixes: rhbz#1915522
|
|
|
80449f |
|
|
|
80449f |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0~rc1-4
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0~rc1-3
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.0~rc1-2
|
|
|
80449f |
- Rebuilt for Python 3.9
|
|
|
80449f |
|
|
|
80449f |
* Mon May 04 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.0~rc1-1
|
|
|
80449f |
- Update to 0.7.0rc1
|
|
|
80449f |
|
|
|
80449f |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-4
|
|
|
80449f |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
80449f |
|
|
|
80449f |
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-3
|
|
|
80449f |
- Rebuilt for Python 3.8
|
|
|
80449f |
|
|
|
80449f |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-1
|
|
|
80449f |
- Update to 0.6.0 (#1699639)
|
|
|
80449f |
- Remove Python 2 subpackage
|
|
|
80449f |
|
|
|
80449f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-7
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-6
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-5
|
|
|
80449f |
- Rebuilt for Python 3.7
|
|
|
80449f |
|
|
|
80449f |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.0-4
|
|
|
80449f |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
80449f |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
80449f |
|
|
|
80449f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Fri Feb 10 2017 Adam Williamson <awilliam@redhat.com> - 0.5.0-1
|
|
|
80449f |
- Update to 0.5.0, drop merged/superseded patches
|
|
|
80449f |
- Enable Python 3 build for EPEL 7, per https://fedoraproject.org/wiki/PackagingDrafts:Python3EPEL
|
|
|
80449f |
- Drop format-string patch as Python 2.6 is no longer supported anyway
|
|
|
80449f |
- Update URL to github
|
|
|
80449f |
- Update source URL for pypi changes
|
|
|
80449f |
|
|
|
80449f |
* Thu Dec 22 2016 Adam Williamson <awilliam@redhat.com> - 0.4.1-9
|
|
|
80449f |
- Fix incompatibility with Python 3.6 (gh#3 / gh#4)
|
|
|
80449f |
|
|
|
80449f |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com>
|
|
|
80449f |
- Rebuild for Python 3.6
|
|
|
80449f |
|
|
|
80449f |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-8
|
|
|
80449f |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
80449f |
|
|
|
80449f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Sun Nov 15 2015 Ralph Bean <rbean@redhat.com> - 0.4.1-6
|
|
|
80449f |
- Added explicit python2 subpackage with modern provides statement.
|
|
|
80449f |
- Only apply the entity_loop patch on enterprisey builds.
|
|
|
80449f |
|
|
|
80449f |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-5
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
80449f |
|
|
|
80449f |
* Wed Aug 05 2015 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-4
|
|
|
80449f |
- Add patches by Avram Lubkin
|
|
|
80449f |
- https://bugzilla.redhat.com/show_bug.cgi?id=927883#c14
|
|
|
80449f |
|
|
|
80449f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Mon May 26 2014 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-1
|
|
|
80449f |
- Updated to 0.4.1 (#1100730)
|
|
|
80449f |
|
|
|
80449f |
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4-3
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
80449f |
|
|
|
80449f |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
|
|
|
80449f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
80449f |
|
|
|
80449f |
* Tue Mar 26 2013 Miro Hrončok <mhroncok@redhat.com> - 0.4-1
|
|
|
80449f |
- Initial package.
|