|
我要制作的包只需要把一些的文件复制到安装位置,不编译
操作系统为 redhat linux 9, rpm版本为RPM version 4.2
我的spec文件如下# vi opt-0.1-1.spec
[code:1]
%define buildroot /var/tmp
Summary: SuperHA for linux
Name: SuperHA
Version: 0.1
Release: 1
Copyright: GPL
Group: Applications/System
Source: opt-0.1.tar.gz
Packager: Bowdar
%description
HA System for linux
%changelog
*Sun Jun 6 2004 Bowdar
-build for the first time
%prep
%build
%install
%files
%defattr (-,root,root)
/opt/superha
/opt/exehasvrd
/opt/ha.pwd
[/code:1]
打包过程中后面几行有以下的提示信息# rpmbuild -ba opt-0.1-1.spec
[code:1]
Processing files: SuperHA-0.1-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libaio.so.1 libaio.so.1(SUNW_0.7) libc.so.1 libc.so.1(SUNW_0.8) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libcrypt.so.1 libcrypt.so.1(GLIBC_2.0) libelf.so.1 libm.so.6 libncurses.so.5 libnsl.so.1 libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libsocket.so.1 libstdc++-libc6.2-2.so.3 libucb.so.1 libucb.so.1(SUNW_0.7)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp
Wrote: /root/redhat/SRPMS/SuperHA-0.1-1.src.rpm
Wrote: /root/redhat/RPMS/i386/SuperHA-0.1-1.i386.rpm
[/code:1]
安装时提示信息如下# rpm -ivh opt-0.1-1.i386.rpm
[code:1]
error: Failed dependencies:
libaio.so.1 is needed by SuperHA-0.1-1
libaio.so.1(SUNW_0.7) is needed by SuperHA-0.1-1
libc.so.1 is needed by SuperHA-0.1-1
libc.so.1(SUNW_0.8) is needed by SuperHA-0.1-1
libsocket.so.1 is needed by SuperHA-0.1-1
libucb.so.1 is needed by SuperHA-0.1-1
libucb.so.1(SUNW_0.7) is needed by SuperHA-0.1-1
[/code:1] |
|