On Mon, Mar 18, 2019 at 5:24 AM Andreas Vetter
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?
It should work if you change %define to %global, but you're doing it wrong there. The whole thing in URL should be in Source, and URL is supposed to be set to the project's home page. So it'd look something like this: URL: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb Source: https://git.zerfleddert.de/hmcfgusb/releases/%{name}-%{version}.tar.gz -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org