Re: [Rpm-maint] [rpm-software-management/rpm] [feature-request] %{SOURCENAME$} macro (#1197)

2020-04-26 Thread Damian Ivanov
I tried that, it didn't work at first, now copying it from here it does...
Thanks Neal.

-- 
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#issuecomment-619549073___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [rpm-software-management/rpm] [feature-request] %{SOURCENAME$} macro (#1197)

2020-04-26 Thread Damian Ivanov
Closed #1197.

-- 
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#event-3272939316___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


[Rpm-maint] [rpm-software-management/rpm] [feature-request] %{SOURCENAME$} macro (#1197)

2020-04-26 Thread Damian Ivanov
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___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint