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.
On Sun, Feb 01, 2015 at 01:46:52PM +0100, Miro Hrončok wrote:
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
Would it be possible to remove the file at the end of %install and just point the %license tag to the file present in the sources?
Pierre
On 1.2.2015 14:02, Pierre-Yves Chibon wrote:
Would it be possible to remove the file at the end of %install and just point the %license tag to the file present in the sources?
Definitely possible, but things would get messy. See context:
https://github.com/devassistant/dap2rpm/issues/4
Am Sonntag, den 01.02.2015, 13:46 +0100 schrieb Miro Hrončok:
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.
Hello Miro,
you can do it like this. It will avoid the problem of that specific %license-file being listed twice in the resulting rpm.
%files %license %{_datadir}/%{name}/docs/LICENSE %doc %{_datadir}/%{name}/docs %doc %exclude %{_datadir}/%{name}/docs/LICENSE
Cheers Björn
packaging@lists.fedoraproject.org