Sync from SUSE:SLFO:Main python-pybeam revision 5956e33de114fe26ba4462ed024fe7e7

This commit is contained in:
Adrian Schröter 2024-05-03 22:01:39 +02:00
commit 0474917d1a
5 changed files with 224 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
pybeam-0.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

106
python-pybeam.changes Normal file
View File

@ -0,0 +1,106 @@
-------------------------------------------------------------------
Thu Nov 5 15:33:34 UTC 2020 - Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 0.7
- Fix CInf parse
- Drop make_sphinx_optional.patch
-------------------------------------------------------------------
Fri Feb 14 09:50:49 UTC 2020 - Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 0.6
-------------------------------------------------------------------
Wed Feb 12 16:47:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Remove doc conditional as it is never built due to always being
as a bcond_with
- Use unittest directly to avoid setup.py test deprecation
- Allow usage with construct 2.10
-------------------------------------------------------------------
Sun Dec 15 02:38:15 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Make Sphinx dependency optional (docs are not built by default),
add make_sphinx_optional.patch
- Use _multibuild for tests to reduce the build dependencies
and simplify bootstrap for e.g. rpmlint.
-------------------------------------------------------------------
Fri Jan 11 09:48:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix fdupes call
-------------------------------------------------------------------
Wed Dec 26 12:45:48 UTC 2018 - matwey.kornilov@gmail.com
- Version 0.5
- ported to construct 2.9.x
-------------------------------------------------------------------
Tue Dec 4 12:51:57 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Mon Mar 19 11:25:48 UTC 2018 - matwey.kornilov@gmail.com
- Version 0.4.1 (bsc#1089748):
- Add support for AtU8 chuck (fix Erlang 20.0 beam file format)
-------------------------------------------------------------------
Thu Aug 24 13:50:13 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Fri Jan 20 19:35:02 UTC 2017 - matwey.kornilov@gmail.com
- Version 0.4:
- ported to construct 2.8.x
-------------------------------------------------------------------
Wed Jan 18 09:11:57 UTC 2017 - matwey.kornilov@gmail.com
- Update Source url
-------------------------------------------------------------------
Sun Jan 8 14:14:00 UTC 2017 - matwey.kornilov@gmail.com
- Only consruct 2.5.x is supported by pybeam 0.3.x
-------------------------------------------------------------------
Sat May 31 11:27:58 UTC 2014 - matwey.kornilov@gmail.com
- Version 0.3.2:
- add support for Erlang 17.0 (maps)
-------------------------------------------------------------------
Sat Mar 29 12:53:23 UTC 2014 - matwey.kornilov@gmail.com
- Verision 0.3.1:
- fix parsing lists with not-null tail
- fix parsing strings ( six > 1.4.0 is required to support both
python 2 and python 3 )
-------------------------------------------------------------------
Thu Feb 20 16:40:23 UTC 2014 - matwey.kornilov@gmail.com
- Version 0.3:
- python 3.3 support
- minor fixes and add more unit-tests
- Code LitT FunT chunk now understood
-------------------------------------------------------------------
Mon May 6 14:05:27 UTC 2013 - matwey.kornilov@gmail.com
- Version 0.2:
- fixed floating point parsing
- fixed Atom lists indexation
-------------------------------------------------------------------
Wed May 1 15:57:09 UTC 2013 - matwey.kornilov@gmail.com
- Initial version

89
python-pybeam.spec Normal file
View File

@ -0,0 +1,89 @@
#
# spec file for package python
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%endif
%if "%{flavor}" == ""
%bcond_with test
%endif
Name: python-pybeam%{?psuffix}
Version: 0.7
Release: 0
Summary: Python module to parse Erlang BEAM files
License: MIT
Group: Development/Languages/Python
URL: https://github.com/matwey/pybeam
Source: https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-construct < 2.11
Requires: python-construct >= 2.9
Requires: python-six >= 1.4.0
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module construct < 2.11}
BuildRequires: %{python_module construct >= 2.9}
BuildRequires: %{python_module six}
%endif
%python_subpackages
%description
Python module to parse Erlang BEAM files, now it is able to read
imports, exports, atoms, as well as compile info and attribute
chunks in pretty python format.
%package -n %{name}-doc
Summary: API Documentation for %{name}
Group: Documentation/HTML
%description -n %{name}-doc
Python module to parse Erlang BEAM files, now it is able to read
imports, exports, atoms, as well as compile info and attribute
chunks in pretty python format.
%prep
%setup -q -n pybeam-%{version}
%build
%if %{without test}
%python_build
%endif
%install
%if %{without test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%python_exec -m unittest discover
%endif
%if %{without test}
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%endif
%changelog