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