On 18/03/2019 19:53, Andreas Vetter wrote:
Hi, here is my stupid question of the day:
spec-cleaner wants to move defines to the beginning of the spec file. But I need it after Name and Version like that:
Name: hmcfgusb Version: 0.103 %define tarball %{name}-%{version}.tar.gz ... URL: https://git.zerfleddert.de/hmcfgusb/releases/%{tarball} Source: %{tarball}
spec-cleaner wants to turn it around, but then it does not work:
%define tarball %{name}-%{version}.tar.gz Name: hmcfgusb Version: 0.103 ...
Is it ok to ignore (in that case) spec-cleaner or is there a better way to achieve that?
Another way to achieve it is to define the name and version somewhere else, i've seen spec files that define ver and base_name or something similar, but often they are more complex packages that do something different for versions / tarball names when packaging alpha's / beta's so it may not be better in your case but it is another way. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org