From 20982793aa5cd0e84c97f04f372bc40b25b510d1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 12 Jul 2018 10:30:53 +0200 Subject: [PATCH] remove install-info Those are not needed as per guidelines. Signed-off-by: Igor Gnatenko --- which.spec | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/which.spec b/which.spec index 099eb15..5bc6f75 100644 --- a/which.spec +++ b/which.spec @@ -9,8 +9,6 @@ Source2: which2.csh Url: https://savannah.gnu.org/projects/which/ BuildRequires: gcc BuildRequires: readline-devel -Requires(preun): /sbin/install-info -Requires(post): /sbin/install-info %description The which command shows the full pathname of a specified program, if @@ -21,33 +19,22 @@ the specified program is in your PATH. %build %configure - -make %{?_smp_mflags} +%make_build %install -make install DESTDIR=$RPM_BUILD_ROOT +%make_install mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/ rm -f $RPM_BUILD_ROOT%{_infodir}/dir -%post -/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz -exit 0 - -%preun -if [ $1 = 0 ]; then - /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz -fi -exit 0 - %files %license COPYING %doc EXAMPLES README AUTHORS NEWS %attr(0644,root,root) %{_sysconfdir}/profile.d/which2.* -%{_bindir}/* -%{_infodir}/which.info.gz -%{_mandir}/*/* +%{_bindir}/which +%{_infodir}/which.info* +%{_mandir}/man1/which.1* %changelog * Fri Feb 16 2018 Jason L Tibbitts III - 2.21-8