From e655e58fbded1e32ead118b9952f6735c588060634d2eba287c52f5771a3bfb3 Mon Sep 17 00:00:00 2001 From: Matwey Kornilov Date: Thu, 29 Aug 2024 19:14:39 +0000 Subject: [PATCH] - version update to 0.8 * Use pyproject.toml and drop outdated Python support * Drop outdated Python versions from GitHub Actions * Initial support for gzip compressed BEAM files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybeam?expand=0&rev=36 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _multibuild | 3 ++ pybeam-0.7.tar.gz | 3 ++ pybeam-0.8.tar.gz | 3 ++ python-pybeam.changes | 114 ++++++++++++++++++++++++++++++++++++++++++ python-pybeam.spec | 90 +++++++++++++++++++++++++++++++++ 7 files changed, 237 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 pybeam-0.7.tar.gz create mode 100644 pybeam-0.8.tar.gz create mode 100644 python-pybeam.changes create mode 100644 python-pybeam.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/pybeam-0.7.tar.gz b/pybeam-0.7.tar.gz new file mode 100644 index 0000000..12e88e9 --- /dev/null +++ b/pybeam-0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc7a9c44b2b57fbdcd791d975dab369df3e3333011e6ac68b0ce74ea0fdc98bf +size 12263 diff --git a/pybeam-0.8.tar.gz b/pybeam-0.8.tar.gz new file mode 100644 index 0000000..4b7f4c1 --- /dev/null +++ b/pybeam-0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15c6e52e36e8d98dd9c07309ae3229190217cc4620faae0036e3ac1117baacb4 +size 10964 diff --git a/python-pybeam.changes b/python-pybeam.changes new file mode 100644 index 0000000..061e0ba --- /dev/null +++ b/python-pybeam.changes @@ -0,0 +1,114 @@ +------------------------------------------------------------------- +Thu Aug 29 12:06:21 UTC 2024 - pgajdos@suse.com + +- version update to 0.8 + * Use pyproject.toml and drop outdated Python support + * Drop outdated Python versions from GitHub Actions + * Initial support for gzip compressed BEAM files + +------------------------------------------------------------------- +Thu Nov 5 15:33:34 UTC 2020 - Matwey Kornilov + +- Version 0.7 +- Fix CInf parse +- Drop make_sphinx_optional.patch + +------------------------------------------------------------------- +Fri Feb 14 09:50:49 UTC 2020 - Matwey Kornilov + +- Version 0.6 + +------------------------------------------------------------------- +Wed Feb 12 16:47:55 UTC 2020 - Tomáš Chvátal + +- 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 + +- 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 + +- 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 + +- 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 + + diff --git a/python-pybeam.spec b/python-pybeam.spec new file mode 100644 index 0000000..655289b --- /dev/null +++ b/python-pybeam.spec @@ -0,0 +1,90 @@ +# +# spec file for package python-pybeam +# +# Copyright (c) 2024 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/ +# + + +%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.8 +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 pip} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-construct < 2.11 +Requires: python-construct >= 2.9 +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module construct < 2.11} +BuildRequires: %{python_module construct >= 2.9} +BuildRequires: %{python_module pybeam} +BuildRequires: %{python_module pytest} +%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 +%autosetup -p1 -n pybeam-%{version} + +%build +%if %{without test} +%pyproject_wheel +%endif + +%install +%if %{without test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +%pytest +%endif + +%if %{without test} +%files %{python_files} +%license LICENSE +%{python_sitelib}/pybeam +%{python_sitelib}/pybeam-*-info +%endif + +%changelog