https://bugzilla.redhat.com/show_bug.cgi?id=1315022
--- Comment #6 from Mukundan Ragavan nonamedotc@gmail.com --- As for this -
Maybe you could remove: mkdir -p %{buildroot}%{_datadir}/licenses/%{name} cp -p COPYING %{buildroot}%{_datadir}/licenses/%{name}/ and use (for EPEL only, see https://fedorahosted.org/fpc/ticket/586) %{!?_licensedir:%global license %%doc} %license COPYING
I cannot get this to work at all. rpm building fails with
error: Installed (but unpackaged) file(s) found: /usr/share/doc/xfpanel-switch/COPYING Installed (but unpackaged) file(s) found: /usr/share/doc/xfpanel-switch/COPYING
So, I have done this now -
%{__install} -Dp -m644 COPYING %{buildroot}%{_datadir}/licenses/%{name}/COPYING