当前位置: 技术问答>linux和unix
RPM安装包制作过程正常结束却为什么没有生成.rpm文件??
来源: 互联网 发布时间:2015-09-06
本文导语: 是这样一个例子: http://www-900.ibm.com/developerWorks/cn/linux/management/package/rpm/part1/index.shtml .spec文件内容如下,结果安装了indent,却没有生成.rpm文件(应该在/usr/src/redhat/SRPM,RPM下吧?): Summary: GNU indent Name: indent Version...
是这样一个例子:
http://www-900.ibm.com/developerWorks/cn/linux/management/package/rpm/part1/index.shtml
.spec文件内容如下,结果安装了indent,却没有生成.rpm文件(应该在/usr/src/redhat/SRPM,RPM下吧?):
Summary: GNU indent
Name: indent
Version: 2.2.6
Release: 2
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Tools
BuildRoot: %{_builddir}/%{name}-root
%description
The GNU indent program reformats C code to any of a variety of
formatting standards, or you can define your own.
%prep
%setup -q
%build
./configure
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/local/bin/indent
%doc /usr/local/info/indent.info
%doc %attr(0444,root,root) /usr/local/man/man1/indent.1
%doc COPYING AUTHORS README NEWS
http://www-900.ibm.com/developerWorks/cn/linux/management/package/rpm/part1/index.shtml
.spec文件内容如下,结果安装了indent,却没有生成.rpm文件(应该在/usr/src/redhat/SRPM,RPM下吧?):
Summary: GNU indent
Name: indent
Version: 2.2.6
Release: 2
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Tools
BuildRoot: %{_builddir}/%{name}-root
%description
The GNU indent program reformats C code to any of a variety of
formatting standards, or you can define your own.
%prep
%setup -q
%build
./configure
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/local/bin/indent
%doc /usr/local/info/indent.info
%doc %attr(0444,root,root) /usr/local/man/man1/indent.1
%doc COPYING AUTHORS README NEWS
|
1、你提供的连接没法打开。
2、不要失望,大家都有自己的事情,有时回复比较慢,这也是正常的。
2、不要失望,大家都有自己的事情,有时回复比较慢,这也是正常的。