Backport RPM boilerplate logic required by legacy OpenPKG scripts.

Thu, 15 Sep 2011 19:30:03 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Sep 2011 19:30:03 +0200
changeset 359
e9301bb5244b
parent 358
832ab278201b
child 360
d3f49ec0c5cd

Backport RPM boilerplate logic required by legacy OpenPKG scripts.

perl/perl.spec file | annotate | diff | comparison | revisions
     1.1 --- a/perl/perl.spec	Thu Sep 15 19:29:29 2011 +0200
     1.2 +++ b/perl/perl.spec	Thu Sep 15 19:30:03 2011 +0200
     1.3 @@ -32,15 +32,19 @@
     1.4  Group:        Perl
     1.5  License:      GPL/Artistic
     1.6  Version:      5.14.1
     1.7 -Release:      20110618
     1.8 +Release:      20110914
     1.9  
    1.10  #   list of sources
    1.11  Source0:      http://www.cpan.org/src/perl-%{version}.tar.gz
    1.12  Patch0:       perl.patch
    1.13  
    1.14  #   build information
    1.15 -BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc
    1.16 -PreReq:       OpenPKG, openpkg >= 20100101
    1.17 +Prefix:       %{l_prefix}
    1.18 +BuildRoot:    %{l_buildroot}
    1.19 +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc
    1.20 +PreReq:       OpenPKG, openpkg >= 20060823
    1.21 +AutoReq:      no
    1.22 +AutoReqProv:  no
    1.23  
    1.24  %description
    1.25      Perl ("Practical Reporting and Extraction Language") is a very
    1.26 @@ -115,6 +119,8 @@
    1.27      %{l_make} %{l_mflags} -f Makefile
    1.28  
    1.29  %install
    1.30 +    #   remove build cruft
    1.31 +    rm -rf $RPM_BUILD_ROOT
    1.32  
    1.33      #   install the Perl package via standard procedure
    1.34      %{l_make} %{l_mflags} -f Makefile install DESTDIR=$RPM_BUILD_ROOT
    1.35 @@ -208,4 +214,5 @@
    1.36  %files -f files
    1.37  
    1.38  %clean
    1.39 +    rm -rf $RPM_BUILD_ROOT
    1.40  

mercurial