[opensuse-buildservice] how to avoid a file in the binary package
Hi all, building my app "showimage" on OBS, I get the following warning: showimage.i586: W: install-file-in-docs /usr/share/doc/packages/showimage/INSTALL [ 79s] A file whose name suggests that it contains installation instructions is [ 79s] included in the package. Such instructions are often not relevant for already [ 79s] installed packages; if this is the case for this file and it does not contain [ 79s] any information that is of interest after the package has been built and [ 79s] installed, do not include the file in the binary package. How can I define that the INSTALL file is only part of the .src package ? https://build.opensuse.org/package/view_file?expand=1&file=showimage.spec&package=showimage&project=home%3Amartinkoller -- Best regards/Schöne Grüße Martin A: Because it breaks the logical sequence of discussion Q: Why is top posting bad? () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Saturday 2013-04-06 22:23, Martin Koller wrote:
building my app "showimage" on OBS, I get the following warning:
showimage.i586: W: install-file-in-docs /usr/share/doc/packages/showimage/INSTALL [ 79s] A file whose name suggests that it contains installation instructions is [ 79s] included in the package. Such instructions are often not relevant for already [ 79s] installed packages; if this is the case for this file and it does not contain [ 79s] any information that is of interest after the package has been built and [ 79s] installed, do not include the file in the binary package.
How can I define that the INSTALL file is only part of the .src package ?
Do not mark it as %doc (in fact, do not list it at all in %files), do not let it be installed during %install, and if need be, remove it from %buildroot during %install. It's that simple. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Sat, Apr 6, 2013 at 4:27 PM, Jan Engelhardt
On Saturday 2013-04-06 22:23, Martin Koller wrote:
building my app "showimage" on OBS, I get the following warning:
showimage.i586: W: install-file-in-docs /usr/share/doc/packages/showimage/INSTALL [ 79s] A file whose name suggests that it contains installation instructions is [ 79s] included in the package. Such instructions are often not relevant for already [ 79s] installed packages; if this is the case for this file and it does not contain [ 79s] any information that is of interest after the package has been built and [ 79s] installed, do not include the file in the binary package.
How can I define that the INSTALL file is only part of the .src package ?
Do not mark it as %doc (in fact, do not list it at all in %files), do not let it be installed during %install, and if need be, remove it from %buildroot during %install. It's that simple.
Or in the files section %exclude %{_docdir}/%{name}/INSTALL I don't know if there is a preference of deleting it in the %install section or not. I personally prefer the %exclude operator just because it is very clear what it is doing. Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Greg Freemyer
-
Jan Engelhardt
-
Martin Koller