[Fedora-packaging] Is this allowed? Files and libs duplicated in subpackages

Michael Schwendt mschwendt at gmail.com
Wed Sep 4 20:13:34 UTC 2013


On Wed, 4 Sep 2013 22:00:06 +0200, Michael Schwendt wrote:

> Originally, avoiding duplicate files in %files sections has been made a
> checklist item, ...

... and, of course, also to not include a file more than once in a single
%files section. That's a scenario such as with this application package,
but not limited to that:

    %files
    %{_bindir}/*
    %{_datadir}/*
    %{_libdir}/*
    %doc COPYING README NEWS
    %{_datadir}/applications/*.desktop
    %dir %{_libdir}/%{name}
    %{_libdir}/%{name}/plugins/

The entry for %_datadir/* also includes the .desktop file (well, perhaps
even other stuff in %_datadir/applications but that's a different prob ;).
The entry for %_libdir/* also includes %_libdir/%name and everything
below it. This confusing %files section bears the risk that the packager
makes mistakes when splitting of the plugins into subpackages, for example.

[The case when files are duplicated in several subpackages is worse.]


More information about the packaging mailing list