remove unneeded scriptlets

Those are not needed as per guidelines.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-12 10:32:15 +02:00
parent 1a718f87c4
commit 737c1b4351
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -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