OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 23-Jul-2003 21:21:28
Branch: HEAD Handle: 2003072320212800
Modified files:
openpkg-src/make make.spec
Log:
cleanup packaging
Summary:
Revision Changes Path
1.28 +15 -6 openpkg-src/make/make.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/make/make.spec
============================================================================
$ cvs diff -u -r1.27 -r1.28 make.spec
--- openpkg-src/make/make.spec 23 Jul 2003 13:32:03 -0000 1.27
+++ openpkg-src/make/make.spec 23 Jul 2003 19:21:28 -0000 1.28
@@ -48,15 +48,16 @@
AutoReqProv: no
%description
- This is the GNU variant of make(1). The purpose of this utility is to
- determine automatically which pieces of a large program need to be
- recompiled, and issue the commands to recompile them.
+ This is the GNU variant of make(1). The purpose of this utility is
+ to determine automatically which pieces of a large program need to
+ be recompiled, and issue the commands to recompile them.
%prep
%setup -q
%patch -p0
%build
+ # configure package
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
./configure \
@@ -64,23 +65,31 @@
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-nls
+
+ # build package
%{l_make} %{l_mflags -O}
%install
rm -rf $RPM_BUILD_ROOT
+
+ # install package
%{l_shtool} subst -v \
-e "s;^\\(prefix *= *\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};" \
Makefile */Makefile
%{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
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
( cd $RPM_BUILD_ROOT%{l_prefix}
ln bin/make bin/gmake
ln man/man1/make.1 man/man1/gmake.1
) || exit $?
+
+ # strip down installation
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/share
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2>/dev/null || true
+
+ # determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]