15
0

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
This commit is contained in:
2023-05-14 19:51:10 +00:00
committed by Git OBS Bridge
commit 559a5f6f01
5 changed files with 110 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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
bincopy-17.14.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f4de7c37a3db7adcf3edc4833a223f3356d9bf08be72ec6e431c9f0acd29f18
size 749113

4
python-bincopy.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri May 12 12:26:01 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- new package python-bincopy, required by pynitrokey

79
python-bincopy.spec Normal file
View File

@@ -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