diff --git a/file/file.spec b/file/file.spec index 6fdd19de6c..5809984ad0 100644 --- a/file/file.spec +++ b/file/file.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE] Group: Filesystem License: BSD Version: 3.39 -Release: 20020814 +Release: 20021010 # list of sources Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -41,8 +41,8 @@ Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20020206, gcc -PreReq: OpenPKG, openpkg >= 20020206 +BuildPreReq: OpenPKG, openpkg >= 20021002, gcc, make, zlib +PreReq: OpenPKG, openpkg >= 20021002 AutoReq: no AutoReqProv: no @@ -54,9 +54,16 @@ AutoReqProv: no %setup -q %build + %{l_shtool} subst \ + -e 's;ACLOCAL=aclocal;ACLOCAL=true;' \ + -e 's;AUTOCONF=autoconf;AUTOCONF=true;' \ + -e 's;AUTOMAKE=automake;AUTOMAKE=true;' \ + -e 's;AUTOHEADER=autoheader;AUTOHEADER=true;' \ + configure CC="%{l_cc}" \ - CFLAGS="%{l_cflags -O} -I%{prefix}/include" \ - LDFLAGS="-L%{prefix}/lib" \ + CFLAGS="%{l_cflags -O} -I%{l_prefix}/include" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \ --datadir=%{l_prefix}/share/file \