|
如何对一个简单的程序打包,我用的是 RPM version 4.2.1, 写了一个 main-1.spec文件, 如下:
Summary: GNU indent
Name: main
Version: 1.0.0
Release: 1
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Tools
%description
The GNU indent program reformats C code t any of a variety of formatting standards, or you can define your own.
%prep
%setup -q
%build
./configure
make
%install
make install
%files
%defattr(-,root,root)
/usr/local/bin/main
%doc /usr/local/share/info/main.info
%doc %attr(0444,root,root) /usr/local/share/man/man1/main.l
%doc COPYING ARTHORS README NEWS
将main-1.0.0.tar.gz放到/usr/src/redhat/SOURCES文件夹下,执行命令rpm -p main-1.spec ,但是没有打包成功!!
到底该如何进行打包?高手们帮帮忙,不胜感激!!!!!!!! |
|