# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171475 -7200 # Node ID 66949ddfb71687f313741f749dcddf8938fa6f1c # Parent b7947b261c1367f0dc5083b7a10424fe2e9dd009 Modernize packaging and allow for build success with compiler warnings. diff -r b7947b261c13 -r 66949ddfb716 confuse/confuse.spec --- a/confuse/confuse.spec Tue Aug 28 18:31:00 2012 +0200 +++ b/confuse/confuse.spec Tue Aug 28 18:31:15 2012 +0200 @@ -1,6 +1,6 @@ ## ## confuse.spec -- OpenPKG RPM Specification -## Copyright (c) 2009 Michael Schloh von Bennewitz +## Copyright (c) 2012 Michael Schloh von Bennewitz ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -33,18 +33,14 @@ Group: Libraries License: ISC Version: 2.6 -Release: 20090320 +Release: 20120800 # list of sources Source0: http://bzero.se/confuse/confuse-%{version}.tar.gz # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, make -PreReq: OpenPKG, openpkg >= 20040130 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101, make +PreReq: OpenPKG, openpkg >= 20100101 %description Previously known as libcfg, confuse is a configuration file @@ -65,6 +61,11 @@ %prep # unpack sources %setup -q + %{l_shtool} subst \ + -e 's;-Wall *-Werror;-Wall;' \ + tests/Makefile.in \ + docs/Makefile.in \ + src/Makefile.in %build # run the autoconf(1) generated configuration logic @@ -81,9 +82,6 @@ %{l_make} %{l_mflags -O} %install - # remove previously existing installations - rm -rf $RPM_BUILD_ROOT - # install files %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT @@ -93,5 +91,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT