14
0
forked from pool/python-spsdk
Files
python-spsdk/python-spsdk.spec

151 lines
5.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-spsdk
#
# 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-spsdk
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Version: 3.0.0
Release: 0
Summary: Unified, reliable and easy to use SW library working across NXP MCU portfolio
License: BSD-3-Clause
URL: https://github.com/nxp-mcuxpresso/spsdk
Source: https://files.pythonhosted.org/packages/source/s/spsdk/spsdk-%{version}.tar.gz
BuildRequires: %{python_module flit}
BuildRequires: %{python_module pip}
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-asn1crypto
Requires: python-bincopy
Requires: python-bitstring
Requires: python-click
Requires: python-click-command-tree
Requires: python-click-option-group
Requires: python-colorama
Requires: python-crcmod
Requires: python-cryptography
Requires: python-deepmerge
Requires: python-fastjsonschema
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-filelock
Requires: python-hexdump
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-importlib-metadata
Requires: python-libusbsio
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-libuuu
Requires: python-oscrypto
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-packaging
Requires: python-platformdirs
Requires: python-prettytable
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-pyasn1
Requires: python-pyserial
Requires: python-requests
Requires: python-ruamel.yaml
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-setuptools
Requires: python-setuptools_scm
Requires: python-sly
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-spsdk-mcu-link
Requires: python-spsdk-pyocd
Requires: python-typing-extensions
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
Requires: python-x690
# Removed dependencies
# Requires: python-pyocd-pemicro
# dependency no longer required due to Patch0
# Requires: python-pypemicro
BuildArch: noarch
%python_subpackages
%description
Secure Provisioning SDK (SPSDK) is unified, reliable and easy to use SW library working across NXP MCU portfolio providing strong foundation from quick customer prototyping up to production deployment.
%prep
%autosetup -p1 -n spsdk-%{version}
%build
%pyproject_wheel
find . -type f -name README.md -exec dos2unix {} +
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/blhost
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
%python_clone -a %{buildroot}%{_bindir}/el2go-host
%python_clone -a %{buildroot}%{_bindir}/lpcprog
%python_clone -a %{buildroot}%{_bindir}/nxpdice
%python_clone -a %{buildroot}%{_bindir}/nxpfuses
%python_clone -a %{buildroot}%{_bindir}/nxpshe
%python_clone -a %{buildroot}%{_bindir}/nxpuuu
%python_clone -a %{buildroot}%{_bindir}/nxpcrypto
%python_clone -a %{buildroot}%{_bindir}/nxpdebugmbox
%python_clone -a %{buildroot}%{_bindir}/nxpdevhsm
%python_clone -a %{buildroot}%{_bindir}/nxpdevscan
%python_clone -a %{buildroot}%{_bindir}/nxpele
%python_clone -a %{buildroot}%{_bindir}/nxpimage
%python_clone -a %{buildroot}%{_bindir}/pfr
%python_clone -a %{buildroot}%{_bindir}/sdphost
%python_clone -a %{buildroot}%{_bindir}/sdpshost
%python_clone -a %{buildroot}%{_bindir}/shadowregs
%python_clone -a %{buildroot}%{_bindir}/spsdk
%python_clone -a %{buildroot}%{_bindir}/dk6prog
%python_clone -a %{buildroot}%{_bindir}/nxpmemcfg
%python_clone -a %{buildroot}%{_bindir}/nxpwpc
# fix line endings
%python_expand find %{buildroot}%{$python_sitelib} -type f -exec dos2unix {} +
# remove shebangs
%python_expand find %{buildroot}%{$python_sitelib} -iname "*.py" -exec sed -i '1{/env python/d;}' {} +
# compile all here to avoid python-bytecode-inconsistent-mtime
%python_compileall
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# remove unneccesary *.c and *.bin files
%python_expand rm -vf %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.c %{buildroot}%{$python_sitelib}/spsdk/data/cpu_data/*.bin
%pre
%python_libalternatives_reset_alternative blhost
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/spsdk/
%{python_sitelib}/spsdk-%{version}.dist-info/
%python_alternative %{_bindir}/blhost
- removed patch 'python-spsdk-remove_pypemicro.patch since pemicro has been moved into a plugin in 2.2.0 - Update to 3.0.0 * New features: - el2go-host: - check UUID fuse index - ifr: - move into pfr application - nxpcrypto: - allow adding image key into existing PKI tree - remove nxpcertgen application (all functionality is now available in nxpcrypto application) - consolidate options -k/--private-key and -sp/--signature-provider replace with option -s/--signer - nxpdebugmbox: - move commands to separated groups with clearer organization - move parameter --family from the root command to individual command groups - derive test address from the family parameter - nxpdevhsm: - require oemRandomShare when oemEncMasterShare is defined - add new format for sbfile for mcxa family devices with secure installer/extended bootloader - nxpimage: - generate fuse script when merging signed image - add unicode characters for better BinaryImage visualization - remove the deprecated 'image_type' key in ahab configuration and replace by 'target_memory' - remove input_binary and base_address parameters from bee - rename merge commands in bootable-image and binary-image to export - remove 'mainCertChainId' key in cert-block configuration by 'mainRootCertId' - replace hab export /parse commands with unified configuration approach - implement SB3.1 data compression - add parser of SB3.1 - consolidate all keys for data of SB3.1 load command into one - simplify load command configuration OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spsdk?expand=0&rev=18
2025-06-25 04:03:23 +00:00
%python_alternative %{_bindir}/el2go-host
%python_alternative %{_bindir}/lpcprog
%python_alternative %{_bindir}/nxpdice
%python_alternative %{_bindir}/nxpfuses
%python_alternative %{_bindir}/nxpshe
%python_alternative %{_bindir}/nxpuuu
%python_alternative %{_bindir}/nxpcrypto
%python_alternative %{_bindir}/nxpdebugmbox
%python_alternative %{_bindir}/nxpdevhsm
%python_alternative %{_bindir}/nxpdevscan
%python_alternative %{_bindir}/nxpele
%python_alternative %{_bindir}/nxpimage
%python_alternative %{_bindir}/pfr
%python_alternative %{_bindir}/sdphost
%python_alternative %{_bindir}/sdpshost
%python_alternative %{_bindir}/shadowregs
%python_alternative %{_bindir}/spsdk
%python_alternative %{_bindir}/dk6prog
%python_alternative %{_bindir}/nxpmemcfg
%python_alternative %{_bindir}/nxpwpc
%changelog