Backport RPM boilerplate logic required by legacy OpenPKG scripts.

Fri, 22 Oct 2010 23:20:42 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 22 Oct 2010 23:20:42 +0200
changeset 287
c30c9dcebf8b
parent 286
552d1939222f
child 288
74a0826c1949

Backport RPM boilerplate logic required by legacy OpenPKG scripts.

gnupg/gnupg.spec file | annotate | diff | comparison | revisions
     1.1 --- a/gnupg/gnupg.spec	Fri Oct 22 23:20:14 2010 +0200
     1.2 +++ b/gnupg/gnupg.spec	Fri Oct 22 23:20:42 2010 +0200
     1.3 @@ -32,7 +32,7 @@
     1.4  Group:        PGP
     1.5  License:      GPL
     1.6  Version:      2.0.16
     1.7 -Release:      20100719
     1.8 +Release:      20101020
     1.9  
    1.10  #   package options
    1.11  %option       with_curl  yes
    1.12 @@ -44,6 +44,8 @@
    1.13  Patch0:       gnupg.patch
    1.14  
    1.15  #   build information
    1.16 +Prefix:       %{l_prefix}
    1.17 +BuildRoot:    %{l_buildroot}
    1.18  BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    1.19  PreReq:       OpenPKG, openpkg >= 20100101, pinentry
    1.20  BuildPreReq:  gcrypt >= 1.2.3, libksba >= 1.0.2, libassuan >= 2.0.0, gpg-error >= 1.4
    1.21 @@ -159,6 +161,7 @@
    1.22  
    1.23  %install
    1.24      #   install program
    1.25 +    rm -rf $RPM_BUILD_ROOT
    1.26      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    1.27  
    1.28      #   provide unversioned names
    1.29 @@ -190,4 +193,5 @@
    1.30  %files -f files
    1.31  
    1.32  %clean
    1.33 +    rm -rf $RPM_BUILD_ROOT
    1.34  

mercurial