From f3759e1236b880cee48653dd45415eb39d2537ef Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:54:42 +0100 Subject: [PATCH] python 2.7 mass rebuild [release 0.8.4-4mamba;Fri May 17 2013] --- README.md | 3 ++ python-xml-0.8.4-datasize.patch | 10 +++++ python-xml.spec | 69 +++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 python-xml-0.8.4-datasize.patch create mode 100644 python-xml.spec diff --git a/README.md b/README.md index a03bca6..dd869e7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # python-xml +The PyXML package is a collection of libraries to process XML with Python. +The distribution contains a validating XML parser, an implementation of the SAX and DOM programming interfaces and an interface to the Expat parser. + diff --git a/python-xml-0.8.4-datasize.patch b/python-xml-0.8.4-datasize.patch new file mode 100644 index 0000000..c4da69b --- /dev/null +++ b/python-xml-0.8.4-datasize.patch @@ -0,0 +1,10 @@ +--- PyXML-0.8.4/xml/parsers/xmlproc/xmlutils.py.orig 2009-12-30 11:43:21.000000000 +0100 ++++ PyXML-0.8.4/xml/parsers/xmlproc/xmlutils.py 2009-12-30 11:44:12.000000000 +0100 +@@ -720,6 +720,7 @@ + # to the recoding. + try: + self.data = self.charset_converter(self.data) ++ self.datasize = len(self.data) + except UnicodeError, e: + self._handle_decoding_error(self.data, e) + self.input_encoding = enc1 diff --git a/python-xml.spec b/python-xml.spec new file mode 100644 index 0000000..2fadf8c --- /dev/null +++ b/python-xml.spec @@ -0,0 +1,69 @@ +Name: python-xml +Version: 0.8.4 +Release: 4mamba +Summary: XML package for Python +Group: Development/Bindings +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.python.org/sigs/xml-sig/ +Source: http://downloads.sourceforge.net/pyxml/PyXML-%{version}.tar.gz +Patch: python-xml-0.8.4-datasize.patch +License: Python +Provides: python-pyxml +Obsoletes: python-pyxml +Provides: pyxml +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpython-devel +## AUTOBUILDREQ-END + +%description +The PyXML package is a collection of libraries to process XML with Python. +The distribution contains a validating XML parser, an implementation of the SAX and DOM programming interfaces and an interface to the Expat parser. + +%prep +%setup -q -n PyXML-%{version} +%patch -p1 + +%build +CFLAGS="%{optflags}" %{__python} setup.py build \ + --with-xslt + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%{__python} setup.py install \ + --root=%{buildroot} \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --with-xslt + +#%{__python} -O %{_libdir}/python%{pyver}/compileall.py \ +# %{buildroot}%{python_sitearch} + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/xmlproc_parse +%{_bindir}/xmlproc_val +%dir %{python_sitearch}/_xmlplus +%{python_sitearch}/_xmlplus/* +%{python_sitearch}/PyXML-%{version}-py%{python_version}.egg-info + +%changelog +* Fri May 17 2013 Silvan Calarco 0.8.4-4mamba +- python 2.7 mass rebuild + +* Wed Dec 30 2009 Stefano Cotta Ramusino 0.8.4-3mamba +- fixed a problem calculating the datasize of the data read from an XML file +- fixed license +- added missing build requirements + +* Tue Sep 30 2008 Tiziana Ferro 0.8.4-2mamba +- update buildrequirements list and rebuild + +* Fri Sep 23 2005 Davide Madrisan 0.8.4-1qilnx +- package created by autospec