|
|
我在用 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 |
|