Browse Source

fix building: use OpenPKG zlib and do not require it in system

master
parent
commit
97ae1525dc
  1. 17
      file/file.spec

17
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 \

Loading…
Cancel
Save