尝试将 wget-1.13.tar.gz 打包成 rpm(我正在重新学习这个过程),当我进行空运行时,我遇到了这些错误。
error: Installed (but unpackaged) file(s) found:
/etc/wgetrc
/usr/bin/wget
/usr/share/info/dir
/usr/share/info/wget.info.gz
/usr/share/locale/be/LC_MESSAGES/wget.mo
RPM build errors:
Installed (but unpackaged) file(s) found:
/etc/wgetrc
/usr/bin/wget
/usr/share/info/dir
/usr/share/info/wget.info.gz
/usr/share/locale/be/LC_MESSAGES/wget.mo
/usr/share/locale/bg/LC_MESSAGES/wget.mo
/usr/share/locale/ca/LC_MESSAGES/wget.mo
它抱怨的路径还有更多,所以这只是一个片段,但您应该明白了。
我的规格文件如下:
Name: wget
Version: 1.13
Release: 1%{?dist}
Summary: wget to get wget things
Group: System Environment/Base
License: GPL
#URL:
Source0: %{name}-%{version}.tar.gz
BuildRoot: /tmp/%{name}-%{version}-%{release}-root
#BuildRequires:
#Requires:
%description
Wget is a free software package for retrieving files using HTTP, HTTPS ... GNU Wget has many features to make retrieving large files
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
%changelog
那么一个基本的规格文件,我哪里出错了?
另外,我的 RPMS 的文件结构是 $HOME/rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
谢谢
答案1
现在您需要进行填充%files
,以便安装的文件包含在生成的二进制包中。