From 1f96d852630aa2569106a939854f5e364235d60a Mon Sep 17 00:00:00 2001 From: Maurizio Lombardi Date: Sep 22 2023 09:17:13 +0000 Subject: Currently broken on Python3.12, fails to build --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index df4aa50..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/SimpleParse-2.1.1.tar.gz -/SimpleParse-2.2.0.tar.gz -/SimpleParse-2.2.2.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..6b49d9b --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Currently broken on Python3.12, fails to build diff --git a/python-simpleparse-c99.patch b/python-simpleparse-c99.patch deleted file mode 100644 index 2164fb7..0000000 --- a/python-simpleparse-c99.patch +++ /dev/null @@ -1,25 +0,0 @@ -Replace Py_UNICODE_COPY with an equivalent memcpy call. Avoids -an implicit function declaration. - -Submitted upstream: - -diff --git a/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c b/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -index be8f6a4a810056b5..89ea7a9e39156d21 100644 ---- a/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -+++ b/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -@@ -2898,13 +2898,13 @@ PyObject *mxTextTools_UnicodeJoin(PyObject *seq, - - /* Insert separator */ - if (i > 0 && sep_len > 0) { -- Py_UNICODE_COPY(p, sep, sep_len); -+ memcpy(p, sep, sep_len * sizeof(*p)); - p += sep_len; - current_len += sep_len; - } - - /* Copy snippet into new string */ -- Py_UNICODE_COPY(p, st, len_st); -+ memcpy(p, st, len_st * sizeof(*p)); - p += len_st; - current_len += len_st; - diff --git a/python-simpleparse-eols.patch b/python-simpleparse-eols.patch deleted file mode 100644 index 9fc1362..0000000 --- a/python-simpleparse-eols.patch +++ /dev/null @@ -1,33 +0,0 @@ -=== modified file 'examples/__init__.py' ---- examples/__init__.py 2008-11-09 22:58:29 +0000 -+++ examples/__init__.py 2011-08-17 18:31:28 +0000 -@@ -4,4 +4,4 @@ - well as a demonstration of using "pre-built" - parser nodes (particularly one based on the re - module). --''' -\ No newline at end of file -+''' - -=== modified file 'examples/simpleexample2_2.py' ---- examples/simpleexample2_2.py 2008-11-09 22:58:29 +0000 -+++ examples/simpleexample2_2.py 2011-08-17 20:06:58 +0000 -@@ -34,4 +34,4 @@ - for testData in testEquality: - success, children, nextcharacter = parser.parse( testData, production=production) - assert success and nextcharacter==len(testData), """Wasn't able to parse %s as a %s (%s chars parsed of %s), returned value was %s"""%( repr(testData), production, nextcharacter, len(testData), (success, children, nextcharacter)) -- -\ No newline at end of file -+ - -=== modified file 'examples/vrml.py' ---- examples/vrml.py 2008-11-09 22:58:29 +0000 -+++ examples/vrml.py 2011-08-17 20:07:12 +0000 -@@ -57,4 +57,4 @@ - success, tags, next = parser.parse( data) - d = time.time()-t - print "parsed %s characters of %s in %s seconds (%scps)"%( next, len(data), d, next/(d or 0.000000001) ) -- -\ No newline at end of file -+ - diff --git a/python-simpleparse.spec b/python-simpleparse.spec deleted file mode 100644 index c13dc1e..0000000 --- a/python-simpleparse.spec +++ /dev/null @@ -1,173 +0,0 @@ -%global oname SimpleParse - -Name: python-simpleparse -License: BSD -Summary: A simple and fast parser generator -Version: 2.2.2 -Release: 13%{?dist} -URL: http://launchpad.net/simpleparse -Source0: https://pypi.io/packages/source/S/SimpleParse/%{oname}-%{version}.tar.gz -Patch0: pytuple_check.patch -Patch1: python-simpleparse-c99.patch -BuildRequires: gcc -BuildRequires: python3-devel python3-setuptools - -%global _description\ -SimpleParse is a BSD-licensed Python package providing a simple and fast parser\ -generator using a modified version of the mxTextTools text-tagging engine.\ -SimpleParse allows you to generate parsers directly from your EBNF grammar.\ -\ -\ - -%description %_description - -%package -n python3-simpleparse -Summary: %summary -%{?python_provide:%python_provide python3-simpleparse} - -%description -n python3-simpleparse %_description - -%prep -%autosetup -p1 -n %{oname}-%{version} - -%build -%py3_build - -%install -%py3_install - -%files -n python3-simpleparse -%license license.txt -%doc docs -%{python3_sitearch}/* - -%changelog -* Fri Jul 21 2023 Fedora Release Engineering - 2.2.2-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jun 13 2023 Python Maint - 2.2.2-12 -- Rebuilt for Python 3.12 - -* Fri Jan 20 2023 Fedora Release Engineering - 2.2.2-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Thu Dec 22 2022 Florian Weimer - 2.2.2-10 -- Fix undefined reference to Py_UNICODE_COPY - -* Fri Jul 22 2022 Fedora Release Engineering - 2.2.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 2.2.2-8 -- Rebuilt for Python 3.11 - -* Fri Jan 21 2022 Fedora Release Engineering - 2.2.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 2.2.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 2.2.2-5 -- Rebuilt for Python 3.10 - -* Wed Jan 27 2021 Fedora Release Engineering - 2.2.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Thu Oct 15 2020 Maurizio Lombardi - 2.2.2-3 -- Add python3-setuptools to BuildRequires - -* Wed Jul 29 2020 Fedora Release Engineering - 2.2.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jun 11 2020 Maurizio Lombardi - 2.2.2-1 -- Update to version 2.2.2 - -* Tue May 26 2020 Miro Hrončok - 2.2.0-11 -- Rebuilt for Python 3.9 - -* Thu Jan 30 2020 Fedora Release Engineering - 2.2.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Oct 03 2019 Miro Hrončok - 2.2.0-9 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Mon Aug 19 2019 Miro Hrončok - 2.2.0-8 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 2.2.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 2.2.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Wed Oct 10 2018 Miro Hrončok - 2.2.0-5 -- 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.2.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 2.2.0-3 -- Rebuilt for Python 3.7 - -* Fri Feb 09 2018 Fedora Release Engineering - 2.2.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Mon Oct 16 2017 Jan Beran - 2.2.0-1 -- New version including Python 3 subpackage - -* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.1.1-17 -- Python 2 binary package renamed to python2-simpleparse - See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 - -* Thu Aug 03 2017 Fedora Release Engineering - 2.1.1-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 2.1.1-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Jul 07 2017 Igor Gnatenko - 2.1.1-14 -- Rebuild due to bug in RPM (RHBZ #1468476) - -* Sat Feb 11 2017 Fedora Release Engineering - 2.1.1-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 19 2016 Fedora Release Engineering - 2.1.1-12 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Thu Feb 04 2016 Fedora Release Engineering - 2.1.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 2.1.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sun Aug 17 2014 Fedora Release Engineering - 2.1.1-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 2.1.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 2.1.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 2.1.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sat Jul 21 2012 Fedora Release Engineering - 2.1.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Sat Jan 14 2012 Fedora Release Engineering - 2.1.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Wed Aug 17 2011 Andy Grover - 2.1.1-3 -- Add patch to fix some missing EOLs - -* Wed Aug 17 2011 Andy Grover - 2.1.1-2 -- Filter out mxtexttools.so provides - -* Tue Aug 16 2011 Andy Grover - 2.1.1-1 -- Update to latest upstream version -- Modify URL and Source -- Remove mx dependency - -* Tue May 10 2011 Andy Grover - 2.0.0-1 -- Initial packaging diff --git a/pytuple_check.patch b/pytuple_check.patch deleted file mode 100644 index 5099489..0000000 --- a/pytuple_check.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c b/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -index d623933..be8f6a4 100644 ---- a/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -+++ b/simpleparse/stt/TextTools/mxTextTools/mxTextTools.c -@@ -2835,7 +2835,7 @@ PyObject *mxTextTools_UnicodeJoin(PyObject *seq, - - o = PySequence_GetItem(seq, i); - -- if PyTuple_Check(o) { -+ if (PyTuple_Check(o)) { - /* Tuple entry: (string,l,r,[...]) */ - register Py_ssize_t l,r; - -@@ -2980,7 +2980,7 @@ PyObject *mxTextTools_Join(PyObject *seq, - - o = PySequence_GetItem(seq, i); - -- if PyTuple_Check(o) { -+ if (PyTuple_Check(o)) { - /* Tuple entry: (string,l,r,[...]) */ - register Py_ssize_t l,r; - diff --git a/sources b/sources deleted file mode 100644 index f7ed800..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (SimpleParse-2.2.2.tar.gz) = ac530394d7b1e2641afe591887121d56bdb9eaddd14cb10dc505a409e73a51d4f5f01b81661f4ccacc8e5a53dde7bfd8b4e4e134ec41bb08de43e9a95369bd6b