分类: LINUX
2006-03-09 22:35:27
rpm-bX[制作选项1制作选项2...]描述文件1描述文件2... |
#rpm-bplze-6.0-2.spec2>&1|nl 1Executing:%prep 2+umask022 3+cd/usr/src/dist/BUILD 4+echo'预处理脚本程序(prep)开始执行' 5预处理脚本程序(prep)开始执行 6+cd/usr/src/dist/BUILD 7+rm-rflze-6.0 8+/bin/gzip-dc/usr/src/dist/SOURCES/lze-6.0-2.src.tgz 9+tar-xvvf- 10drwxr-xr-xroot/root02001-11-0216:02lze-6.0/ 11-rw-------root/root2462262001-11-0216:00lze-6.0/lze.c 12-rw-------root/root982492001-11-0216:00lze-6.0/lzeime.wb.c 13-rw-------root/root3399022001-11-0216:00lze-6.0/lzeime.py.c 14-rw-r--r--root/root12832001-11-0216:00lze-6.0/funkey.def 15-rwxr--r--root/root2502001-11-0216:00lze-6.0/inputme.def 16-rw-r--r--root/root8132742001-11-0216:00lze-6.0/wbzc.dat 17-rw-------root/root4742001-11-0216:02lze-6.0/makefile 18+STATUS=0 19+'['0-ne0']' 20+cdlze-6.0 21++/usr/bin/id-u 22+'['0=0']' 23+/bin/chown-Rhfroot. 24++/usr/bin/id-u 25+'['0=0']' 26+/bin/chgrp-Rhfroot. 27+/bin/chmod-Rfa+rX,g-w,o-w. 28+exit0 # |
#rpm-bl-vvlze-6.0-2.spec|nl 1Processingfiles:lze 2D:File0:0100644root.root/etc/funkey.def 3D:File1:0100644root.root/etc/inputme.def 4D:File2:0100644root.root/usr/doc/lze-6.0-2/README 5Filenotfound:/usr/doc/lze-6.0-2/LICENSE 6D:File3:0100555root.root/usr/bin/lze 7D:File4:0100511root.root/usr/bin/lzeime.py 8D:File5:0100511root.root/usr/bin/lzeime.wb 9D:File6:0100644root.root/etc/wbzc.dat 10Provides:lze-edit 11PreReq:/bin/sh 12Requires:/bin/sh # |
#rpm-bblze-6.0-2.spec2>&1|nl 1Executing:%prep 2+umask022 3+cd/usr/src/dist/BUILD 4+echo'预处理脚本程序(prep)开始执行' 5预处理脚本程序(prep)开始执行 6+cd/usr/src/dist/BUILD 7+rm-rflze-6.0 8+tar-xvvf- 9+/bin/gzip-dc/usr/src/dist/SOURCES/lze-6.0-2.src.tgz 10drwxr-xr-xroot/root02001-11-0217:04lze-6.0/ 11-rw-------root/root2462262001-11-0216:00lze-6.0/lze.c 12-rw-------root/root982492001-11-0216:00lze-6.0/lzeime.wb.c 13-rw-------root/root3399022001-11-0216:00lze-6.0/lzeime.py.c 14-rw-r--r--root/root12832001-11-0216:00lze-6.0/funkey.def 15-rwxr--r--root/root2502001-11-0216:00lze-6.0/inputme.def 16-rw-r--r--root/root8132742001-11-0216:00lze-6.0/wbzc.dat 17-rw-------root/root4742001-11-0216:02lze-6.0/makefile 18-rw-r--r--root/root12552001-11-0217:04lze-6.0/getinputme.c 19+STATUS=0 20+'['0-ne0']' 21+cdlze-6.0 22++/usr/bin/id-u 23+'['0=0']' 24+/bin/chown-Rhfroot. 25++/usr/bin/id-u 26+'['0=0']' 27+/bin/chgrp-Rhfroot. 28+/bin/chmod-Rfa+rX,g-w,o-w. 29+exit0 30Executing:%build 31+umask022 32+cd/usr/src/dist/BUILD 33+cdlze-6.0 34+echo'编译连接脚本程序(build)开始执行' 35编译连接脚本程序(build)开始执行 36+make 37cc-fwritable-strings-DUSE_AS_LZE-DFOR_LINUX-s-I/usr/zzz/src/include-DFOR_LZE_INPUTME-olze/usr/zzz/src/li- 38bsrc/mycurses.clze.cgetinputme.c/usr/zzz/src/my.a 39cc-DFOR_LINUX-s-I/usr/zzz/src/include-olzeime.wbgetinputme.clzeime.wb.c/usr/zzz/src/my.a 40lzeime.wb.c:Infunction`do_service': 41lzeime.wb.c:1409:warning:passingarg5of`bsearch'fromincompatiblepointertype 42cc-DFOR_LINUX-s-I/usr/zzz/src/include-olzeime.pygetinputme.clzeime.py.c/usr/zzz/src/my.a 43+exit0 44Executing:%install 45+umask022 46+cd/usr/src/dist/BUILD 47+cdlze-6.0 48+echo'安装脚本程序(install)开始执行' 49安装脚本程序(install)开始执行 50+makeinstall 51installing... 52done 53+exit0 54Processingfiles:lze 55FindingProvides:(using/usr/lib/rpm/find-provides)... 56FindingRequires:(using/usr/lib/rpm/find-requires)... 57Provides:lze-edit 58PreReq:/bin/sh 59Requires:/bin/shld-linux.so.2libc.so.6libc.so.6(GLIBC_2.0)libc.so.6(GLIBC_2.1) 60Wrote:/usr/src/dist/RPMS/i386/lze-6.0-2.i386.rpm 61Executing:%clean 62+umask022 63+cd/usr/src/dist/BUILD 64+cdlze-6.0 65+echo'建包结束后清理脚本程序(clean)开始执行' 66建包结束后清理脚本程序(clean)开始执行 67+exit0 # |
#rpm-bslze-6.0-2.spec Wrote:/usr/src/dist/SRPMS/lze-6.0-2.src.rpm #rpm-qplv/usr/src/dist/SRPMS/lze-6.0-2.src.rpm -rw-------rootroot206711月215:44lze-6.0-2.spec -rw-r--r--rootroot53870611月217:05lze-6.0-2.src.tgz # |
#rpm-bl--timecheck600lze-6.0-2.spec Processingfiles:lze warning:TIMECHECKfailure:/usr/bin/lze FindingProvides:(using/usr/lib/rpm/find-provides)... FindingRequires:(using/usr/lib/rpm/find-requires)... Provides:lze-edit PreReq:/bin/sh Requires:/bin/shld-linux.so.2libc.so.6libc.so.6(GLIBC_2.0)libc.so.6(GLIBC_2.1) # |
--buildroot
|
Buildroot:
|
$cd/usr/zzz $mkdir-prpm/{BUILD,RPMS/i386,SOURCES,SPECS,SRPMS} $ |
$cd/usr/zzz $cp/root/lze-6.0-2.specrpm/SPECS $cp/root/lze-6.0-2.src.tgzrpm/SOURCES $ |
$cd/usr/zzz $vi.rpmmacros |
%_topdir/usr/zzz/rpm |
$cd/usr/zzz/rpm/SPECS $vilze-6.0-2.spec $ |
%install echo"安装脚本程序(install)开始执行" #makeinstall mkdir-p$RPM_BUILD_ROOT/usr/bin mkdir-p$RPM_BUILD_ROOT/etc mkdir-p$RPM_BUILD_ROOT/usr/doc/lze-6.0 cplzelzeime.wblzeime.py$RPM_BUILD_ROOT/usr/bin cpinputme.deffunkey.defwbzc.dat$RPM_BUILD_ROOT/etc cp/usr/doc/lze-6.0/*$RPM_BUILD_ROOT/usr/doc/lze-6.0 |
$cd/usr/zzz/rpm/SPECS $rpm-bb--buildroot/usr/zzz/tmplze-6.0-2.spec Executing:%prep +umask022 +cd/usr/zzz/rpm/BUILD +echo'预处理脚本程序(prep)开始执行' 预处理脚本程序(prep)开始执行 +cd/usr/zzz/rpm/BUILD +rm-rflze-6.0 +/bin/gzip-dc/usr/zzz/rpm/SOURCES/lze-6.0-2.src.tgz +tar-xvvf- drwxr-xr-xroot/root02001-11-0217:04lze-6.0/ -rw-------root/root2462262001-11-0216:00lze-6.0/lze.c -rw-------root/root982492001-11-0216:00lze-6.0/lzeime.wb.c -rw-------root/root3399022001-11-0216:00lze-6.0/lzeime.py.c -rw-r--r--root/root12832001-11-0216:00lze-6.0/funkey.def -rwxr--r--root/root2502001-11-0216:00lze-6.0/inputme.def -rw-r--r--root/root8132742001-11-0216:00lze-6.0/wbzc.dat -rw-------root/root4742001-11-0216:02lze-6.0/makefile -rw-r--r--root/root12552001-11-0217:04lze-6.0/getinputme.c +STATUS=0 +'['0-ne0']' +cdlze-6.0 ++/usr/bin/id-u +'['500=0']' ++/usr/bin/id-u +'['500=0']' +/bin/chmod-Rfa+rX,g-w,o-w. +exit0 Executing:%build +umask022 +cd/usr/zzz/rpm/BUILD +cdlze-6.0 +echo'编译连接脚本程序(build)开始执行' 编译连接脚本程序(build)开始执行 +make cc-fwritable-strings-DUSE_AS_LZE-DFOR_LINUX-s-I/usr/zzz/src/include-DFOR_LZE_INPUTME-olze/usr/zzz/src/libsrc/mycurses.clze.cgetinputme.c/usr/zzz/src/my.a cc-DFOR_LINUX-s-I/usr/zzz/src/include-olzeime.wbgetinputme.clzeime.wb.c/usr/zzz/src/my.a lzeime.wb.c:Infunction`do_service': lzeime.wb.c:1409:warning:passingarg5of`bsearch'fromincompatiblepointertype cc-DFOR_LINUX-s-I/usr/zzz/src/include-olzeime.pygetinputme.clzeime.py.c/usr/zzz/src/my.a +exit0 Executing:%install +umask022 +cd/usr/zzz/rpm/BUILD +cdlze-6.0 +echo'安装脚本程序(install)开始执行' 安装脚本程序(install)开始执行 +mkdir-p/usr/zzz/tmp/usr/bin +mkdir-p/usr/zzz/tmp/etc +mkdir-p/usr/zzz/tmp/usr/doc/lze-6.0 +cplzelzeime.wblzeime.py/usr/zzz/tmp/usr/bin +cpinputme.deffunkey.defwbzc.dat/usr/zzz/tmp/etc +cp/usr/doc/lze-6.0/LICENSE/usr/doc/lze-6.0/README/usr/zzz/tmp/usr/doc/lze-6.0 +exit0 Processingfiles:lze FindingProvides:(using/usr/lib/rpm/find-provides)... FindingRequires:(using/usr/lib/rpm/find-requires)... Provides:lze-edit PreReq:/bin/sh Requires:/bin/shld-linux.so.2libc.so.6libc.so.6(GLIBC_2.0)libc.so.6(GLIBC_2.1) Wrote:/usr/zzz/rpm/RPMS/i386/lze-6.0-2.i386.rpm Executing:%clean +umask022 +cd/usr/zzz/rpm/BUILD +cdlze-6.0 +echo'建包结束后清理脚本程序(clean)开始执行' 建包结束后清理脚本程序(clean)开始执行 +exit0 $ |
$rpm-qplv/usr/zzz/rpm/RPMS/i386/lze-6.0-2.i386.rpm -rw-r--r--rootroot128311月609:24/etc/funkey.def -rwxr-xr-xrootroot25011月609:24/etc/inputme.def -rw-r--r--rootroot81327411月609:24/etc/wbzc.dat -rwxr-xr-xrootroot40863211月609:24/usr/bin/lze -rwxr-xr-xrootroot8292011月609:24/usr/bin/lzeime.py -rwxr-xr-xrootroot3856811月609:24/usr/bin/lzeime.wb -rw-r--r--rootroot121511月609:24/usr/doc/lze-6.0/LICENSE -rw-r--r--rootroot369011月609:24/usr/doc/lze-6.0/README $ |
#rpm-bb--targeti686-pc-solaris--quietlze-6.0-2.spec 创建目标平台:i686-pc-solaris 正在创建目标:i686-pc-solaris # |
#rpm-qp--qf"archis%{arch}nosis%{os}n"/usr/src/dist/RPMS/i686/lze-6.0-2.i686.rpm archisi686 osissolaris # |
$rpm-bl--quietlze-6.0-2.spec $ |
#rpm-bl--cleanlze-6.0-2.spec Processingfiles:lze FindingProvides:(using/usr/lib/rpm/find-provides)... FindingRequires:(using/usr/lib/rpm/find-requires)... Provides:lze-edit PreReq:/bin/sh Requires:/bin/shld-linux.so.2libc.so.6libc.so.6(GLIBC_2.0)libc.so.6(GLIBC_2.1) Executing:--clean +umask022 +cd/usr/src/dist/BUILD +rm-rflze-6.0 +exit0 |
#rpm--rmsourcelze-6.0-2.spec #lslze-6.0-2.spec../SOURCES/lze-6.0-2.src.tgz ls:lze-6.0-2.spec:文件或目录不存在 ls:../SOURCES/lze-6.0-2.src.tgz:文件或目录不存在 # |
#rpm-bb--signlze-6.0-2.spec Enterpassphrase:mypass Passphraseisgood. Executing:%prep ...... Executing:%build ...... Executing:%install ...... Processingfiles:lze ...... Requires:/bin/shld-linux.so.2libc.so.6 Generatingsignature:1002 GeneratingsignatureusingPGP. PrettyGoodPrivacy(tm)Version6.5.8 (c)1999NetworkAssociatesInc. UsestheRSAREF(tm)Toolkit,whichiscopyrightRSADataSecurity,Inc. ExportofthissoftwaremayberestrictedbytheU.S.government. Wrote:/root/test/RPMS/i386/lze-6.0-2.i386.rpm Executing:%clean ...... # |
rpm--recompilelze-6.0-2.src.rpm |
1)rpm-ilze-6.0-2.src.rpm 2)rpm-bilze-6.0-2.spec |
rpm--rebuildlze-6.0-2.src.rpm |
1)rpm-ilze-6.0-2.src.rpm 2)rpm-bb--clean--resourcelze-6.0-2.spec |