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:
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
Wouldn't `%{basename:%{SOURCE0}}` do the trick?
--
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-619544129___
@Conan-Kudo requested changes on this pull request.
> +
+
+if __name__ == "__main__":
+"""To allow this script to be importable (and its classes/functions
+ reused), actions are performed only when run as a main script."""
+
+parser = argparse.ArgumentParser(prog=argv[0])
+
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