Hello community, here is the log from the commit of package stlink for openSUSE:Factory checked in at 2020-09-01 20:07:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/stlink (Old) and /work/SRC/openSUSE:Factory/.stlink.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "stlink" Tue Sep 1 20:07:52 2020 rev:7 rq:830454 version:1.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/stlink/stlink.changes 2020-02-04 19:54:37.865366317 +0100 +++ /work/SRC/openSUSE:Factory/.stlink.new.3399/stlink.changes 2020-09-01 20:09:04.084640111 +0200 @@ -1,0 +2,56 @@ +Sat Aug 29 09:34:35 UTC 2020 - Dmitry Roshchin <[email protected]> + +- Fix download link + +------------------------------------------------------------------- +Sat Aug 1 19:30:48 UTC 2020 - Stefan BrĂ¼ns <[email protected]> + +- Update to 1.6.1: + + New Features: + * Basic compatibility for STLink-v3 programmer (#271, #863, #954) + Added support for JTAG command API v2 & distinguish protocol versions v1 and v2 + Compatibility with the STLink-v3 firmware which dropped support for the previous API v1 + As of firmware version J11 the ST-LINK-V1 programmer supports API v2 commands as well + * Display programmer serial when no target is connected (#432, #933, #943) + * Added connect under reset to stlink_open_usb( ) (#577, #963) + * Support for STM32L1, SM32L4 option bytes write (#596, #844, #847) + * Added CMAKEFLAGS and install target (#804, #935) + * Support for STM32G4 (#822) + * Added aliased SRAM2 region in the L496 memory map (#824) + * Improved support for STM32G0 (#825, #850, #856, #857) + * Added postinst script with 'depmod -a' for 'make package' (#845, #931) + * Calculate checksums for flash operations (#862, #924) + * Adjust the JTAG/SWD frequency via cmdline option (#893, #953) + * Added usb PID and udev rules for STlink v2.1 found on Nucleo-L432KC and Nucleo-L552ze boards (#900) + * STM32G0/G4 improvements (#910) + Enable mass erase with a flash programming check + Handle G4 Cat3 devices with configurable dual bank flash by using a helper + + For more details, see included CHANGELOG.md +- Rebase change-desktopfile-category.patch +- Add 0001-Fix-install-path-of-stlink-gui.ui-file.patch +- Clean up spec file + +------------------------------------------------------------------- +Sun Mar 15 09:22:42 UTC 2020 - Paolo Stivanin <[email protected]> + +- Update to 1.6.0: + Added O_BINARY option to open file (#753) + Added preliminary support for some STM32G0 chips (#759, #760) + Added support for mass erasing second bank on STM32F10x_XL (#767) + Added call to clear PG bit after writing to flash (#773) + Added howto for sending NRST signal through GDB (#776) + Added support to write option bytes for the STM32G0 (#778) + Added simple read/write support for STM32WB55 chips (#786) + Added STLink V3SET VID:PIDs to the udev rules (#789) + Support for "STM32+Audio" v2-1 firmware (#790) + Initial support for STM32L41X (#799) + Build for Windows under Debian/Ubuntu (#802) + Allow for 64 bytes serials (#809) + Added support to read and write option bytes for STM32F2 series (Orie22) + Added full support for STLINK CHIP ID L4RX (Brad Natelborg) + Added support to write option bytes to STM32F4 devices (Davey Struijk) + Various bug fixes + Various translations and docs update +- Remove fix-deprecated-libusb-function.patch + +------------------------------------------------------------------- Old: ---- fix-deprecated-libusb-function.patch stlink-1.5.0.tar.gz New: ---- 0001-Fix-install-path-of-stlink-gui.ui-file.patch change-desktopfile-category.patch stlink-1.6.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ stlink.spec ++++++ --- /var/tmp/diff_new_pack.E2Tt4L/_old 2020-09-01 20:09:04.932640507 +0200 +++ /var/tmp/diff_new_pack.E2Tt4L/_new 2020-09-01 20:09:04.932640507 +0200 @@ -16,16 +16,19 @@ # +%define sover 1 + Name: stlink -Version: 1.5.0 +Version: 1.6.1 Release: 0 Summary: STM32 discovery line linux programmer License: BSD-3-Clause Group: Development/Tools/Debuggers -URL: https://github.com/texane/stlink -Source0: https://github.com/texane/stlink/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-deprecated-libusb-function.patch -Patch0: https://github.com/texane/stlink/commit/aaf8e9207581.patch#/fix-deprecated-libusb-function.patch +URL: https://github.com/stlink-org/stlink/ +Source0: https://github.com/stlink-org/stlink/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: change-desktopfile-category.patch +# PATCH-FIX-UPSTREAM +Patch1: 0001-Fix-install-path-of-stlink-gui.ui-file.patch BuildRequires: cmake BuildRequires: gtk3-devel BuildRequires: pkg-config @@ -33,7 +36,6 @@ BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(udev) Requires: udev -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. @@ -46,18 +48,17 @@ %description gui STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. -%package -n libstlink-shared1 +%package -n libstlink%{sover} Summary: Shared library for stlink Group: Development/Tools/Debuggers -%description -n libstlink-shared1 +%description -n libstlink%{sover} STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. %package devel Summary: Development files for stlink package -#Requires: %%{name} = %%{version} Group: Development/Tools/Debuggers -Requires: libstlink-shared1 = %{version} +Requires: libstlink%{sover} = %{version} %description devel STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers. @@ -65,27 +66,26 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake -DSTLINK_UDEV_RULES_DIR="%_udevrulesdir" \ -DCMAKE_EXE_LINKER_FLAGS="-pie" -make %{?_smp_mflags} +%cmake_build %install %cmake_install # remove static lib sdi rm -f %{buildroot}%{_libdir}/*.a -install -d %{buildroot}/%{_udevrulesdir}/ -install -D -m 0644 etc/udev/rules.d/49-stlink*.rules %{buildroot}/%{_udevrulesdir}/ -%post -n libstlink-shared1 -p /sbin/ldconfig +%post -n libstlink%{sover} -p /sbin/ldconfig -%postun -n libstlink-shared1 -p /sbin/ldconfig +%postun -n libstlink%{sover} -p /sbin/ldconfig %files -%defattr(-,root,root) -%doc LICENSE README.md doc/app-example doc/tested-boards.md doc/tutorial.md +%doc README.md CHANGELOG.md doc/devices_boards.md doc/tutorial.md doc/flashloaders.md +%license LICENSE.md %{_bindir}/st-* %{_udevrulesdir}/49-stlink* %config %{_sysconfdir}/modprobe.d/stlink_v1.conf @@ -93,28 +93,20 @@ %{_mandir}/man1/st-info.1* %{_mandir}/man1/st-util.1* -%files -n libstlink-shared1 -%{_libdir}/libstlink-shared.so.1* +%files -n libstlink%{sover} +%{_libdir}/libstlink.so.1* %files gui -%defattr(-,root,root) %{_bindir}/stlink-gui %{_datadir}/stlink/ +%{_datadir}/applications/stlink-gui.desktop +%{_datadir}/icons/hicolor/scalable/apps/stlink-gui.svg %files devel %dir %{_includedir}/stlink %{_includedir}/stlink.h -%{_includedir}/stlink/backend.h -%{_includedir}/stlink/chipid.h -%{_includedir}/stlink/commands.h -%{_includedir}/stlink/flash_loader.h -%{_includedir}/stlink/logging.h -%{_includedir}/stlink/mmap.h -%{_includedir}/stlink/reg.h -%{_includedir}/stlink/sg.h -%{_includedir}/stlink/usb.h -%{_includedir}/stlink/version.h -%{_libdir}/libstlink-shared.so -%{_libdir}/pkgconfig/stlink.pc +%{_includedir}/stm32.h +%{_includedir}/stlink/*.h +%{_libdir}/libstlink.so %changelog ++++++ 0001-Fix-install-path-of-stlink-gui.ui-file.patch ++++++ >From 9b9a6ee19cddf049794935632285096279be7997 Mon Sep 17 00:00:00 2001 From: StefanBruens <[email protected]> Date: Sat, 1 Aug 2020 21:26:12 +0200 Subject: [PATCH] Fix install path of stlink-gui.ui file --- src/stlink-gui/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stlink-gui/CMakeLists.txt b/src/stlink-gui/CMakeLists.txt index 8c36e5a1..927111e7 100644 --- a/src/stlink-gui/CMakeLists.txt +++ b/src/stlink-gui/CMakeLists.txt @@ -30,9 +30,9 @@ if (NOT WIN32) ## stlink-gui add_executable(stlink-gui ${GUI_SOURCES}) - install(FILES stlink-gui.ui DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(FILES stlink-gui.ui DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}) set_target_properties(stlink-gui PROPERTIES - COMPILE_DEFINITIONS STLINK_UI_DIR="${CMAKE_INSTALL_PREFIX}/bin") + COMPILE_DEFINITIONS STLINK_UI_DIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}/${PROJECT_NAME}") target_link_libraries(stlink-gui ${STLINK_LIB_SHARED} ${SSP_LIB} ${GTK3_LDFLAGS}) install(TARGETS stlink-gui DESTINATION ${CMAKE_INSTALL_BINDIR}) >From 2016590502558caa98c21abad2ce83c5f4804a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <[email protected]> Date: Mon, 1 Jun 2020 00:20:26 +0200 Subject: [PATCH] doc/man: Fix installation directory On Unix-like operating systems man pages are commonly installed to `/usr/share/man` not `/usr/share/stlink/man`. --- doc/man/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/man/CMakeLists.txt b/doc/man/CMakeLists.txt index 23da9e15..9b3c5076 100644 --- a/doc/man/CMakeLists.txt +++ b/doc/man/CMakeLists.txt @@ -30,7 +30,7 @@ foreach (manpage ${MANPAGES}) endif () if (f AND NOT WIN32) - install(FILES ${f} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/man/man1) + install(FILES ${f} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man1) unset(f) endif () endforeach () >From e95b5ffcfe38c917a1f421c2257e58a3d9b2e8cc Mon Sep 17 00:00:00 2001 From: Vasiliy Glazov <[email protected]> Date: Mon, 1 Jun 2020 08:44:11 +0300 Subject: [PATCH] Fix installation path for desktop-file and icons. This change fixes installation path for desktop-file and icons. They should be installed directly to ``` /usr/share/applications/ /usr/share/icons/hicolor/scalable/apps/ ``` --- src/stlink-gui/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stlink-gui/CMakeLists.txt b/src/stlink-gui/CMakeLists.txt index 8c36e5a1..cc68509f 100644 --- a/src/stlink-gui/CMakeLists.txt +++ b/src/stlink-gui/CMakeLists.txt @@ -13,11 +13,11 @@ if (NOT WIN32) # Install desktop application entry install(FILES stlink-gui.desktop - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/applications) + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications) # Install icons install(FILES icons/stlink-gui.svg - DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/icons/hicolor/scalable/apps) + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps) set(GUI_SOURCES gui.c gui.h) ++++++ change-desktopfile-category.patch ++++++ --- a/src/stlink-gui/stlink-gui.desktop 2020-03-15 10:38:10.799548436 +0100 +++ b/src/stlink-gui/stlink-gui.desktop 2020-03-15 10:38:23.375569348 +0100 @@ -6,4 +6,4 @@ Icon=stlink-gui Terminal=false Type=Application -Categories=Development;Electronics; +Categories=Development;Debugger; ++++++ stlink-1.5.0.tar.gz -> stlink-1.6.1.tar.gz ++++++ ++++ 26703 lines of diff (skipped)
