Fix Source0 URL fragment for consistent tarball naming
Some checks failed
Build RPMs / build (sonic-win.spec) (push) Has been cancelled
Build RPMs / build (sonic-interface-libraries.spec) (push) Has been cancelled
Build RPMs / build (sonic-workspace.spec) (push) Failing after 10s

GitHub archive URLs without a filename fragment download as just the
version number (e.g. 6.6.4.tar.gz), which confuses %setup when it tries
to cd into the expected %{name}-%{version} directory. Add
#/%{name}-%{version}.tar.gz suffix to ensure correct local filenames
matching the extracted directory names.
This commit is contained in:
Anders da Silva Rytter Hansen 2026-05-27 14:43:16 -03:00
commit f8372d9df4
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ Summary: Foundation of the SonicDE user interface (fork of libplasma)
License: LGPL-2.0-or-later
URL: https://github.com/Sonic-DE/sonic-interface-libraries
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
%global plasma_version %(echo %{version} | cut -d. -f1-3)

View file

@ -8,7 +8,7 @@ Summary: Core workspace components for SonicDE (fork of plasma-workspace)
License: GPL-2.0-or-later
URL: https://github.com/Sonic-DE/sonic-workspace
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
%global plasma_version %(echo %{version} | cut -d. -f1-3)