On Thu, Nov 29, 2018 at 7:05 AM Michael Schroeder <mls@suse.de> wrote:
On Thu, Nov 29, 2018 at 11:58:15AM +0200, Mikhail Kasimov wrote:
After having couple of tests on [0] https://build.opensuse.org, let me introduce a way (workable patch) how to have normal %license <-> %doc RPM-macros backward compability for wide row of various versions of different RPM-based distros (RedHat/CentOS/Fedora/SUSE/openSUSE/Mageia/Mandriva). [...]
Can't you do something simple like (untested):
%{?!_licensedir:%define license %%doc}
This works for everyone but SLE 12 and SLE 12.1 (and corresponding Leap derivative releases). The reason it doesn't work is because %_licensedir is defined and filesystem didn't own the directory. So the %license macro would work, but OBS would reject the package anyway. That was fixed in SLE 12.2. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org