From b31e43be0d65962356407cee99d661c28c6908e8 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Apr 04 2018 20:38:54 +0000 Subject: Split RPM scriptlets (#1563832) --- diff --git a/libidn2.spec b/libidn2.spec index c724f41..d5b8465 100644 --- a/libidn2.spec +++ b/libidn2.spec @@ -1,7 +1,7 @@ Summary: Library to support IDNA2008 internationalized domain names Name: libidn2 Version: 2.0.4 -Release: 6%{?dist} +Release: 7%{?dist} License: (GPLv2+ or LGPLv3+) and GPLv3+ URL: https://www.gnu.org/software/libidn/#libidn2 @@ -74,17 +74,18 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir %check make %{?_smp_mflags} -C tests check -%post -/sbin/ldconfig +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%post -n idn2 /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : -%preun +%preun -n idn2 if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : fi -%postun -p /sbin/ldconfig - %files %license COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2 %doc AUTHORS NEWS README.md @@ -104,6 +105,9 @@ fi %{_infodir}/%{name}.info* %changelog +* Wed Apr 04 2018 Robert Scheck 2.0.4-7 +- Split RPM scriptlets (#1563832) + * Mon Apr 02 2018 Robert Scheck 2.0.4-6 - Use splitting suggestions from Nikos Mavrogiannopoulos instead