[Rpm-maint] [rpm-software-management/rpm] %{name} is not properly evaluated in sources and %_sourcedir (#1234)

nim-nim notifications at github.com
Thu May 21 09:33:16 UTC 2020


rpm does not evaluate `%{name}` properly in sources, even when all the sources have been moved to a separate `%sourcelist` section, after the preamble that sets `%{name}`.

That breaks spectool

```console
$ rpmdev-spectool -R -g ~/fedora/fedpkg/fonts-rpm-macros/fonts-rpm-macros.spec 
Downloading: https://pagure.io/fork/nim/fonts-rpm-macros/archive/670c626fdf74d54edc6a9796f66541eb2feed96a/nim-fonts-rpm-macros-670c626fdf74d54edc6a9796f66541eb2feed96a.tar.gz
Download failed:
[Errno 2] No such file or directory: '/var/lib/builder/rpmbuild/SOURCES/%{name}/nim-fonts-rpm-macros-670c626fdf74d54edc6a9796f66541eb2feed96a.tar.gz'
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1234
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200521/a81a91bb/attachment.html>


More information about the Rpm-maint mailing list