[Rpm-maint] [rpm-software-management/rpm] Add %optional tag (#417)
Bernhard Rosenkraenzer
notifications at github.com
Wed Mar 14 21:19:03 UTC 2018
Add the %optional tag from rpm5 -- it allows to mark a file in the file
list as optional, meaning if it's there, it's packaged, but if it isn't
there, it will be ignored.
A typical use case is
%optional %{_includedir}/arch-specific-file.h
(easier and shorter than using %ifarch and having to list all
architectures that have the file -- will also automatically do the right
thing on a new architecture being added)
Another typical use case is in autogenerated file lists, e.g.
per-language subpackages in the likes of libreoffice where all languages
include translations, some languages additionally include dictionaries,
etc. -- with %optional, the same file list can be used for every
language subpackage.
Signed-off-by: Bernhard Rosenkränzer <bero at lindev.ch>
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/417
-- Commit Summary --
* Add %optional tag
-- File Changes --
M build/files.c (5)
M lib/rpmfiles.h (1)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/417.patch
https://github.com/rpm-software-management/rpm/pull/417.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/417
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180314/d12a8b79/attachment.html>
More information about the Rpm-maint
mailing list