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 Because the ldconfig_scriptlets stuff only work in koji, not in other build system (brew, cbs, ...) Remi P.S. the condition will, perhaps, need to be fixed for el-8, but for now nobody can say what will be in this distro. > > Cheers, > > Mark > _______________________________________________ > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx > _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx