[Fedora-packaging] Can %license be inside folder specified in %doc?

Miro Hrončok mhroncok at redhat.com
Sun Feb 1 12:46:52 UTC 2015


Hi,

consider the foollowing %files section

    %files
    %license %{_datadir}/%{name}/docs/LICENSE
    %doc %{_datadir}/%{name}/docs

Is it OK? Building the RPM nly generates warning about a file being
listed twice. Rpmlint is silent.

The thing I want to avoid is to use the following instead:

    %files
    %license %{_datadir}/%{name}/docs/LICENSE
    %doc %{_datadir}/%{name}/docs/every
    %doc %{_datadir}/%{name}/docs/other
    %doc %{_datadir}/%{name}/docs/file
    %doc %{_datadir}/%{name}/docs/in
    %doc %{_datadir}/%{name}/docs/here
    %doc %{_datadir}/%{name}/docs/one
    %doc %{_datadir}/%{name}/docs/by
    %doc %{_datadir}/%{name}/docs/1

Thanks for your help.

-- 
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok


More information about the packaging mailing list