-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Sat, 2018-02-17 at 07:08 +0100, Remi Collet wrote:
Le 16/02/2018 à 15:18, Mark Wielaard a écrit :
> I had to tweak it a little though so the spec could still be build
> older RHEL or Fedora (I reuse the spec to build on RHEL and with SCL).
> Maybe something like the following is better for people who have a spec
> file they might reuse on systems that might not have this macro:
>
> # Only the latest Fedora and EPEL have these scriptlets,
> # older, or not up to date, Fedora and plain RHEL don't.
> %if 0%{?ldconfig_scriptlets:1}
> %ldconfig_scriptlets libs
> %ldconfig_scriptlets libelf
> %else
> %post libs -p /sbin/ldconfig
> %postun libs -p /sbin/ldconfig
> %post libelf -p /sbin/ldconfig
> %postun libelf -p /sbin/ldconfig
> %endif
Even simpler
%if 0%{?fedora} < 28
%post libs -p /sbin/ldconfig
%postun libs - p /sbin/ldconfig
%post libelf -p /sbin/ldconfig
%postun libelf -p /sbin/ldconfig
%endif
This is wrong because. This macro is defined on all EPEL and Fedora, so Mark's
way is correct (almost).
Because the ldconfig_scriptlets stuff only work in koji, not in
other
build system (brew, cbs, ...)
This is not a problem for Fedora.
- --
- -Igor Gnatenko
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEhLFO09aHZVqO+CM6aVcUvRu8X0wFAlqH8G0ACgkQaVcUvRu8
X0zjtg//XBoj8FwvFwOsdMAOgyncuEiSTgUBfKXnbLGsfqxTFSYPnZP3mFv5W/sZ
4V9yg27CodQc7lvD86N5uICRNhmWNYkJ1N/uTeqvySayQhvSDG2N5w+39fJdNOlI
vxcsCewbyf8af70oYPL4AF5F7y0er7Og/YfxRlJnWeUg2o6z/691SmTErNQ1xUJu
EaKc+2d0lsSPE7XGCtiC7gSoqhTM3jPW8RhXVgY4lJNSvjFHAgoy8MIikxGbi9/J
3D91rdirr5bB4yS/KlV2cVe6bHJusGwAZoqmwbDyaIoCm7/7xCC+XDXo/U30iR+k
LqZ3LBRd511xeQ8jIYRPtclbruxzmC30/WgkIYUWstN/yuFvykxK3wS9yGzudzpQ
hsuWejdOLRxE/lsR6DoP3IwOsLtY+QmItuT3C9xDGrhpnOgTxe2FpwyuAS4RNCG/
jjQ1gl6q6Fw9mESTXTxeNjC9dGg9Sb5HiW1Hnps5bi9jaEJ/FCfRzmUwEIlQETqz
JRdAWa1ysJwTb9zCC5wfzaiv2kklJFcAYffz8rbH0TnB++KzA6aDL6GByxArB+Jl
/EZzGpQfc7LN74p7jQp/SdCIn+pWkrh7gyEO2F//0rMsg+z5irUj+pYY6/nAqu0s
28X0AmZqdCMEBjGS5fkttO084uuNVhnikxLtoTivI+lp8zMUh+A=
=AfcB
-----END PGP SIGNATURE-----