spice.spec内容如下:
1 Summary: spice
2 Name: spice
3 Version: 0.8.0
4 Release: 1
5 Source: spice-0.8.0.tar.gz
6 License: GPL
7 Group: Development/System
8 %description
9 This is spice
10 %prep
11 %setup -q
12 %build
13 %configure --prefix=/usr --libdir=/usr/lib64
14 make
15 %install
16 make install
rpmbuild -ba spice.spec
最后几行生成代码如下:
Processing files: spice-debuginfo-0.8.0-1.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/spice-0.8.0-1.x86_64
Wrote: /root/rpmbuild/SRPMS/spice-0.8.0-1.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/spice-debuginfo-0.8.0-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.7HJmuq
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd spice-0.8.0
+ /bin/rm -rf /root/rpmbuild/BUILDROOT/spice-0.8.0-1.x86_64
+ exit 0
应该有三个rpm文件(rpm安装文件,debuginfo.rpm文件,src.rpm文件)才对,现在怎么剩下两个了?而且是最需要的一个。