RPM:在带有 CUPS 1.7.1 的 Centos 6 上找到的已安装(但未打包)文件

Fra*_*lez 5 compiling rpm cups

尝试通过 RPM 在 Centos 6.5 上安装 CUPS 1.7.1,我使用:

# rpmbuild -ta cups-1.7.1-source.tar.bz2 --without dbus --without libusb1
Run Code Online (Sandbox Code Playgroud)

但因以下错误而停止:

Checking for unpackaged file(s): 

/usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/cups-1.7.1-1.x86_64 
error: Installed (but unpackaged) file(s) found: /usr/share/cups/usb/org.cups.usb-quirks

RPM build errors: 
Installed (but unpackaged) file(s) found: 

/usr/share/cups/usb/org.cups.usb-quirks
Run Code Online (Sandbox Code Playgroud)

小智 14

此文件在 %install 阶段安装到 %{buildroot} 目录中,但未在 %files 中引用。rpmbuild 不允许 %{buildroot} 中没有打包在 %files 中的文件。因此,如果需要该文件,请将其添加到 %files 中,或者不要将其安装到 %{buildroot}