diff --git a/cp210x-program-0-4.tar.gz b/cp210x-program-0-4.tar.gz deleted file mode 100644 index 022c327..0000000 --- a/cp210x-program-0-4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccd5c0cf250653c0fbd07c0432d924e79c221eb6d9508c46c00f9228de3fb83b -size 26083 diff --git a/cp210x-program-0.4.1.tar.gz b/cp210x-program-0.4.1.tar.gz new file mode 100644 index 0000000..3243b83 --- /dev/null +++ b/cp210x-program-0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a642314c8b6409a67e08a549bf2e884cd550f386c17ae31a1fe14467ab615261 +size 97614 diff --git a/cp210x-program.changes b/cp210x-program.changes index 72aaedd..d97c3c4 100644 --- a/cp210x-program.changes +++ b/cp210x-program.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Sun Aug 27 09:38:29 UTC 2023 - Martin Hauke + +- Update to new upstream release 0.4.1 + * Always write output files with newlines. + * test binary mode for stdout stream. + * Doc: initial readme updates and conversion to rst format. + * FIX error: 'TypeError: can only concatenate str (not "bytes") + to str'. + * cp210x: Provide baud rate table as bytearray to pyusb + * cp210x: Convert return of pyusb.ctrl_transfer to bytearray + * fix format of sample ini files + + get rid of duplicate line, which made ConfigParser throw an + exception + + get rid of leading spaces, which made ConfigParser interpret + those entries as being additional lines in a multi-line value + for 120000 entry + * ini: Allow inline comments + ------------------------------------------------------------------- Mon Oct 26 06:54:05 UTC 2020 - Martin Hauke diff --git a/cp210x-program.spec b/cp210x-program.spec index 5f884bc..30c5b69 100644 --- a/cp210x-program.spec +++ b/cp210x-program.spec @@ -1,7 +1,8 @@ # # spec file for package cp210x-program # -# Copyright (c) 2020, Martin Hauke +# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2020-2023, Martin Hauke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,20 +16,21 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define realver 0-4 + Name: cp210x-program -Version: 0.4 +Version: 0.4.1 Release: 0 Summary: EEPROM tool for Silabs CP210x USB-Serial adapters License: LGPL-2.1-only Group: Hardware/Other URL: http://cp210x-program.sourceforge.net/ #Git-Clone: https://github.com/VCTLabs/cp210x-program.git -Source: https://github.com/VCTLabs/cp210x-program/archive/%{name}-%{realver}.tar.gz +Source: https://github.com/VCTLabs/cp210x-program/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3-setuptools +BuildRequires: python3-pytest BuildRequires: python3-pyusb +BuildRequires: python3-setuptools Requires: python3-pyusb BuildArch: noarch @@ -38,7 +40,7 @@ FTDIs and PL2303). The CP210x has a EEPROM on the chip which can be programmed with this tool via USB. %prep -%setup -q -n %{name}-%{name}-%{realver} +%setup -q %build %python3_build @@ -46,13 +48,11 @@ with this tool via USB. %install %python3_install %fdupes %{buildroot}/%{python3_sitelib} - -%check -./test.sh +mv %{buildroot}/%{_bindir}/cp210x-program.py %{buildroot}/%{_bindir}/cp210x-program %files %license LICENSE -%doc README doc/cp210x.txt +%doc README.rst doc/cp210x.txt %{_bindir}/cp210x-program %{python3_sitelib}/cp210x*