Hello community, here is the log from the commit of package python-construct for openSUSE:Factory checked in at 2017-04-28 10:53:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-construct (Old) and /work/SRC/openSUSE:Factory/.python-construct.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-construct" Fri Apr 28 10:53:59 2017 rev:7 rq:491188 version:2.8.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-construct/python-construct.changes 2017-02-03 18:57:18.298318093 +0100 +++ /work/SRC/openSUSE:Factory/.python-construct.new/python-construct.changes 2017-04-28 10:54:03.152600927 +0200 @@ -1,0 +2,8 @@ +Sat Apr 22 16:20:52 UTC 2017 - aloisio@gmx.com + +- Update to 2.8.11 +- Converted to single-spec +- Set proper source URL +- Refreshed split_debug.patch + +------------------------------------------------------------------- Old: ---- construct-2.8.10.tar.gz New: ---- construct-2.8.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-construct.spec ++++++ --- /var/tmp/diff_new_pack.LnveyZ/_old 2017-04-28 10:54:04.292439833 +0200 +++ /var/tmp/diff_new_pack.LnveyZ/_new 2017-04-28 10:54:04.292439833 +0200 @@ -16,25 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-construct -Version: 2.8.10 +Version: 2.8.11 Release: 0 Summary: A powerful declarative parser/builder for binary data License: MIT Group: Development/Languages/Python Url: http://construct.readthedocs.org -Source: https://github.com/construct/construct/archive/v%{version}/construct-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/c/construct/construct-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE split_debug.patch matwey.kornilov@gmail.com -- make debug.py non-loadable Patch0: split_debug.patch -BuildRequires: python-devel -BuildRequires: python-six +BuildRequires: %{python_module devel} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Construct is a powerful declarative parser (and builder) for binary data. @@ -49,14 +49,16 @@ %patch0 -p1 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst -%{python_sitelib}/* +%{python_sitelib}/construct +%{python_sitelib}/construct-%{version}-py%{python_version}.egg-info %changelog ++++++ construct-2.8.10.tar.gz -> construct-2.8.11.tar.gz ++++++ ++++ 2427 lines of diff (skipped) ++++++ split_debug.patch ++++++ --- /var/tmp/diff_new_pack.LnveyZ/_old 2017-04-28 10:54:04.496411006 +0200 +++ /var/tmp/diff_new_pack.LnveyZ/_new 2017-04-28 10:54:04.500410441 +0200 @@ -1,28 +1,12 @@ -Index: construct-2.8.10/construct/__init__.py +Index: construct-2.8.11/construct/__init__.py =================================================================== ---- construct-2.8.10.orig/construct/__init__.py -+++ construct-2.8.10/construct/__init__.py +--- construct-2.8.11.orig/construct/__init__.py ++++ construct-2.8.11/construct/__init__.py @@ -21,7 +21,6 @@ Hands-on example: from construct.core import * - from construct.expr import this, Path, Path2, PathFunc, len_, sum_, min_, max_, abs_, obj_, True_, False_ + from construct.expr import this, Path, Path2, PathFunc, len_, sum_, min_, max_, abs_, obj_ -from construct.debug import Probe, ProbeInto, Debugger from construct.version import version, version_string, release_date from construct import lib -@@ -40,8 +39,12 @@ __version__ = version_string - # exposed names - #=============================================================================== - __all__ = [ -- 'AdaptationError', 'Alias', 'Aligned', 'AlignedStruct', 'Array', 'Bit', 'BitIntegerError', 'BitStruct', 'Bitwise', 'CString', 'Construct', 'ConstructError', 'Container', 'Debugger', 'EmbeddedBitStruct', 'Enum', 'ExprAdapter', 'FieldError', 'Flag', 'FlagsContainer', 'FlagsEnum', 'Bytes', 'FormatField', 'GreedyRange', 'HexDump', 'HexString', 'If', 'IfThenElse', 'Indexing', 'LazyBound', 'LazyContainer', 'ListContainer', 'Mapping', 'MappingError', 'Nibble', 'NoneOf', 'Octet', 'OnDemand', 'OnDemandPointer', 'OneOf', 'Optional', 'OverwriteError', 'Packer', 'Padding', 'PaddingError', 'PascalString', 'Pass', 'Peek', 'Pointer', 'PrefixedArray', 'Probe', 'Range', 'RangeError', 'Renamed', 'RepeatUntil', 'Select', 'SelectError', 'Sequence', 'SizeofError', 'Slicing', 'String', 'Struct', 'Subconstruct', 'Switch', 'SwitchError', 'SymmetricMapping', 'Terminated', 'TerminatedError', 'UnionError', 'Union', 'ValidationError', 'Validator', 'Computed', 'Byte', 'Bytes', 'Tunnel', 'Embedded', 'Const', 'ConstError', 'VarInt', 'StringError', 'Checksum', 'ByteSwapped', 'LazyStruct', 'Numpy', 'Adapter', 'SymmetricAdapter', 'Tunnel', 'Compressed', 'GreedyBytes', 'Prefixed', 'Padded', 'GreedyString', 'RawCopy', 'LazyRange', 'LazySequence', 'LazySequenceContainer', 'BitsInteger', 'BytesInteger', '__author__', '__version__','Restreamed', 'RestreamedBytesIO', 'Bytewise', 'LazyRangeContainer', 'BitsSwapped', 'RebufferedBytesIO','Rebuffered','version','version_string','lib','Seek','Tell','setglobalstringencoding','globalstringencoding','NamedTuple','ExprValidator','Filter','Hex','Error','ExplicitError','release_date','Rebuild','Check','len_','sum_','min_','max_','abs_','obj_','singleton','singletonfunction', 'this', 'Path','Path2','PathFunc','FocusedSeq','FocusedError','ExprSymmetricAdapter','True_','False_','BoundBytesIO','ProbeInto','Default', -- --] + ["Int%s%s%s" % (n,us,bln) for n in (8,16,32,64) for us in "us" for bln in "bln"] + ["Int24ub","Int24ul","Int24sb","Int24sl"] + ["Float%s%s" % (n,bl) for n in (32,64) for bl in "bl"] + ["Single","Double"] -+ 'AdaptationError', 'Alias', 'Aligned', 'AlignedStruct', 'Array', 'Bit', 'BitIntegerError', 'BitStruct', 'Bitwise', 'CString', 'Construct', 'ConstructError', 'Container', 'EmbeddedBitStruct', 'Enum', 'ExprAdapter', 'FieldError', 'Flag', 'FlagsContainer', 'FlagsEnum', 'Bytes', 'FormatField', 'GreedyRange', 'HexDump', 'HexString', 'If', 'IfThenElse', 'Indexing', 'LazyBound', 'LazyContainer', 'ListContainer', 'Mapping', 'MappingError', 'Nibble', 'NoneOf', 'Octet', 'OnDemand', 'OnDemandPointer', 'OneOf', 'Optional', 'OverwriteError', 'Packer', 'Padding', 'PaddingError', 'PascalString', 'Pass', 'Peek', 'Pointer', 'PrefixedArray', 'Range', 'RangeError', 'Renamed', 'RepeatUntil', 'Select', 'SelectError', 'Sequence', 'SizeofError', 'Slicing', 'String', 'Struct', 'Subconstruct', 'Switch', 'SwitchError', 'SymmetricMapping', 'Terminated', 'TerminatedError', 'UnionError', 'Union', 'ValidationError', 'Validator', 'Computed', 'Byte', 'Bytes', 'Tunnel', 'Embedded', 'Const', 'ConstError', 'VarInt', 'StringError', 'Checksum', 'ByteSwapped', 'LazyStruct', 'Numpy', 'Adapter', 'SymmetricAdapter', 'Tunnel', 'Compressed', 'GreedyBytes', 'Prefixed', 'Padded', 'GreedyString', 'RawCopy', 'LazyRange', 'LazySequence', 'LazySequenceContainer', 'BitsInteger', 'BytesInteger', '__author__', '__version__', 'Restreamed', 'RestreamedBytesIO', 'Bytewise', 'LazyRangeContainer', 'BitsSwapped', 'RebufferedBytesIO', 'Rebuffered', 'version', 'version_string', 'lib', 'Seek', 'Tell', 'setglobalstringencoding', 'globalstringencoding', 'NamedTuple', 'ExprValidator', 'Filter', 'Hex', 'Error', 'ExplicitError', 'release_date', 'Rebuild', 'Check', 'len_', 'sum_', 'min_', 'max_', 'abs_', 'obj_', 'singleton', 'singletonfunction', 'this', 'Path', 'Path2', 'PathFunc', 'FocusedSeq', 'FocusedError', 'ExprSymmetricAdapter', 'True_', 'False_', 'BoundBytesIO', 'Default', - -+] + ["Int%s%s%s" % (n, us, bln) for n in (8, 16, 32, 64) for us in "us" for bln in "bln"] + ["Int24ub", "Int24ul", "Int24sb", "Int24sl"] + ["Float%s%s" % (n, bl) for n in (32, 64) for bl in "bl"] + ["Single", "Double"] - -+try: -+ from construct.debug import Probe, Debugger, ProbeInto -+ __all__ = __all__ + ['Debugger', 'Probe', 'ProbeInto'] -+except ImportError: -+ pass