Hello! чт, 29 нояб. 2018 г. в 14:08, Neal Gompa <ngompa13@gmail.com>:
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.
This bumped me to take one more experiment: to re-check with backported repos. And the most interesting results are for i586 architecture on openSUSE_Leap_42.3_Ports (succeeded) and SLE_12_SP3_Backports (failed): (succeeded) https://build.opensuse.org/package/live_build_log/home:k_mikhail:branches:ho... (failed) https://build.opensuse.org/package/live_build_log/home:k_mikhail:branches:ho... ( [33s] fprobe-1.1-23.1.i586.rpm: directories not owned by a package: - /usr/share/licenses). The same is to the second package. Me surprised... Ideas? "Can't you do something simple like (untested): %{?!_licensedir:%define license %%doc}" <-- I'm very сareful on "simplifications" instead of giving explicit constructions. In what exact location of spec file such construction should be put? Thanks! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org