-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use modern statements in spec file #326
Conversation
- `%global` instead of `%define` for static expressions: `%global`s are evaluated once when set, `%define`s are evaluated each time used. Plus the scope of `%global`s is all sections, including the scriptlets. - `-n %{name}-%{version}` always has been the default for `%setup`, hence omitted now. - `rm -rf %{buildroot}` as first statement in the `%install` section is long obsolete, thus superfluous.
I believe the |
When you say the rm on the bildroot is obsolete, does this mean it is done implicitly? I know the |
Scratch that, works fine without it. |
Definitely not by OBS in general, but maybe by Jolla's Edit: Actually, it is this behaviour which creates the necessity to have the
Yes, both the And it is successfully build by our CI workflow, which utilises Coderus' Sailfish-SDK images, hence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all good.
I am still glad (every time), that you double-checked and triggered me to re-evaluate and properly document my reasoning. |
%global
instead of%define
for static expressions:%global
s are evaluated once when set,%define
s are evaluated each time used. Plus the scope of%global
s is all sections, including the scriptlets.-n %{name}-%{version}
always has been the default for%setup
, hence omitted now.rm -rf %{buildroot}
as first statement in the%install
section is long obsolete, thus superfluous.