LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 577|回复: 0

在线求:suse 下的 rpm 打包问题

[复制链接]
发表于 2006-11-16 19:46:59 | 显示全部楼层 |阅读模式
我在用 rpmbuild -ba 在SUSE下打包时,总提示以下错误,但我确认在 /usr/bin/hellow 目录下有此二进制文件

是什么地方没有写对,3ks


我的 spes文件如下:

Name: hellow
Version: 1.0
Release: 1
Copyright: GPL
Group: System Environment/Base
Source: hellow-1.0.tar.gz
prefix:/usr/bin
%description
The eject program allows the user to eject removable media
(typically CD-ROMs, floppy disks or Iomega Jaz or Zip disks)
using software control. Eject can also control some multi-
disk CD changers and even some devices' auto-eject features.
Install eject if you'd like to eject removable media using
software control.
%prep
%setup -q
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
%install
make install RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
%files
%defattr(-,root,root)
/usr/bin/hellow

但每次都返回错误:
Processing files: hellow-1.0-1
error: File must begin with "/":
error: File not found: /usr/bin/hellow
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表