diff --git a/python-construct.changes b/python-construct.changes index d8ee6b2..8ddf2b1 100644 --- a/python-construct.changes +++ b/python-construct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 7 11:37:34 UTC 2019 - Tomáš Chvátal + +- Reintroduce split_debug.patch for rpmlint[mini] mode + ------------------------------------------------------------------- Wed Jan 2 09:36:53 UTC 2019 - Tomáš Chvátal diff --git a/python-construct.spec b/python-construct.spec index ce0fcda..1ea73e6 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -25,6 +25,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/construct/construct Source: https://github.com/construct/construct/archive/v%{version}.tar.gz +Patch0: split_debug.patch BuildRequires: %{python_module arrow} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest} @@ -51,6 +52,8 @@ and in the other direction to convert ("build") objects into binary data. %prep %setup -q -n construct-%{version} +%patch0 -p1 + # remove gallery tests that require in place stuff rm -rf tests/gallery rm -rf tests/deprecated_gallery diff --git a/split_debug.patch b/split_debug.patch new file mode 100644 index 0000000..8b351eb --- /dev/null +++ b/split_debug.patch @@ -0,0 +1,39 @@ +Index: construct-2.9.45/construct/__init__.py +=================================================================== +--- construct-2.9.45.orig/construct/__init__.py ++++ construct-2.9.45/construct/__init__.py +@@ -21,7 +21,6 @@ Hands-on example: + + from construct.core import * + from construct.expr import * +-from construct.debug import * + from construct.version import * + from construct import lib + +@@ -69,7 +68,6 @@ __all__ = [ + 'ConstructError', + 'Container', + 'CString', +- 'Debugger', + 'Default', + 'Double', + 'Embedded', +@@ -144,7 +142,6 @@ __all__ = [ + 'possiblestringencodings', + 'Prefixed', + 'PrefixedArray', +- 'Probe', + 'ProcessRotateLeft', + 'ProcessXor', + 'RangeError', +@@ -207,3 +204,10 @@ __all__ = [ + ] + __all__ += ["Int%s%s%s" % (n,us,bln) for n in (8,16,24,32,64) for us in "us" for bln in "bln"] + __all__ += ["Float%s%s" % (n,bln) for n in (32,64) for bln in "bln"] ++ ++try: ++ from construct.debug import * ++ __all__ += ['Debugger', 'Probe'] ++except ImportError: ++ pass ++