[Bug 520724] Re: requires_releq_kernel macro broken

Elan Ruusamäe glen at delfi.ee
Sat Feb 13 19:57:21 CET 2010


cvs up your packages/builder.

is there point of making such change to spec that the parsing will not
fail with older rpm-build-macros?

+%if "%{rpm_build_macros}" >= "1.531"
 %requires_releq_kernel -n drm
+%endif


** Changed in: pld-linux
   Importance: Undecided => Wishlist

** Changed in: pld-linux
       Status: New => In Progress

** Changed in: pld-linux
     Assignee: (unassigned) => Elan Ruusamäe (glen666)

-- 
requires_releq_kernel macro broken
https://bugs.launchpad.net/bugs/520724
You received this bug notification because you are subscribed to PLD
Linux.

Status in PLD Linux Distribution: In Progress

Bug description:
It looks like our rpm doesn't like "%macro -n value" in preamble.
Consider this simple spec:

[adamg at builder test]$ cat test.spec
Summary: foo
Name: foo
Group: foo
Version: 1
Release: 1
License: GPL
BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%requires_releq_kernel -n drm
%prep
%files
%defattr(644,root,root,755)
[adamg at builder test]$ ../packages/builder -nn test.spec
builder: SMP make flags are set to -j8
error: line 8: Unknown tag:  -n drm
Error: package build failed. (no more info)
[adamg at builder test]$ rpm -q rpm-build-macros
rpm-build-macros-1.534-1.noarch
[adamg at builder test]$




More information about the pld-bugs mailing list