|
|
|
@ -32,8 +32,8 @@ Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [REL] |
|
|
|
|
Group: Text |
|
|
|
|
License: GPL |
|
|
|
|
Version: 2.4.2 |
|
|
|
|
Release: 20020206 |
|
|
|
|
Version: 2.5 |
|
|
|
|
Release: 20020314 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: ftp://ftp.gnu.org/gnu/grep/grep-%{version}.tar.gz |
|
|
|
@ -41,7 +41,7 @@ Source0: ftp://ftp.gnu.org/gnu/grep/grep-%{version}.tar.gz
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206 |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206, libiconv, pcre |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20020206 |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
@ -57,14 +57,18 @@ AutoReqProv: no
|
|
|
|
|
%build |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
CPPFLAGS="-I%{l_prefix}/include" \ |
|
|
|
|
LDFLAGS="-L%{l_prefix}/lib" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--disable-nls |
|
|
|
|
--with-included-gettext |
|
|
|
|
%{l_make} %{l_mflags -O} |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
|
|
|
|
%{l_make} %{l_mflags} install \ |
|
|
|
|
prefix=$RPM_BUILD_ROOT%{l_prefix} \ |
|
|
|
|
exec_prefix=$RPM_BUILD_ROOT%{l_prefix} |
|
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
|
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|