forked from pool/python-nkdfu
		
	Accepting request 1086783 from home:ojkastl_buildservice:Branch_devel_languages_python
new package python-nkdfu, required by pynitrokey OBS-URL: https://build.opensuse.org/request/show/1086783 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nkdfu?expand=0&rev=1
This commit is contained in:
		
							
								
								
									
										23
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
										Normal 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
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
.osc
 | 
			
		||||
							
								
								
									
										3
									
								
								_service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								_service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
<services>
 | 
			
		||||
  <service name="download_files" mode="disabled"/>
 | 
			
		||||
</services>
 | 
			
		||||
							
								
								
									
										3
									
								
								nkdfu-0.2.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								nkdfu-0.2.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
version https://git-lfs.github.com/spec/v1
 | 
			
		||||
oid sha256:f25f75ddd382c47285b6943cde9f51577b1496ed284f93d58b5e054ae609f5f8
 | 
			
		||||
size 16700
 | 
			
		||||
							
								
								
									
										4
									
								
								python-nkdfu.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								python-nkdfu.changes
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Thu May 11 19:42:03 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
 | 
			
		||||
 | 
			
		||||
- new package python-nkdfu, required by pynitrokey
 | 
			
		||||
							
								
								
									
										67
									
								
								python-nkdfu.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								python-nkdfu.spec
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,67 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package python-nkdfu
 | 
			
		||||
#
 | 
			
		||||
# 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-nkdfu
 | 
			
		||||
Version:        0.2
 | 
			
		||||
Release:        0
 | 
			
		||||
Summary:        DFU tool for updating Nitrokeys' firmware
 | 
			
		||||
License:        GPL-2.0
 | 
			
		||||
URL:            https://github.com/Nitrokey/nkdfu
 | 
			
		||||
Source:         https://files.pythonhosted.org/packages/source/n/nkdfu/nkdfu-0.2.tar.gz
 | 
			
		||||
BuildRequires:  python-rpm-macros
 | 
			
		||||
BuildRequires:  %{python_module flit}
 | 
			
		||||
BuildRequires:  %{python_module pip}
 | 
			
		||||
BuildRequires:  %{python_module setuptools}
 | 
			
		||||
BuildRequires:  %{python_module wheel}
 | 
			
		||||
BuildRequires:  fdupes
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
Requires(post): update-alternatives
 | 
			
		||||
Requires(postun): update-alternatives
 | 
			
		||||
%python_subpackages
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
nkdfu is a Python DFU tool for updating Nitrokeys' firmware. Currently supports Nitrokey Pro only.
 | 
			
		||||
Based on python-dfu project, which brings implementation of USB DFU 1.1 spec.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup -q -n nkdfu-%{version}
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
%pyproject_wheel
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
%pyproject_install
 | 
			
		||||
%python_clone -a %{buildroot}%{_bindir}/nkdfu
 | 
			
		||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
			
		||||
 | 
			
		||||
# there are no checks available upstream
 | 
			
		||||
 | 
			
		||||
%post
 | 
			
		||||
%python_install_alternative nkdfu
 | 
			
		||||
 | 
			
		||||
%postun
 | 
			
		||||
%python_uninstall_alternative nkdfu
 | 
			
		||||
 | 
			
		||||
%files %{python_files}
 | 
			
		||||
%doc README.md
 | 
			
		||||
%license LICENSE
 | 
			
		||||
%python_alternative %{_bindir}/nkdfu
 | 
			
		||||
%{python_sitelib}/*
 | 
			
		||||
 | 
			
		||||
%changelog
 | 
			
		||||
		Reference in New Issue
	
	Block a user