每天进步一点点
全部博文(137)
分类:
2005-06-28 12:45:56
1 给 /path/what you want to rpm 打包
tar zcvf test.tgz *
2 cp /test.tgz /usr/src/redhat/SOURCE
3 在 /usr/src/redhat/SOURCE 下建一个文件 test.spec
内容:
Summary: Simple Example for RPM Building DEMO.
Name: test
Version: 1.0
Release: 1
Copyright: test
Group: test
Source: test.tgz
Packager: tester
%description
This package is used as a RPM building package.
%changelog
* Thu Jun 2005 test
- build for the first time.
%prep
%setup -c
%build
%install
%files
%doc
/path to your files/if only write directory here means all files under it
4 在/usr/src/redhat/SOURCE 下
rpmbuild -ba test.spec