confuse/confuse.spec

changeset 545
66949ddfb716
parent 387
33ae2d61c751
     1.1 --- a/confuse/confuse.spec	Tue Aug 28 18:31:00 2012 +0200
     1.2 +++ b/confuse/confuse.spec	Tue Aug 28 18:31:15 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  confuse.spec -- OpenPKG RPM Specification
     1.6 -##  Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -33,18 +33,14 @@
    1.12  Group:        Libraries
    1.13  License:      ISC
    1.14  Version:      2.6
    1.15 -Release:      20090320
    1.16 +Release:      20120800
    1.17  
    1.18  #   list of sources
    1.19  Source0:      http://bzero.se/confuse/confuse-%{version}.tar.gz
    1.20  
    1.21  #   build information
    1.22 -Prefix:       %{l_prefix}
    1.23 -BuildRoot:    %{l_buildroot}
    1.24 -BuildPreReq:  OpenPKG, openpkg >= 20040130, make
    1.25 -PreReq:       OpenPKG, openpkg >= 20040130
    1.26 -AutoReq:      no
    1.27 -AutoReqProv:  no
    1.28 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    1.29 +PreReq:       OpenPKG, openpkg >= 20100101
    1.30  
    1.31  %description
    1.32      Previously known as libcfg, confuse is a configuration file
    1.33 @@ -65,6 +61,11 @@
    1.34  %prep
    1.35      #   unpack sources
    1.36      %setup -q
    1.37 +    %{l_shtool} subst \
    1.38 +        -e 's;-Wall *-Werror;-Wall;' \
    1.39 +        tests/Makefile.in \
    1.40 +        docs/Makefile.in \
    1.41 +        src/Makefile.in
    1.42  
    1.43  %build
    1.44      #   run the autoconf(1) generated configuration logic
    1.45 @@ -81,9 +82,6 @@
    1.46      %{l_make} %{l_mflags -O}
    1.47  
    1.48  %install
    1.49 -    #   remove previously existing installations
    1.50 -    rm -rf $RPM_BUILD_ROOT
    1.51 -
    1.52      #   install files
    1.53      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.54  
    1.55 @@ -93,5 +91,4 @@
    1.56  %files -f files
    1.57  
    1.58  %clean
    1.59 -    rm -rf $RPM_BUILD_ROOT
    1.60  

mercurial