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 <b...@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
_______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint