|
|
@@ -39,7 +39,7 @@
|
|
|
# o any cc(1)
|
|
|
|
|
|
# the package version/release
|
|
|
-%define V_openpkg 20030913
|
|
|
+%define V_openpkg 20030915
|
|
|
|
|
|
# the used software versions
|
|
|
%define V_rpm 4.2.1
|
|
|
@@ -182,7 +182,7 @@ Provides: OpenPKG
|
|
|
. ./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Determine Build Tool Paths"
|
|
|
+ set +x; VERBOSE "PREPARATION: Determine Build Tool Paths"
|
|
|
|
|
|
# determine path to shtool
|
|
|
shtool=`SOURCE shtool`
|
|
|
@@ -231,7 +231,7 @@ Provides: OpenPKG
|
|
|
echo "usrgrp=$usrgrp" >>./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Determine OpenPKG User/Group Name/Id Pairs"
|
|
|
+ set +x; VERBOSE "PREPARATION: Determine OpenPKG User/Group Name/Id Pairs"
|
|
|
|
|
|
# determine user/group name/id pairs
|
|
|
# - bootstrapping: %{l_[smrn]{usr,grp}} is set via sed(1)
|
|
|
@@ -285,7 +285,7 @@ Provides: OpenPKG
|
|
|
echo "ngid=\"$ngid\"; export ngid" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Determine OpenPKG Instance Environment"
|
|
|
+ set +x; VERBOSE "PREPARATION: Determine OpenPKG Instance Environment"
|
|
|
|
|
|
# determine installation location id
|
|
|
if [ ".%{?l_location:set}" = .set ]; then
|
|
|
@@ -331,7 +331,7 @@ Provides: OpenPKG
|
|
|
echo "l_build_ulim=\"$l_build_ulim\"; export l_build_ulim" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Build GNU gzip (Compression Tool)"
|
|
|
+ set +x; VERBOSE "PREPARATION: Build GNU gzip (Compression Tool)"
|
|
|
|
|
|
# bootstrap GNU zip tool
|
|
|
${l_tar} xf `SOURCE gzip-%{V_gzip}.tar` 2>/dev/null || true
|
|
|
@@ -346,7 +346,7 @@ Provides: OpenPKG
|
|
|
echo "l_gzip=\"$l_gzip\"; export l_gzip" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Unpack Distribution Tarballs"
|
|
|
+ set +x; VERBOSE "PREPARATION: Unpack Distribution Tarballs"
|
|
|
|
|
|
# unpack distribution tarballs
|
|
|
${l_gzip} -dc `SOURCE rpm-%{V_rpm}.tar.gz` | ${l_tar} xf - 2>/dev/null || true
|
|
|
@@ -369,7 +369,7 @@ Provides: OpenPKG
|
|
|
done
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Build GNU patch (Source Patching Tool)"
|
|
|
+ set +x; VERBOSE "PREPARATION: Build GNU patch (Source Patching Tool)"
|
|
|
|
|
|
# bootstrap GNU patch tool
|
|
|
( cd patch-%{V_patch}
|
|
|
@@ -387,7 +387,7 @@ Provides: OpenPKG
|
|
|
echo "l_patch=\"$l_patch\"; export l_patch" >>.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Apply OpenPKG Patches to Distibutions"
|
|
|
+ set +x; VERBOSE "PREPARATION: Apply OpenPKG Patches to Distibutions"
|
|
|
|
|
|
# apply OpenPKG patches to distribution trees
|
|
|
( cd rpm-%{V_rpm}
|
|
|
@@ -408,7 +408,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "PREPARATION: Build GNU make (Build Tool)"
|
|
|
+ set +x; VERBOSE "PREPARATION: Build GNU make (Build Tool)"
|
|
|
|
|
|
# bootstrap GNU make tool
|
|
|
( cd make-%{V_make}
|
|
|
@@ -431,7 +431,7 @@ Provides: OpenPKG
|
|
|
. ./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "BUILD: Build GNU bash (Bourne-Again Shell)"
|
|
|
+ set +x; VERBOSE "BUILD: Build GNU bash (Bourne-Again Shell)"
|
|
|
|
|
|
# build GNU bash tool
|
|
|
( cd bash-%{V_bash}
|
|
|
@@ -460,7 +460,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "BUILD: Build GNU tar (Archiving Tool)"
|
|
|
+ set +x; VERBOSE "BUILD: Build GNU tar (Archiving Tool)"
|
|
|
|
|
|
# build GNU tar tool
|
|
|
( cd tar-%{V_tar}
|
|
|
@@ -480,7 +480,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "BUILD: Build GNU bzip2 (Compression Library)"
|
|
|
+ set +x; VERBOSE "BUILD: Build GNU bzip2 (Compression Library)"
|
|
|
|
|
|
# build BZIP2 library
|
|
|
( cd bzip2-%{V_bzip2}
|
|
|
@@ -488,7 +488,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "BUILD: Build Zlib (Compression Library)"
|
|
|
+ set +x; VERBOSE "BUILD: Build Zlib (Compression Library)"
|
|
|
|
|
|
# build ZLIB library
|
|
|
( cd zlib-%{V_zlib}
|
|
|
@@ -509,7 +509,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "BUILD: Build cURL (URL Fetching Tool)"
|
|
|
+ set +x; VERBOSE "BUILD: Build cURL (URL Fetching Tool)"
|
|
|
|
|
|
# build cURL tool
|
|
|
( cd curl-%{V_curl}
|
|
|
@@ -533,7 +533,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "BUILD: Build RPM (RedHat Package Manager)"
|
|
|
+ set +x; VERBOSE "BUILD: Build RPM (RedHat Package Manager)"
|
|
|
|
|
|
# build RPM
|
|
|
( br=`pwd`
|
|
|
@@ -604,7 +604,7 @@ Provides: OpenPKG
|
|
|
. ./.buildenv
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Create Installation Filesystem Hierarchy"
|
|
|
+ set +x; VERBOSE "INSTALL: Create Installation Filesystem Hierarchy"
|
|
|
|
|
|
# create installation hierarchy
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
@@ -637,7 +637,7 @@ Provides: OpenPKG
|
|
|
done
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Installation of RPM"
|
|
|
+ set +x; VERBOSE "INSTALL: Installation of RPM"
|
|
|
|
|
|
# install RPM into installation hierarchy
|
|
|
( cd rpm-%{V_rpm}
|
|
|
@@ -645,7 +645,7 @@ Provides: OpenPKG
|
|
|
) || exit $?
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Stripping Down Installation"
|
|
|
+ set +x; VERBOSE "INSTALL: Stripping Down Installation"
|
|
|
|
|
|
# strip RPM installation
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* \
|
|
|
@@ -676,11 +676,10 @@ Provides: OpenPKG
|
|
|
done
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Install Additional Files"
|
|
|
+ set +x; VERBOSE "INSTALL: Install Additional Files"
|
|
|
|
|
|
# add additional development files
|
|
|
cp rpm-%{V_rpm}/misc/glob.h $RPM_BUILD_ROOT%{l_prefix}/include/rpm/
|
|
|
- cp rpm-%{V_rpm}/misc/libmisc.a $RPM_BUILD_ROOT%{l_prefix}/lib/librpmmisc.a
|
|
|
cp zlib-%{V_zlib}/zlib.h $RPM_BUILD_ROOT%{l_prefix}/include/rpm/
|
|
|
cp zlib-%{V_zlib}/libz.a $RPM_BUILD_ROOT%{l_prefix}/lib/librpmz.a
|
|
|
cp bzip2-%{V_bzip2}/bzlib.h $RPM_BUILD_ROOT%{l_prefix}/include/rpm/
|
|
|
@@ -689,7 +688,7 @@ Provides: OpenPKG
|
|
|
cp beecrypt-%{V_beecrypt}/libbeecrypt.a $RPM_BUILD_ROOT%{l_prefix}/lib/librpmbeecrypt.a
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Post-Adjust Installation"
|
|
|
+ set +x; VERBOSE "INSTALL: Post-Adjust Installation"
|
|
|
|
|
|
# post-adjust RPM installation (namespace-clean POPT inclusion)
|
|
|
mv $RPM_BUILD_ROOT%{l_prefix}/lib/libpopt.a \
|
|
|
@@ -709,7 +708,7 @@ Provides: OpenPKG
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/rpmbuild
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Install Additional Tools"
|
|
|
+ set +x; VERBOSE "INSTALL: Install Additional Tools"
|
|
|
|
|
|
# install lsync tool
|
|
|
sed -e "s:@l_prefix@:%{l_prefix}:g" \
|
|
|
@@ -729,7 +728,7 @@ Provides: OpenPKG
|
|
|
l_cflags=""
|
|
|
l_cppflags="-DOPENPKG -I${l_prefix}/include/rpm -I${l_prefix}/include"
|
|
|
l_ldflags="-L${l_prefix}/lib"
|
|
|
- l_libs="-lrpmbuild -lrpm -lrpmio -lrpmdb -lrpmpopt -lrpmmisc -lrpmbeecrypt -lrpmbz2 -lrpmz"
|
|
|
+ l_libs="-lrpmbuild -lrpm -lrpmio -lrpmdb -lrpmpopt -lrpmbeecrypt -lrpmbz2 -lrpmz"
|
|
|
sed -e "s:@l_prefix@:%{l_prefix}:g" \
|
|
|
-e "s:@l_cc@:$l_cc:g" \
|
|
|
-e "s:@l_cflags@:$l_cflags:g" \
|
|
|
@@ -797,7 +796,7 @@ Provides: OpenPKG
|
|
|
chmod a+x $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg/config.sub
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Install Configuration Files"
|
|
|
+ set +x; VERBOSE "INSTALL: Install Configuration Files"
|
|
|
|
|
|
# install a few README files
|
|
|
sed -e "s:@l_prefix@:%{l_prefix}:g" \
|
|
|
@@ -878,7 +877,7 @@ Provides: OpenPKG
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/openpkg/openpkg.pgp
|
|
|
|
|
|
# display verbosity header
|
|
|
- VERBOSE "INSTALL: Done. Thank you for flying OpenPKG..."
|
|
|
+ set +x; VERBOSE "INSTALL: Done. Thank you for flying OpenPKG..."
|
|
|
|
|
|
%files
|
|
|
%defattr(-,%{?l_musr}%{!?l_musr:%{l_fsusr}},%{?l_mgrp}%{!?l_mgrp:%{l_fsgrp}})
|
|
|
@@ -987,7 +986,6 @@ Provides: OpenPKG
|
|
|
%{l_prefix}/lib/librpmbz2.a
|
|
|
%{l_prefix}/lib/librpmdb.a
|
|
|
%{l_prefix}/lib/librpmio.a
|
|
|
- %{l_prefix}/lib/librpmmisc.a
|
|
|
%{l_prefix}/lib/librpmpopt.a
|
|
|
%{l_prefix}/lib/librpmz.a
|
|
|
%dir %{l_prefix}/libexec
|