Cleanup spec a bit

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-02-17 09:27:00 +01:00
parent f757b6f71a
commit 6f0a8f0c6c
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -15,7 +15,6 @@ Patch101: readline-8.0-shlib.patch
BuildRequires: gcc
BuildRequires: ncurses-devel
BuildRequires: git
%description
The Readline library provides a set of functions that allow users to
@ -28,7 +27,6 @@ commands.
%package devel
Summary: Files needed to develop programs which use the readline library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: ncurses-devel%{?_isa}
%description devel
The Readline library provides a set of functions that allow users to
@ -48,16 +46,14 @@ library.
%autosetup -p1
%build
export CPPFLAGS="-I%{_includedir}/ncurses"
%configure
%configure --with-curses --disable-install-examples
%make_build
%install
%make_install
rm -rf $RPM_BUILD_ROOT%{_datadir}/readline
rm -rf $RPM_BUILD_ROOT%{_docdir}/readline
rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
rm -vrf %{buildroot}%{_docdir}/readline
rm -vf %{buildroot}%{_infodir}/dir*
%ldconfig_scriptlets