fixup export-libs macro logic

1 /sbin/ldconfig: relative path `1' used to build cache
   2 warning: %postun(bind-export-libs-32:9.11.4-6.P1.fc29.x86_64) scriptlet failed, exit status 1

The reason for that is that macro defined below becomes part of
export-libs subpackage. %end will terminate post/postun immediately
without such side-effect.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-09-29 09:51:45 +02:00
parent e665b7deb0
commit 5efb1da1ac
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -52,7 +52,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: MPLv2.0
Version: 9.11.4
Release: 10%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
Release: 11%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
#
@ -1045,8 +1045,10 @@ fi
%if %{with EXPORT_LIBS}
%post export-libs -p /sbin/ldconfig
%end
%postun export-libs -p /sbin/ldconfig
%end
%endif
# Fix permissions on existing device files on upgrade
@ -1437,6 +1439,9 @@ rm -rf ${RPM_BUILD_ROOT}
%changelog
* Sat Sep 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 32:9.11.4-11.P2
- Fix export-libs macro & scriptlet
* Wed Sep 26 2018 Petr Menšík <pemensik@redhat.com> - 32:9.11.4-10.P2
- Reenable IDN output but allow turning it off (#1580200)