From e484184c78b2d27ce669c1cfecd53bd4b27d9e2bfdeb53df7052aba3ff494ba6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 4 May 2025 08:57:25 +0000 Subject: [PATCH] - update to 1.0.6: * ci: release workflows * ci: add GitHub Actions as trusted publisher for PyPi * ci: azure-pipelines OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybcj?expand=0&rev=9 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + pybcj-1.0.2.tar.gz | 3 ++ pybcj-1.0.3.tar.gz | 3 ++ pybcj-1.0.6.tar.gz | 3 ++ python-pybcj.changes | 30 ++++++++++++++++++ python-pybcj.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pybcj-1.0.2.tar.gz create mode 100644 pybcj-1.0.3.tar.gz create mode 100644 pybcj-1.0.6.tar.gz create mode 100644 python-pybcj.changes create mode 100644 python-pybcj.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/pybcj-1.0.2.tar.gz b/pybcj-1.0.2.tar.gz new file mode 100644 index 0000000..f2eb861 --- /dev/null +++ b/pybcj-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7f5bef7f47723c53420e377bc64d2553843bee8bcac5f0ad076ab1524780018 +size 2111002 diff --git a/pybcj-1.0.3.tar.gz b/pybcj-1.0.3.tar.gz new file mode 100644 index 0000000..03c3585 --- /dev/null +++ b/pybcj-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8873637f0be00ceaa372d0fb81693604b4bbc8decdb2b1ae5f9b84d196788d9 +size 2111256 diff --git a/pybcj-1.0.6.tar.gz b/pybcj-1.0.6.tar.gz new file mode 100644 index 0000000..1550f59 --- /dev/null +++ b/pybcj-1.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70bbe2dc185993351955bfe8f61395038f96f5de92bb3a436acb01505781f8f2 +size 2112413 diff --git a/python-pybcj.changes b/python-pybcj.changes new file mode 100644 index 0000000..e928e2d --- /dev/null +++ b/python-pybcj.changes @@ -0,0 +1,30 @@ +------------------------------------------------------------------- +Sun May 4 08:57:07 UTC 2025 - Dirk Müller + +- update to 1.0.6: + * ci: release workflows + * ci: add GitHub Actions as trusted publisher for PyPi + * ci: azure-pipelines + +------------------------------------------------------------------- +Wed Jan 22 14:49:37 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.0.3 + * Support python 3.13 + +------------------------------------------------------------------- +Thu Dec 14 21:39:00 UTC 2023 - Dirk Müller + +- update to 1.0.2: + * Support python 3.12 + +------------------------------------------------------------------- +Tue Jun 27 12:51:55 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Dec 21 10:53:50 UTC 2022 - Ben Greiner + +- Initial specfile for v1.0.1 +- Required by py7zr diff --git a/python-pybcj.spec b/python-pybcj.spec new file mode 100644 index 0000000..9d1a965 --- /dev/null +++ b/python-pybcj.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-pybcj +# +# Copyright (c) 2025 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/ +# + + +%define skip_python2 1 +%{?sle15_python_module_pythons} +Name: python-pybcj +Version: 1.0.6 +Release: 0 +Summary: A bcj filter library +License: LGPL-2.1-or-later +URL: https://codeberg.org/miurahr/pybcj +Source: https://files.pythonhosted.org/packages/source/p/pybcj/pybcj-%{version}.tar.gz +BuildRequires: %{python_module devel >= 3.6} +BuildRequires: %{python_module importlib_metadata if %python-base < 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 58.0} +BuildRequires: %{python_module setuptools_scm >= 6.0.1} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: (python-importlib_metadata if python-base < 3.8) +# SECTION test +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +In data compression, BCJ, short for Branch-Call-Jump, refers to a technique that +improves the compression of machine code of executable binaries by replacing +relative branch addresses with absolute ones. This allows a LZMA compressor to +identify duplicate targets and archive higher compression rate. + +BCJ is used in 7-zip compression utility as default filter for executable binaries. + +pybcj is a python bindings with BCJ implementation by C language. The C codes are +derived from p7zip, portable 7-zip implementation. pybcj support Intel/Amd +x86/x86_64, Arm/Arm64, ArmThumb, Sparc, PPC, and IA64. + +%prep +%setup -q -n pybcj-%{version} + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%doc Changelog.rst README.rst +%license LICENSE +%{python_sitearch}/bcj +%{python_sitearch}/pybcj-%{version}.dist-info + +%changelog