commit ece3796cfdf66e7a68f7ba2e496e2037f61476cc412499066c41b7c4cd810100 Author: Markéta Machová Date: Tue Jun 17 07:57:55 2025 +0000 - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bincopy?expand=0&rev=7 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/bincopy-20.0.0.tar.gz b/bincopy-20.0.0.tar.gz new file mode 100644 index 0000000..1954ac0 --- /dev/null +++ b/bincopy-20.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14cfb4cf97227bf2b1f5b85623df4c767ad219afdc9fe0732dd2cfdff446afdf +size 750646 diff --git a/bincopy-20.1.0.tar.gz b/bincopy-20.1.0.tar.gz new file mode 100644 index 0000000..1fea1ea --- /dev/null +++ b/bincopy-20.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8a4e8cb82edafbbe367415337d1926c7d8c455617e43bd4b145653772b9b965 +size 750857 diff --git a/python-bincopy.changes b/python-bincopy.changes new file mode 100644 index 0000000..59eeac9 --- /dev/null +++ b/python-bincopy.changes @@ -0,0 +1,31 @@ +------------------------------------------------------------------- +Tue Jun 17 07:57:28 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Tue Jan 28 07:27:03 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 20.1.0 + * Upgrade workflow python versions + * Upgrade dependency actions + * Upgrade python version trove classifiers + * Add `BinFile.as_microchip_hex` + * Version 20.1.0. + * Fix publish? + +------------------------------------------------------------------- +Sat Dec 2 16:47:49 UTC 2023 - Dirk Müller + +- update to 20.0.0: + * Fix chunk merging for work size > 1 + * Simply chunk overlap check + * Fixup: consider word size when merging chunks + * Add tests for padding + * Make chunk padding word sized + * fix elf + +------------------------------------------------------------------- +Fri May 12 12:26:01 UTC 2023 - Johannes Kastl + +- new package python-bincopy, required by pynitrokey diff --git a/python-bincopy.spec b/python-bincopy.spec new file mode 100644 index 0000000..e515abf --- /dev/null +++ b/python-bincopy.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-bincopy +# +# 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/ +# + + +%bcond_without libalternatives +%{?sle15_python_module_pythons} +Name: python-bincopy +Version: 20.1.0 +Release: 0 +Summary: Mangling of various file formats that conveys binary information +License: MIT +URL: https://github.com/eerimoq/bincopy +Source: https://files.pythonhosted.org/packages/source/b/bincopy/bincopy-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: alts +BuildRequires: python-rpm-macros +Requires: alts +Requires: fdupes +Requires: python-argparse_addons +Requires: python-humanfriendly +Requires: python-pyelftools +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module argparse_addons} +BuildRequires: %{python_module humanfriendly} +BuildRequires: %{python_module pyelftools} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX, TI-TXT, Verilog VMEM, ELF and binary files). + +Project homepage: https://github.com/eerimoq/bincopy + +Documentation: https://bincopy.readthedocs.io + +%prep +%setup -q -n bincopy-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/bincopy + +%check +%pytest + +%pre +%python_libalternatives_reset_alternative bincopy + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/bincopy +%{python_sitelib}/bincopy* +%pycache_only %{python_sitelib}/__pycache__/* + +%changelog