openpkg/rpmmacros

changeset 427
71503088f51b
parent 303
2bd9bf3f6f03
child 428
f880f219c566
     1.1 --- a/openpkg/rpmmacros	Tue Jul 31 10:03:54 2012 +0200
     1.2 +++ b/openpkg/rpmmacros	Tue Jul 31 12:12:54 2012 +0200
     1.3 @@ -299,6 +299,7 @@
     1.4  
     1.5  #   path to local build root
     1.6  %l_buildroot             %{_tmppath}/%{name}-%{version}-root
     1.7 +%buildroot               %{l_buildroot}
     1.8  
     1.9  #   path to local temporary location
    1.10  %l_tmpdir()              %{_tmppath}
    1.11 @@ -438,3 +439,13 @@
    1.12  rm -f $VCFILE\
    1.13  %{nil}
    1.14  
    1.15 +#   automatically include never changing RPM header text
    1.16 +%__hook_description_1 %{lua: \
    1.17 +    local prefix = rpm.expand("%{l_prefix_static}") \
    1.18 +    if rpm.expand("%{?prefix}") ~= prefix then \
    1.19 +        print(string.format("Prefix: %s\\n", prefix)) \
    1.20 +    end \
    1.21 +    print("AutoReq: no\\n") \
    1.22 +    print("AutoReqProv: no\\n") \
    1.23 +}
    1.24 +

mercurial