From 559a5f6f0167bda7385ab5367a22095e9f3e89a86aa3dc49023a53236b188aba Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 14 May 2023 19:51:10 +0000 Subject: [PATCH] Accepting request 1086794 from home:ojkastl_buildservice:Branch_devel_languages_python new package python-bincopy, required by pynitrokey OBS-URL: https://build.opensuse.org/request/show/1086794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bincopy?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + bincopy-17.14.5.tar.gz | 3 ++ python-bincopy.changes | 4 +++ python-bincopy.spec | 79 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bincopy-17.14.5.tar.gz create mode 100644 python-bincopy.changes create mode 100644 python-bincopy.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/bincopy-17.14.5.tar.gz b/bincopy-17.14.5.tar.gz new file mode 100644 index 0000000..bf06cae --- /dev/null +++ b/bincopy-17.14.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f4de7c37a3db7adcf3edc4833a223f3356d9bf08be72ec6e431c9f0acd29f18 +size 749113 diff --git a/python-bincopy.changes b/python-bincopy.changes new file mode 100644 index 0000000..04c20c7 --- /dev/null +++ b/python-bincopy.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..f9175b6 --- /dev/null +++ b/python-bincopy.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-bincopy +# +# Copyright (c) 2023 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-bincopy +Version: 17.14.5 +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-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module argparse_addons} +BuildRequires: %{python_module pyelftools} +BuildRequires: %{python_module humanfriendly} +# /SECTION +Requires: python-argparse_addons +Requires: python-humanfriendly +Requires: python-pyelftools +Requires: fdupes +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%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 + +%post +%python_install_alternative bincopy + +%postun +%python_uninstall_alternative bincopy + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/bincopy +%{python_sitelib}/bincopy* +%pycache_only %{python_sitelib}/__pycache__/* + +%changelog