3b57560
3b57560
Name:           python-xmltramp
7f29d5c
Version:        2.18
c2b89d3
Release:        21%{?dist}
3b57560
Summary:        Pythonic API for XML
3b57560
3b57560
License:        GPLv2
3b57560
# License text is not present in the upstream file, though clearly marked as GPLv2
3b57560
# See https://www.redhat.com/archives/fedora-legal-list/2008-January/msg00010.html
3b57560
3b57560
URL:            http://www.aaronsw.com/2002/xmltramp/
3b57560
Source0:        http://www.aaronsw.com/2002/xmltramp/xmltramp-%{version}.py
7f29d5c
Patch1:         0001-Patch-for-RHBZ-750694.patch
7f29d5c
Patch2:         0002-fix-imports-and-syntax-for-Python-3.patch
7f29d5c
Patch3:         0003-__str__-needs-to-return-str-not-bytes-on-Python-3.patch
7f29d5c
Patch4:         0004-empty-slice-is-slice-None-None-None-on-Python-3.patch
7f29d5c
Patch5:         0005-use-OrderedDict-for-attributes-and-namespaces.patch
3b57560
3b57560
BuildArch:      noarch
7f29d5c
BuildRequires:  python3-devel
3b57560
40c9822
%global _description\
2586ce1
xmltramp is a simple Pythonic API for working with XML.
3b57560
40c9822
%description %_description
40c9822
7f29d5c
%package -n python3-xmltramp
7f29d5c
Summary: %summary
7f29d5c
%{?python_provide:%python_provide python3-xmltramp}
7f29d5c
7f29d5c
%description -n python3-xmltramp %_description
7f29d5c
3b57560
%prep
3b57560
%setup -c -T
f4bf351
cp -p %{SOURCE0} xmltramp.py
7f29d5c
%patch1 -p1
7f29d5c
%patch2 -p1
7f29d5c
%patch3 -p1
7f29d5c
%patch4 -p1
7f29d5c
%patch5 -p1
3b57560
3b57560
%build
3b57560
# noarch
3b57560
3b57560
%install
2586ce1
install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py
3b57560
2586ce1
%check
2586ce1
%{__python3} xmltramp.py
7f29d5c
7f29d5c
%files -n python3-xmltramp
7f29d5c
%{python3_sitelib}/xmltramp.py*
7f29d5c
%{python3_sitelib}/__pycache__/
3b57560
3b57560
3b57560
%changelog
c2b89d3
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-21
c2b89d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
c2b89d3
e53fd86
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-20
e53fd86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e53fd86
91191b9
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-19
91191b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
91191b9
caf13de
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.18-18
caf13de
- Rebuilt for Python 3.12
caf13de
1455c60
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-17
1455c60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
1455c60
bdb7577
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-16
bdb7577
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
bdb7577
a75506c
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.18-15
a75506c
- Rebuilt for Python 3.11
a75506c
757fa84
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-14
757fa84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
757fa84
c07cf01
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-13
c07cf01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c07cf01
7396bcf
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.18-12
7396bcf
- Rebuilt for Python 3.10
7396bcf
cb00d68
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-11
cb00d68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cb00d68
35f7169
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-10
35f7169
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
35f7169
fa69357
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.18-9
fa69357
- Rebuilt for Python 3.9
fa69357
f515a21
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-8
f515a21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f515a21
613339b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.18-7
613339b
- Rebuilt for Python 3.8.0rc1 (#1748018)
613339b
3a030d6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.18-6
3a030d6
- Rebuilt for Python 3.8
3a030d6
5cb63dd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-5
5cb63dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5cb63dd
3577c30
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-4
3577c30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3577c30
2586ce1
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.18-3
2586ce1
- Python2 binary package has been removed
2586ce1
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
2586ce1
4a9349a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.18-2
4a9349a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4a9349a
7f29d5c
* Thu Jul 05 2018 Dan Callaghan <dcallagh@redhat.com> - 2.18-1
7f29d5c
- Updated to upstream release 2.18 (only ~10 years late...)
7f29d5c
- Minimal fixes to support Python 3
7f29d5c
b2b0c13
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-21
b2b0c13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b2b0c13
94779d9
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.17-20
94779d9
- Update Python 2 dependency declarations to new packaging standards
94779d9
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
94779d9
40c9822
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.17-19
40c9822
- Python 2 binary package renamed to python2-xmltramp
40c9822
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
40c9822
d80af63
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-18
d80af63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d80af63
27a5ae0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-17
27a5ae0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
27a5ae0
e7e423f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-16
e7e423f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e7e423f
fa2ee16
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-15
fa2ee16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fa2ee16
1353456
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-14
1353456
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1353456
1726d6d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-13
1726d6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1726d6d
f4bf351
* Fri Jun 07 2013 Dan Callaghan <dcallagh@redhat.com> - 2.17-12
f4bf351
- Patch for RHBZ#750694
f4bf351
ca04263
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-11
ca04263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ca04263
7f9f125
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-10
7f9f125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f9f125
d9a0199
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-9
d9a0199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d9a0199
a03692d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-8
a03692d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a03692d
34dfbae
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.17-7
34dfbae
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
34dfbae
4ec3feb
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-6
4ec3feb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4ec3feb
1090913
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-5
1090913
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1090913
43b0f28
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.17-4
43b0f28
- Rebuild for Python 2.6
43b0f28
3b57560
* Fri Jan 18 2008 David Malcolm <dmalcolm@redhat.com> - 2.17-3
3b57560
- add comment in specfile about the License text
3b57560
3b57560
* Tue Nov 13 2007 David Malcolm <dmalcolm@redhat.com> - 2.17-2
3b57560
- fix License tag
3b57560
- fix capitalization of Summary tag
3b57560
- preserve timestamp when installing
3b57560
3b57560
* Fri Aug  3 2007 David Malcolm <dmalcolm@redhat.com> - 2.17-1
3b57560
- initial packaging
3b57560