rpm包

发表于:2007-05-26来源:作者:点击数: 标签:
rpm包 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
rpm包

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

原文转自:http://www.ltesting.net