Summary: A small lighttpd
Name: lighttpd
Version: 1.4.28
Release: 1000
License: LGPL
Group: Applications/Webserver
URL: http://www.lighttpd.com/
Source: http://www.lighttpd.com/lighttpd-%{version}.tar.gz
BuildRoot: %{name}-%{version}
Prefix: /opt/src/Opensource/lighttpd-1.4.28/install
#Do not terminate if there are files in the buildroot that are not packed into the rpm.
%define _unpackaged_files_terminate_build 0
#Do not terminate if there are any documents missing in the buildroot dir and not packaged
%define _missing_doc_files_terminate_build 0
%description
A small foot print webserver
%files
%defattr(-, root, root, 0755)
#%doc README
/sbin/lighttpd
/lib/mod_auth.so
/lib/mod_cgi.so
/lib/mod_cml.so
/lib/mod_compress.so
鉴于此,我使用以下命令构建我的 rpm
rpmbuild -bb --buildroot /opt/src/Opensource/lighttpd-1.4.28/install lightppd.spec
生成的 rpm 上的 rpm -qpi 给我以下输出
名称:lighttpd 重定位:/opt/src/Opensource/lighttpd-1.4.28/install
版本:1.4.28 供应商:存储库
发布:1000 构建日期:2011 年 7 月 19 日星期二 05:17:44 PM PDT
安装日期:(未安装)构建主机:
组:应用程序/Webserver 源 RPM:lighttpd-1.4.28-1000.src.rpm
尺寸:259873 许可证:LGPL
签名:(无)
安装时我发出命令
rpm -ivh --prefix /opt/components/ --dbpath /opt/rpm/database
我安装了 rpm
但我没有看到任何安装目录或安装在位置 /opt/components 中的文件