[Rpm-maint] [rpm-software-management/rpm] [feature-request] %{SOURCENAME$} macro (#1197)
Damian Ivanov
notifications at github.com
Sun Apr 26 10:59:50 UTC 2020
Multiple times came across situations where it would be handy to have %{SOURCENAME} macros for the SOURCES.
```
Name: test
Version: 1.0
Release: 0
Source0: myfile
%description
test package
%prep
%build
mkdir -p %{buildroot}%{_prefix}/MyDirectory/
install -m 0755 %{SOURCE0} %{buildroot}%{_prefix}/MyDirectory/
%install
%files
%{_prefix}/MyDirectory/%{SOURCENAME0} # and not %{_prefix}/MyDirectory/myfile
```
--
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/1197
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200426/36032a01/attachment.html>
More information about the Rpm-maint
mailing list