From 737c1b435188d5fbb17e008a60d2b8492bb72c86 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 12 Jul 2018 10:32:15 +0200 Subject: [PATCH] remove unneeded scriptlets Those are not needed as per guidelines. Signed-off-by: Igor Gnatenko --- readline.spec | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/readline.spec b/readline.spec index 50faf08..e1a4ceb 100644 --- a/readline.spec +++ b/readline.spec @@ -18,9 +18,7 @@ Patch5: Readline-7.0-patch-5.patch # fix file permissions, remove RPATH, use CFLAGS Patch101: readline-7.0-shlib.patch -Requires(post): info -Requires(preun): info -BuildRequires: gcc +BuildRequires: gcc BuildRequires: ncurses-devel BuildRequires: git @@ -36,8 +34,6 @@ commands. Summary: Files needed to develop programs which use the readline library Requires: %{name}%{?_isa} = %{version}-%{release} Requires: ncurses-devel%{?_isa} -Requires(post): info -Requires(preun): info %description devel The Readline library provides a set of functions that allow users to @@ -68,26 +64,7 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/readline rm -rf $RPM_BUILD_ROOT%{_docdir}/readline rm -f $RPM_BUILD_ROOT%{_infodir}/dir* -%post -/sbin/ldconfig -/sbin/install-info %{_infodir}/history.info %{_infodir}/dir || : -/sbin/install-info %{_infodir}/rluserman.info %{_infodir}/dir || : - -%postun -p /sbin/ldconfig - -%preun -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/history.info %{_infodir}/dir || : - /sbin/install-info --delete %{_infodir}/rluserman.info %{_infodir}/dir || : -fi - -%post devel -/sbin/install-info %{_infodir}/history.info %{_infodir}/dir || : - -%preun devel -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/readline.info %{_infodir}/dir || : -fi +%ldconfig_scriptlets %files %license COPYING USAGE