From 20efb8487d07f6427ba9735d3541f547c548b2b1 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 7 Nov 2008 05:14:25 +0000 Subject: [PATCH 01/56] Initialize branch F-10 for python-xmltramp --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..dc32377 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-10 From 43b0f286b72fc934c35de44f5c1f841244d27933 Mon Sep 17 00:00:00 2001 From: Ignacio Vazquez-Abrams Date: Sat, 29 Nov 2008 16:02:04 +0000 Subject: [PATCH 02/56] Rebuild for Python 2.6 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index a6b44c9..e57f71e 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 2.17-4 +- Rebuild for Python 2.6 + * Fri Jan 18 2008 David Malcolm - 2.17-3 - add comment in specfile about the License text From 1090913fc5399d47d6200ba06966b3d5ea2f0900 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 27 Feb 2009 00:19:03 +0000 Subject: [PATCH 03/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index e57f71e..d351503 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Feb 26 2009 Fedora Release Engineering - 2.17-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 2.17-4 - Rebuild for Python 2.6 From 4ec3febdd694959ee977a0b4b7ead0d0d26f4600 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 27 Jul 2009 01:33:33 +0000 Subject: [PATCH 04/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index d351503..ae0180a 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Jul 26 2009 Fedora Release Engineering - 2.17-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Thu Feb 26 2009 Fedora Release Engineering - 2.17-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild From 8f9c5ce4af3b3886805bad7e33acb9f492906e11 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 25 Nov 2009 23:32:03 +0000 Subject: [PATCH 05/56] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 905fc44..dfc76e0 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: python-xmltramp -# $Id$ +# $Id: Makefile,v 1.1 2008/01/21 17:00:49 kevin Exp $ NAME := python-xmltramp SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 0b8dde804e4be452d66cfaf0479bbbbb89025250 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:57:10 +0000 Subject: [PATCH 06/56] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 905fc44..dfc76e0 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ # Makefile for source rpm: python-xmltramp -# $Id$ +# $Id: Makefile,v 1.1 2008/01/21 17:00:49 kevin Exp $ NAME := python-xmltramp SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From 34dfbae5bf08e96e77134936e54cfa46a93b6a6c Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Thu, 22 Jul 2010 05:57:58 +0000 Subject: [PATCH 07/56] - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index ae0180a..9bf8673 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Jul 22 2010 David Malcolm - 2.17-7 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + * Sun Jul 26 2009 Fedora Release Engineering - 2.17-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild From dbab023f74493312a2acb659876b51869ccd8224 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 10:52:58 +0000 Subject: [PATCH 08/56] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- 2 files changed, 21 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index dfc76e0..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: python-xmltramp -# $Id: Makefile,v 1.1 2008/01/21 17:00:49 kevin Exp $ -NAME := python-xmltramp -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) From 0eb69aee32fcc4632e821b8c119f946640bf37df Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 10:52:58 +0000 Subject: [PATCH 09/56] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index dfc76e0..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: python-xmltramp -# $Id: Makefile,v 1.1 2008/01/21 17:00:49 kevin Exp $ -NAME := python-xmltramp -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index dc32377..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-10 From a03692d29dc1b0784fc3b2b728d40f0028f6522f Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 9 Feb 2011 01:26:29 -0600 Subject: [PATCH 10/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 9bf8673..8200fb2 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Feb 09 2011 Fedora Release Engineering - 2.17-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Thu Jul 22 2010 David Malcolm - 2.17-7 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild From d9a0199db144a4886f5a3587d10bce61643d2870 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 13 Jan 2012 20:19:20 -0600 Subject: [PATCH 11/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 8200fb2..09fab73 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Jan 14 2012 Fedora Release Engineering - 2.17-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Wed Feb 09 2011 Fedora Release Engineering - 2.17-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From 7f9f12548b65c2bb0f2c5f6b8f30fea256fe06d7 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 21 Jul 2012 06:15:52 -0500 Subject: [PATCH 12/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 09fab73..b8316ba 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Jul 21 2012 Fedora Release Engineering - 2.17-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Sat Jan 14 2012 Fedora Release Engineering - 2.17-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From ca04263e2f54bbfc8fffe72f0e4d38cca94231ac Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 14 Feb 2013 14:52:46 -0600 Subject: [PATCH 13/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index b8316ba..dae119a 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -42,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Feb 14 2013 Fedora Release Engineering - 2.17-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Sat Jul 21 2012 Fedora Release Engineering - 2.17-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From f4bf3518ecbaf5a3ee84fb404701599ff44ba299 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Fri, 18 Nov 2011 15:13:59 +1000 Subject: [PATCH 14/56] Patch for RHBZ#750694 --- python-xmltramp-2.17-nsprefixes.patch | 20 ++++++++++++++++++++ python-xmltramp.spec | 13 +++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 python-xmltramp-2.17-nsprefixes.patch diff --git a/python-xmltramp-2.17-nsprefixes.patch b/python-xmltramp-2.17-nsprefixes.patch new file mode 100644 index 0000000..6240f11 --- /dev/null +++ b/python-xmltramp-2.17-nsprefixes.patch @@ -0,0 +1,20 @@ +--- a/xmltramp.py 2011-01-07 15:27:58.000000000 +1000 ++++ b/xmltramp.py 2011-11-02 14:03:07.881107507 +1000 +@@ -224,7 +224,9 @@ + + attrs = dict(attrs) + newprefixes = {} +- for k in self.prefixes.keys(): newprefixes[k] = self.prefixes[k][-1] ++ for k in self.prefixes.keys(): ++ if self.prefixes[k]: ++ newprefixes[k] = self.prefixes[k][-1] + + self.stack.append(Element(name, attrs, prefixes=newprefixes.copy())) + +@@ -357,5 +359,6 @@ + + assert parse('').__repr__(1) == '' + assert parse('').__repr__(1) == '' ++ assert parse('').__repr__(1) == '' + + if __name__ == '__main__': unittest() diff --git a/python-xmltramp.spec b/python-xmltramp.spec index dae119a..4c343c0 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -12,6 +12,7 @@ License: GPLv2 URL: http://www.aaronsw.com/2002/xmltramp/ Source0: http://www.aaronsw.com/2002/xmltramp/xmltramp-%{version}.py +Patch0: %{name}-%{version}-nsprefixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -22,14 +23,19 @@ xmltramp is a simple Pythonic API for working with XML %prep %setup -c -T +cp -p %{SOURCE0} xmltramp.py +%patch0 -p1 -b.nsprefixes %build # noarch +%check +%{__python} xmltramp.py + %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}/ -cp -p %{SOURCE0} $RPM_BUILD_ROOT/%{python_sitelib}/xmltramp.py +cp -p xmltramp.py $RPM_BUILD_ROOT/%{python_sitelib}/ %clean @@ -42,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jun 07 2013 Dan Callaghan - 2.17-12 +- Patch for RHBZ#750694 + * Thu Feb 14 2013 Fedora Release Engineering - 2.17-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From 1726d6d7f14b9bd36ab3d43047029ae2d1445ee5 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 4 Aug 2013 05:55:19 -0500 Subject: [PATCH 15/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 4c343c0..b4e2e47 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Aug 04 2013 Fedora Release Engineering - 2.17-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Fri Jun 07 2013 Dan Callaghan - 2.17-12 - Patch for RHBZ#750694 From 13534565ec4178997e96f4c79edf981992672bf9 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 19:25:21 -0500 Subject: [PATCH 16/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index b4e2e47..7ce5a3f 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 2.17-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sun Aug 04 2013 Fedora Release Engineering - 2.17-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From fa2ee16b173a0521f8a200409a9352fadcb4c402 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 18 Jun 2015 21:24:06 +0000 Subject: [PATCH 17/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 7ce5a3f..d8456ed 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Jun 18 2015 Fedora Release Engineering - 2.17-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Sun Jun 08 2014 Fedora Release Engineering - 2.17-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From e7e423f6fea9081a864a302542052124c81da3c8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 4 Feb 2016 21:26:07 +0000 Subject: [PATCH 18/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index d8456ed..e46cda5 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Feb 04 2016 Fedora Release Engineering - 2.17-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Thu Jun 18 2015 Fedora Release Engineering - 2.17-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 27a5ae088266860e613a004d1e179096f9823b23 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 10:58:32 +0000 Subject: [PATCH 19/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index e46cda5..cb285d5 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 2.17-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Thu Feb 04 2016 Fedora Release Engineering - 2.17-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From d80af63555d9073a41a50be1c2ca3774411e9e9a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 12:20:04 +0000 Subject: [PATCH 20/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index cb285d5..8475731 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 2.17-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 2.17-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 40c9822063b8b50b79e15d757faa2d88832988aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 19 Aug 2017 09:43:26 -0400 Subject: [PATCH 21/56] Python 2 binary package renamed to python2-xmltramp --- python-xmltramp.spec | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 8475731..7ac4bac 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -18,9 +18,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel -%description +%global _description\ xmltramp is a simple Pythonic API for working with XML +%description %_description + +%package -n python2-xmltramp +Summary: %summary +%{?python_provide:%python_provide python2-xmltramp} + +%description -n python2-xmltramp %_description + %prep %setup -c -T cp -p %{SOURCE0} xmltramp.py @@ -42,12 +50,16 @@ cp -p xmltramp.py $RPM_BUILD_ROOT/%{python_sitelib}/ rm -rf $RPM_BUILD_ROOT -%files +%files -n python2-xmltramp %defattr(-,root,root,-) %{python_sitelib}/xmltramp.py* %changelog +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.17-19 +- Python 2 binary package renamed to python2-xmltramp + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 2.17-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 94779d999fcf87f9a81ecea2d14110d6f163a509 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Wed, 31 Jan 2018 06:44:32 +0100 Subject: [PATCH 22/56] Update Python 2 dependency declarations to new packaging standards --- python-xmltramp.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 7ac4bac..8356d94 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -16,7 +16,7 @@ Patch0: %{name}-%{version}-nsprefixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: python-devel +BuildRequires: python2-devel %global _description\ xmltramp is a simple Pythonic API for working with XML @@ -56,6 +56,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jan 31 2018 Iryna Shcherbina - 2.17-20 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.17-19 - Python 2 binary package renamed to python2-xmltramp See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 From b2b0c13e3625990d31a286d71b04cf19286cedde Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 11:45:40 +0000 Subject: [PATCH 23/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 8356d94..24209b1 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -2,7 +2,7 @@ Name: python-xmltramp Version: 2.17 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -56,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 2.17-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jan 31 2018 Iryna Shcherbina - 2.17-20 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From f2d1787c33890318a1b6e57645fd51d7b1d5f0cb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 00:28:16 +0100 Subject: [PATCH 24/56] Remove BuildRoot definition None of currently supported distributions need that. It was needed last for EL5 which is EOL now Signed-off-by: Igor Gnatenko --- python-xmltramp.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 24209b1..d7766a8 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -13,7 +13,6 @@ License: GPLv2 URL: http://www.aaronsw.com/2002/xmltramp/ Source0: http://www.aaronsw.com/2002/xmltramp/xmltramp-%{version}.py Patch0: %{name}-%{version}-nsprefixes.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python2-devel From c9ffbb9670522e0f395c8cd3efb775c9853ffab2 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 08:45:15 +0100 Subject: [PATCH 25/56] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- python-xmltramp.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index d7766a8..3d67d46 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -45,9 +45,6 @@ mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}/ cp -p xmltramp.py $RPM_BUILD_ROOT/%{python_sitelib}/ -%clean -rm -rf $RPM_BUILD_ROOT - %files -n python2-xmltramp %defattr(-,root,root,-) From 7f29d5c4a599a7d18801fe4b5dcddfebeecf9461 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: Thu, 5 Jul 2018 15:57:59 +1000 Subject: [PATCH 26/56] Upstream release 2.18, Python 3 support --- ....patch => 0001-Patch-for-RHBZ-750694.patch | 22 +++- ...-fix-imports-and-syntax-for-Python-3.patch | 123 ++++++++++++++++++ ...-to-return-str-not-bytes-on-Python-3.patch | 36 +++++ ...-is-slice-None-None-None-on-Python-3.patch | 27 ++++ ...edDict-for-attributes-and-namespaces.patch | 91 +++++++++++++ python-xmltramp.spec | 46 +++++-- xmltramp-2.17.py => xmltramp-2.18.py | 6 +- 7 files changed, 332 insertions(+), 19 deletions(-) rename python-xmltramp-2.17-nsprefixes.patch => 0001-Patch-for-RHBZ-750694.patch (56%) create mode 100644 0002-fix-imports-and-syntax-for-Python-3.patch create mode 100644 0003-__str__-needs-to-return-str-not-bytes-on-Python-3.patch create mode 100644 0004-empty-slice-is-slice-None-None-None-on-Python-3.patch create mode 100644 0005-use-OrderedDict-for-attributes-and-namespaces.patch rename xmltramp-2.17.py => xmltramp-2.18.py (99%) diff --git a/python-xmltramp-2.17-nsprefixes.patch b/0001-Patch-for-RHBZ-750694.patch similarity index 56% rename from python-xmltramp-2.17-nsprefixes.patch rename to 0001-Patch-for-RHBZ-750694.patch index 6240f11..65c3561 100644 --- a/python-xmltramp-2.17-nsprefixes.patch +++ b/0001-Patch-for-RHBZ-750694.patch @@ -1,6 +1,17 @@ ---- a/xmltramp.py 2011-01-07 15:27:58.000000000 +1000 -+++ b/xmltramp.py 2011-11-02 14:03:07.881107507 +1000 -@@ -224,7 +224,9 @@ +From ebc1a41118befdc7a92e0ccd04819d488775316d Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Fri, 18 Nov 2011 15:13:59 +1000 +Subject: [PATCH 1/5] Patch for RHBZ#750694 + +--- + xmltramp.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/xmltramp.py b/xmltramp.py +index 9a4908a..7819b25 100644 +--- a/xmltramp.py ++++ b/xmltramp.py +@@ -224,7 +224,9 @@ def startElementNS(self, name, qname, attrs): attrs = dict(attrs) newprefixes = {} @@ -11,10 +22,13 @@ self.stack.append(Element(name, attrs, prefixes=newprefixes.copy())) -@@ -357,5 +359,6 @@ +@@ -357,5 +359,6 @@ def unittest(): assert parse('').__repr__(1) == '' assert parse('').__repr__(1) == '' + assert parse('').__repr__(1) == '' if __name__ == '__main__': unittest() +-- +2.14.4 + diff --git a/0002-fix-imports-and-syntax-for-Python-3.patch b/0002-fix-imports-and-syntax-for-Python-3.patch new file mode 100644 index 0000000..91265de --- /dev/null +++ b/0002-fix-imports-and-syntax-for-Python-3.patch @@ -0,0 +1,123 @@ +From cc474a11cda8bae8f26f651a9d11e63209427184 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Thu, 5 Jul 2018 15:41:51 +1000 +Subject: [PATCH 2/5] fix imports and syntax for Python 3 + +--- + xmltramp.py | 36 +++++++++++++++++++++++------------- + 1 file changed, 23 insertions(+), 13 deletions(-) + +diff --git a/xmltramp.py b/xmltramp.py +index 7819b25..a3a188f 100644 +--- a/xmltramp.py ++++ b/xmltramp.py +@@ -5,7 +5,11 @@ + __credits__ = "Many thanks to pjz, bitsko, and DanC." + __copyright__ = "(C) 2003-2006 Aaron Swartz. GNU GPL 2." + +-if not hasattr(__builtins__, 'True'): True, False = 1, 0 ++try: ++ text_type = unicode ++except NameError: # PY3 ++ text_type = str ++ + def isstr(f): return isinstance(f, type('')) or isinstance(f, type(u'')) + def islst(f): return isinstance(f, type(())) or isinstance(f, type([])) + +@@ -87,7 +91,7 @@ def arep(a, inprefixes, addns=1): + elif isinstance(x, Element): + out += x.__repr__(recursive+1, multiline, inprefixes.copy()) + else: +- raise TypeError, "I wasn't expecting "+`x`+"." ++ raise TypeError("I wasn't expecting "+repr(x)+".") + if multiline and content: out += '\n' + ('\t' * (recursive-1)) + else: + if self._dir: out += '...' +@@ -99,25 +103,25 @@ def arep(a, inprefixes, addns=1): + def __unicode__(self): + text = '' + for x in self._dir: +- text += unicode(x) ++ text += text_type(x) + return ' '.join(text.split()) + + def __str__(self): + return self.__unicode__().encode('utf-8') + + def __getattr__(self, n): +- if n[0] == '_': raise AttributeError, "Use foo['"+n+"'] to access the child element." ++ if n[0] == '_': raise AttributeError("Use foo['"+n+"'] to access the child element.") + if self._dNS: n = (self._dNS, n) + for x in self._dir: + if isinstance(x, Element) and x._name == n: return x +- raise AttributeError, 'No child element named %s' % repr(n) ++ raise AttributeError('No child element named %s' % repr(n)) + + def __hasattr__(self, n): + for x in self._dir: + if isinstance(x, Element) and x._name == n: return True + return False + +- def __setattr__(self, n, v): ++ def __setattr__(self, n, v): + if n[0] == '_': self.__dict__[n] = v + else: self[n] = v + +@@ -140,7 +144,7 @@ def __getitem__(self, n): + if self._dNS and not islst(n): n = (self._dNS, n) + for x in self._dir: + if isinstance(x, Element) and x._name == n: return x +- raise KeyError, n ++ raise KeyError(n) + + def __setitem__(self, n, v): + if isinstance(n, type(0)): # d[1] +@@ -213,7 +217,7 @@ def __init__(self): + ContentHandler.__init__(self) + + def startPrefixMapping(self, prefix, uri): +- if not self.prefixes.has_key(prefix): self.prefixes[prefix] = [] ++ if prefix not in self.prefixes: self.prefixes[prefix] = [] + self.prefixes[prefix].append(uri) + def endPrefixMapping(self, prefix): + self.prefixes[prefix].pop() +@@ -255,12 +259,18 @@ def seed(fileobj): + return seeder.result + + def parse(text): +- from StringIO import StringIO ++ try: ++ from StringIO import StringIO ++ except ImportError: # PY3 ++ from io import StringIO + return seed(StringIO(text)) + + def load(url): +- import urllib +- return seed(urllib.urlopen(url)) ++ try: ++ from urllib.request import urlopen ++ except ImportError: # PY2 ++ from urllib import urlopen ++ return seed(urlopen(url)) + + def unittest(): + parse('afoobara').__repr__(1,1) == \ +@@ -276,12 +286,12 @@ def unittest(): + + try: + d._doesnotexist +- raise "ExpectedError", "but found success. Damn." ++ raise AssertionError("Expected error, but found success. Damn.") + except AttributeError: pass + assert d.bar._name == 'bar' + try: + d.doesnotexist +- raise "ExpectedError", "but found success. Damn." ++ raise AssertionError("Expected error, but found success. Damn.") + except AttributeError: pass + + assert hasattr(d, 'bar') == True +-- +2.14.4 + diff --git a/0003-__str__-needs-to-return-str-not-bytes-on-Python-3.patch b/0003-__str__-needs-to-return-str-not-bytes-on-Python-3.patch new file mode 100644 index 0000000..f178f93 --- /dev/null +++ b/0003-__str__-needs-to-return-str-not-bytes-on-Python-3.patch @@ -0,0 +1,36 @@ +From 3dd8fe4955d28e8dee1c890d487288163a760419 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Thu, 5 Jul 2018 15:42:10 +1000 +Subject: [PATCH 3/5] __str__ needs to return str not bytes on Python 3 + +--- + xmltramp.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/xmltramp.py b/xmltramp.py +index a3a188f..e2522f2 100644 +--- a/xmltramp.py ++++ b/xmltramp.py +@@ -5,6 +5,7 @@ + __credits__ = "Many thanks to pjz, bitsko, and DanC." + __copyright__ = "(C) 2003-2006 Aaron Swartz. GNU GPL 2." + ++import sys + try: + text_type = unicode + except NameError: # PY3 +@@ -107,7 +108,10 @@ def __unicode__(self): + return ' '.join(text.split()) + + def __str__(self): +- return self.__unicode__().encode('utf-8') ++ if sys.version_info[0] > 2: ++ return self.__unicode__() ++ else: ++ return self.__unicode__().encode('utf-8') + + def __getattr__(self, n): + if n[0] == '_': raise AttributeError("Use foo['"+n+"'] to access the child element.") +-- +2.14.4 + diff --git a/0004-empty-slice-is-slice-None-None-None-on-Python-3.patch b/0004-empty-slice-is-slice-None-None-None-on-Python-3.patch new file mode 100644 index 0000000..9f0ba6e --- /dev/null +++ b/0004-empty-slice-is-slice-None-None-None-on-Python-3.patch @@ -0,0 +1,27 @@ +From b9aebcfc971d55fa6f2bf0e895e34a19994b6fd3 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Thu, 5 Jul 2018 15:42:35 +1000 +Subject: [PATCH 4/5] empty slice is slice(None, None, None) on Python 3 + +On Python 2, the empty slice is slice(0, 9223372036854775807, None) so +this extra conditional was not necessary. +--- + xmltramp.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xmltramp.py b/xmltramp.py +index e2522f2..0653112 100644 +--- a/xmltramp.py ++++ b/xmltramp.py +@@ -135,7 +135,7 @@ def __getitem__(self, n): + return self._dir[n] + elif isinstance(n, slice(0).__class__): + # numerical slices +- if isinstance(n.start, type(0)): return self._dir[n.start:n.stop] ++ if n.start is None or isinstance(n.start, type(0)): return self._dir[n.start:n.stop] + + # d['foo':] == all s + n = n.start +-- +2.14.4 + diff --git a/0005-use-OrderedDict-for-attributes-and-namespaces.patch b/0005-use-OrderedDict-for-attributes-and-namespaces.patch new file mode 100644 index 0000000..55f1562 --- /dev/null +++ b/0005-use-OrderedDict-for-attributes-and-namespaces.patch @@ -0,0 +1,91 @@ +From 1303e9a3797c48b1681532c7c7e2d70a64907258 Mon Sep 17 00:00:00 2001 +From: Dan Callaghan +Date: Thu, 5 Jul 2018 15:46:58 +1000 +Subject: [PATCH 5/5] use OrderedDict for attributes and namespaces + +This is to ensure consistent iteration order, mainly so that the tests +will work regardless of dict hashing behaviour which varies across +Python 2 and 3. It should be nicer for callers as well. +--- + xmltramp.py | 22 +++++++++++++--------- + 1 file changed, 13 insertions(+), 9 deletions(-) + +diff --git a/xmltramp.py b/xmltramp.py +index 0653112..d3f1541 100644 +--- a/xmltramp.py ++++ b/xmltramp.py +@@ -10,6 +10,10 @@ + text_type = unicode + except NameError: # PY3 + text_type = str ++try: ++ from collections import OrderedDict ++except ImportError: # PY<=2.6 ++ OrderedDict = dict + + def isstr(f): return isinstance(f, type('')) or isinstance(f, type(u'')) + def islst(f): return isinstance(f, type(())) or isinstance(f, type([])) +@@ -26,18 +30,18 @@ class Element: + def __init__(self, name, attrs=None, children=None, prefixes=None): + if islst(name) and name[0] == None: name = name[1] + if attrs: +- na = {} ++ na = OrderedDict() + for k in attrs.keys(): + if islst(k) and k[0] == None: na[k[1]] = attrs[k] + else: na[k] = attrs[k] + attrs = na + + self._name = name +- self._attrs = attrs or {} ++ self._attrs = attrs or OrderedDict() + self._dir = children or [] + +- prefixes = prefixes or {} +- self._prefixes = dict(zip(prefixes.values(), prefixes.keys())) ++ prefixes = prefixes or OrderedDict() ++ self._prefixes = OrderedDict(zip(prefixes.values(), prefixes.keys())) + + if prefixes: self._dNS = prefixes.get(None, None) + else: self._dNS = None +@@ -67,7 +71,7 @@ def arep(a, inprefixes, addns=1): + + return out + +- inprefixes = inprefixes or {u'http://www.w3.org/XML/1998/namespace':'xml'} ++ inprefixes = inprefixes or OrderedDict({u'http://www.w3.org/XML/1998/namespace':'xml'}) + + # need to call first to set inprefixes: + attributes = arep(self._attrs, inprefixes, recursive) +@@ -217,7 +221,7 @@ class Seeder(EntityResolver, DTDHandler, ContentHandler, ErrorHandler): + def __init__(self): + self.stack = [] + self.ch = '' +- self.prefixes = {} ++ self.prefixes = OrderedDict() + ContentHandler.__init__(self) + + def startPrefixMapping(self, prefix, uri): +@@ -231,7 +235,7 @@ def startElementNS(self, name, qname, attrs): + if ch and not ch.isspace(): self.stack[-1]._dir.append(ch) + + attrs = dict(attrs) +- newprefixes = {} ++ newprefixes = OrderedDict() + for k in self.prefixes.keys(): + if self.prefixes[k]: + newprefixes[k] = self.prefixes[k][-1] +@@ -333,8 +337,8 @@ def unittest(): + """) + + assert repr(d) == '...' +- assert d.__repr__(1) == 'John Polk and John PalfreyJohn PolkJohn PalfreyBuffy' +- assert d.__repr__(1,1) == '\n\tJohn Polk and John Palfrey\n\tJohn Polk\n\tJohn Palfrey\n\tBuffy\n' ++ assert d.__repr__(1) == 'John Polk and John PalfreyJohn PolkJohn PalfreyBuffy' ++ assert d.__repr__(1,1) == '\n\tJohn Polk and John Palfrey\n\tJohn Polk\n\tJohn Palfrey\n\tBuffy\n' + + assert repr(parse("")) == '' + +-- +2.14.4 + diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 3d67d46..35c425a 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,8 +1,7 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-xmltramp -Version: 2.17 -Release: 21%{?dist} +Version: 2.18 +Release: 1%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -12,10 +11,15 @@ License: GPLv2 URL: http://www.aaronsw.com/2002/xmltramp/ Source0: http://www.aaronsw.com/2002/xmltramp/xmltramp-%{version}.py -Patch0: %{name}-%{version}-nsprefixes.patch +Patch1: 0001-Patch-for-RHBZ-750694.patch +Patch2: 0002-fix-imports-and-syntax-for-Python-3.patch +Patch3: 0003-__str__-needs-to-return-str-not-bytes-on-Python-3.patch +Patch4: 0004-empty-slice-is-slice-None-None-None-on-Python-3.patch +Patch5: 0005-use-OrderedDict-for-attributes-and-namespaces.patch BuildArch: noarch BuildRequires: python2-devel +BuildRequires: python3-devel %global _description\ xmltramp is a simple Pythonic API for working with XML @@ -28,30 +32,48 @@ Summary: %summary %description -n python2-xmltramp %_description +%package -n python3-xmltramp +Summary: %summary +%{?python_provide:%python_provide python3-xmltramp} + +%description -n python3-xmltramp %_description + %prep %setup -c -T cp -p %{SOURCE0} xmltramp.py -%patch0 -p1 -b.nsprefixes +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 %build # noarch %check -%{__python} xmltramp.py +%{__python2} xmltramp.py +%{__python3} xmltramp.py %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}/ -cp -p xmltramp.py $RPM_BUILD_ROOT/%{python_sitelib}/ - - +mkdir -p $RPM_BUILD_ROOT/%{python2_sitelib}/ +cp -p xmltramp.py $RPM_BUILD_ROOT/%{python2_sitelib}/ +mkdir -p $RPM_BUILD_ROOT/%{python3_sitelib}/ +cp -p xmltramp.py $RPM_BUILD_ROOT/%{python3_sitelib}/ %files -n python2-xmltramp -%defattr(-,root,root,-) -%{python_sitelib}/xmltramp.py* +%{python2_sitelib}/xmltramp.py* + +%files -n python3-xmltramp +%{python3_sitelib}/xmltramp.py* +%{python3_sitelib}/__pycache__/ %changelog +* Thu Jul 05 2018 Dan Callaghan - 2.18-1 +- Updated to upstream release 2.18 (only ~10 years late...) +- Minimal fixes to support Python 3 + * Fri Feb 09 2018 Fedora Release Engineering - 2.17-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/xmltramp-2.17.py b/xmltramp-2.18.py similarity index 99% rename from xmltramp-2.17.py rename to xmltramp-2.18.py index 25dd0d0..9a4908a 100644 --- a/xmltramp-2.17.py +++ b/xmltramp-2.18.py @@ -1,6 +1,6 @@ """xmltramp: Make XML documents easily accessible.""" -__version__ = "2.17" +__version__ = "2.18" __author__ = "Aaron Swartz" __credits__ = "Many thanks to pjz, bitsko, and DanC." __copyright__ = "(C) 2003-2006 Aaron Swartz. GNU GPL 2." @@ -140,7 +140,7 @@ class Element: if self._dNS and not islst(n): n = (self._dNS, n) for x in self._dir: if isinstance(x, Element) and x._name == n: return x - raise KeyError + raise KeyError, n def __setitem__(self, n, v): if isinstance(n, type(0)): # d[1] @@ -191,7 +191,7 @@ class Element: if len(_pos) > 1: for i in range(0, len(_pos), 2): self._attrs[_pos[i]] = _pos[i+1] - if len(_pos) == 1 is not None: + if len(_pos) == 1: return self._attrs[_pos[0]] if len(_pos) == 0: return self._attrs From 4a9349aaed402a90f5d8740dbbf67901cd00134e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 02:42:19 +0000 Subject: [PATCH 27/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 35c425a..76016af 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -70,6 +70,9 @@ cp -p xmltramp.py $RPM_BUILD_ROOT/%{python3_sitelib}/ %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 2.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Thu Jul 05 2018 Dan Callaghan - 2.18-1 - Updated to upstream release 2.18 (only ~10 years late...) - Minimal fixes to support Python 3 From 2586ce1f7ea6c684c768aafc2b116074c687b59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 12 Oct 2018 11:05:00 +0200 Subject: [PATCH 28/56] Python2 binary package has been removed --- python-xmltramp.spec | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 76016af..ef5792c 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Pythonic API for XML Group: Development/Languages @@ -18,20 +18,13 @@ Patch4: 0004-empty-slice-is-slice-None-None-None-on-Python-3.patch Patch5: 0005-use-OrderedDict-for-attributes-and-namespaces.patch BuildArch: noarch -BuildRequires: python2-devel BuildRequires: python3-devel %global _description\ -xmltramp is a simple Pythonic API for working with XML +xmltramp is a simple Pythonic API for working with XML. %description %_description -%package -n python2-xmltramp -Summary: %summary -%{?python_provide:%python_provide python2-xmltramp} - -%description -n python2-xmltramp %_description - %package -n python3-xmltramp Summary: %summary %{?python_provide:%python_provide python3-xmltramp} @@ -50,19 +43,11 @@ cp -p %{SOURCE0} xmltramp.py %build # noarch -%check -%{__python2} xmltramp.py -%{__python3} xmltramp.py - %install -rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/%{python2_sitelib}/ -cp -p xmltramp.py $RPM_BUILD_ROOT/%{python2_sitelib}/ -mkdir -p $RPM_BUILD_ROOT/%{python3_sitelib}/ -cp -p xmltramp.py $RPM_BUILD_ROOT/%{python3_sitelib}/ +install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py -%files -n python2-xmltramp -%{python2_sitelib}/xmltramp.py* +%check +%{__python3} xmltramp.py %files -n python3-xmltramp %{python3_sitelib}/xmltramp.py* @@ -70,6 +55,10 @@ cp -p xmltramp.py $RPM_BUILD_ROOT/%{python3_sitelib}/ %changelog +* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 2.18-3 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Jul 14 2018 Fedora Release Engineering - 2.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 08451d57fdf2c2f2f81fc18b1436c407eb388c2b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:19 +0100 Subject: [PATCH 29/56] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- python-xmltramp.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index ef5792c..5a40150 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -4,7 +4,6 @@ Version: 2.18 Release: 3%{?dist} Summary: Pythonic API for XML -Group: Development/Languages License: GPLv2 # License text is not present in the upstream file, though clearly marked as GPLv2 # See https://www.redhat.com/archives/fedora-legal-list/2008-January/msg00010.html From 3577c30579e2dd21307d54f69f03e5daa48648f3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 10:08:29 +0000 Subject: [PATCH 30/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 5a40150..d4c3152 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 2.18-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 2.18-3 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal From 5cb63dd74254e5016b88f22bafe8c742dcd966c1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 17:10:53 +0000 Subject: [PATCH 31/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index d4c3152..fb71390 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 2.18-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sat Feb 02 2019 Fedora Release Engineering - 2.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 3a030d6ac68a461ea3afc7cadaea1a5fd7d1589a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Aug 2019 11:02:41 +0200 Subject: [PATCH 32/56] Rebuilt for Python 3.8 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index fb71390..ecce514 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Mon Aug 19 2019 Miro Hrončok - 2.18-6 +- Rebuilt for Python 3.8 + * Fri Jul 26 2019 Fedora Release Engineering - 2.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 613339b62a4189f651cef007e58b5b090994d5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 3 Oct 2019 14:36:14 +0200 Subject: [PATCH 33/56] Rebuilt for Python 3.8.0rc1 (#1748018) --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index ecce514..2bea80e 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Thu Oct 03 2019 Miro Hrončok - 2.18-7 +- Rebuilt for Python 3.8.0rc1 (#1748018) + * Mon Aug 19 2019 Miro Hrončok - 2.18-6 - Rebuilt for Python 3.8 From f515a21e47a6fe96e64c72c5dff7cc6e6a2514f7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 16:18:28 +0000 Subject: [PATCH 34/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 2bea80e..587b107 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 2.18-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Oct 03 2019 Miro Hrončok - 2.18-7 - Rebuilt for Python 3.8.0rc1 (#1748018) From fa69357a622117528bd671ef85cf9c5c43dc26e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 26 May 2020 03:46:50 +0200 Subject: [PATCH 35/56] Rebuilt for Python 3.9 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 587b107..ca196d5 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Tue May 26 2020 Miro Hrončok - 2.18-9 +- Rebuilt for Python 3.9 + * Thu Jan 30 2020 Fedora Release Engineering - 2.18-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 35f71694d835cfb57f43b981e9118866cc412641 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 04:43:45 +0000 Subject: [PATCH 36/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index ca196d5..97469c6 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 2.18-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue May 26 2020 Miro Hrončok - 2.18-9 - Rebuilt for Python 3.9 From cb00d687a885930010b4274d2479de973586af33 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 14:17:32 +0000 Subject: [PATCH 37/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 97469c6..2ec6b10 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 2.18-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 2.18-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 7396bcf2935a7aa81cae51ca90a4af3caff9ca1c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 21:10:08 +0200 Subject: [PATCH 38/56] Rebuilt for Python 3.10 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 2ec6b10..c10cdd9 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jun 04 2021 Python Maint - 2.18-12 +- Rebuilt for Python 3.10 + * Wed Jan 27 2021 Fedora Release Engineering - 2.18-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From c07cf010ac18659606f0439f6dd06fe6367e78d6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 10:20:08 +0000 Subject: [PATCH 39/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index c10cdd9..1bf583e 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 2.18-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 2.18-12 - Rebuilt for Python 3.10 From 757fa8419a6946842a687db1876ba2a6ddb6d732 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 16:36:34 +0000 Subject: [PATCH 40/56] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 1bf583e..c7463c9 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 2.18-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 2.18-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From a75506cab2c18f737990fe2b8c5bef94d3eff754 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 15:34:49 +0200 Subject: [PATCH 41/56] Rebuilt for Python 3.11 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index c7463c9..b9b7e5e 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Mon Jun 13 2022 Python Maint - 2.18-15 +- Rebuilt for Python 3.11 + * Fri Jan 21 2022 Fedora Release Engineering - 2.18-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From bdb75775efcd064e206ed178705dd9a8ce3faadd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 23:33:53 +0000 Subject: [PATCH 42/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index b9b7e5e..7fe9deb 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 2.18-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Jun 13 2022 Python Maint - 2.18-15 - Rebuilt for Python 3.11 From 1455c60bf4df9ff30eb79285d8baf9e69d01f8a5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 18:31:54 +0000 Subject: [PATCH 43/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 7fe9deb..afde9a1 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 2.18-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 2.18-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From caf13def79d8114b84606e2d039589817dcc1c55 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 13 Jun 2023 20:57:46 +0200 Subject: [PATCH 44/56] Rebuilt for Python 3.12 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index afde9a1..e37c5ac 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Tue Jun 13 2023 Python Maint - 2.18-18 +- Rebuilt for Python 3.12 + * Fri Jan 20 2023 Fedora Release Engineering - 2.18-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 91191b9fd6092035eca9e0e2cbe8560dca9225cf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 15:26:53 +0000 Subject: [PATCH 45/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index e37c5ac..8aeffba 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 2.18-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue Jun 13 2023 Python Maint - 2.18-18 - Rebuilt for Python 3.12 From e53fd867d421aeec2ee817601ee9f43ac0587210 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 09:08:38 +0000 Subject: [PATCH 46/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 8aeffba..01db673 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 2.18-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 2.18-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From c2b89d378c608c7f0f818d3f6b6f444edfae38e9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 13:10:36 +0000 Subject: [PATCH 47/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 01db673..2805285 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 2.18-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 2.18-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 63f98396448ba43172c1600b7e67cad22a012746 Mon Sep 17 00:00:00 2001 From: Software Management Team Date: Thu, 30 May 2024 12:46:49 +0200 Subject: [PATCH 48/56] Eliminate use of obsolete %patchN syntax (#2283636) --- python-xmltramp.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 2805285..a6402c1 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -33,11 +33,11 @@ Summary: %summary %prep %setup -c -T cp -p %{SOURCE0} xmltramp.py -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 +%patch -P1 -p1 +%patch -P2 -p1 +%patch -P3 -p1 +%patch -P4 -p1 +%patch -P5 -p1 %build # noarch From 435f728c19b83d097b078788c3d7786cf1141c33 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 09:09:39 +0200 Subject: [PATCH 49/56] Rebuilt for Python 3.13 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index a6402c1..8ed964d 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jun 07 2024 Python Maint - 2.18-22 +- Rebuilt for Python 3.13 + * Fri Jan 26 2024 Fedora Release Engineering - 2.18-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From cc03f169a05bd31b9c7ac5b6dc0b20c057127862 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 17:12:45 +0000 Subject: [PATCH 50/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 8ed964d..617a79c 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 22%{?dist} +Release: 23%{?dist} Summary: Pythonic API for XML License: GPLv2 @@ -54,6 +54,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 2.18-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 07 2024 Python Maint - 2.18-22 - Rebuilt for Python 3.13 From 13ec60a38e1dbe5bafc754dcb3922dcefbc44d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 29 Jul 2024 11:51:12 +0200 Subject: [PATCH 51/56] convert GPLv2 license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- python-xmltramp.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 617a79c..eac248e 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,10 +1,11 @@ Name: python-xmltramp Version: 2.18 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Pythonic API for XML -License: GPLv2 +# Automatically converted from old format: GPLv2 - review is highly recommended. +License: GPL-2.0-only # License text is not present in the upstream file, though clearly marked as GPLv2 # See https://www.redhat.com/archives/fedora-legal-list/2008-January/msg00010.html @@ -54,6 +55,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Mon Jul 29 2024 Miroslav Suchý - 2.18-24 +- convert license to SPDX + * Fri Jul 19 2024 Fedora Release Engineering - 2.18-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From fd3850b28104971f0f4a18066359cefb1e31b226 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 20:53:59 +0000 Subject: [PATCH 52/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index eac248e..06b3ee1 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 24%{?dist} +Release: 25%{?dist} Summary: Pythonic API for XML # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -55,6 +55,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 2.18-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Mon Jul 29 2024 Miroslav Suchý - 2.18-24 - convert license to SPDX From bb341e106979c1f89f36df94447f55f5fe80629b Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 2 Jun 2025 20:50:55 +0200 Subject: [PATCH 53/56] Rebuilt for Python 3.14 --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 06b3ee1..30cae0a 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 25%{?dist} +Release: 26%{?dist} Summary: Pythonic API for XML # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -55,6 +55,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Mon Jun 02 2025 Python Maint - 2.18-26 +- Rebuilt for Python 3.14 + * Sat Jan 18 2025 Fedora Release Engineering - 2.18-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From d3438a60151243100132a92909f301746964aab4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 11:12:01 +0000 Subject: [PATCH 54/56] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index 30cae0a..c6d8148 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Pythonic API for XML # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -55,6 +55,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 2.18-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jun 02 2025 Python Maint - 2.18-26 - Rebuilt for Python 3.14 From cb01dcfd79b0d253ba70ad823515075472b4599f Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 15:10:44 +0200 Subject: [PATCH 55/56] Rebuilt for Python 3.14.0rc2 bytecode --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index c6d8148..fb99e4f 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 27%{?dist} +Release: 28%{?dist} Summary: Pythonic API for XML # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -55,6 +55,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Aug 15 2025 Python Maint - 2.18-28 +- Rebuilt for Python 3.14.0rc2 bytecode + * Fri Jul 25 2025 Fedora Release Engineering - 2.18-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 097dcfd32bdae72698232a989afed4864e5e6009 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 14:47:43 +0200 Subject: [PATCH 56/56] Rebuilt for Python 3.14.0rc3 bytecode --- python-xmltramp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-xmltramp.spec b/python-xmltramp.spec index fb99e4f..5144833 100644 --- a/python-xmltramp.spec +++ b/python-xmltramp.spec @@ -1,7 +1,7 @@ Name: python-xmltramp Version: 2.18 -Release: 28%{?dist} +Release: 29%{?dist} Summary: Pythonic API for XML # Automatically converted from old format: GPLv2 - review is highly recommended. @@ -55,6 +55,9 @@ install -Dm0644 -t %{buildroot}%{python3_sitelib}/ xmltramp.py %changelog +* Fri Sep 19 2025 Python Maint - 2.18-29 +- Rebuilt for Python 3.14.0rc3 bytecode + * Fri Aug 15 2025 Python Maint - 2.18-28 - Rebuilt for Python 3.14.0rc2 bytecode