remove install-info
Those are not needed as per guidelines. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
a723e62ca0
commit
20982793aa
23
which.spec
23
which.spec
@ -9,8 +9,6 @@ Source2: which2.csh
|
|||||||
Url: https://savannah.gnu.org/projects/which/
|
Url: https://savannah.gnu.org/projects/which/
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The which command shows the full pathname of a specified program, if
|
The which command shows the full pathname of a specified program, if
|
||||||
@ -21,33 +19,22 @@ the specified program is in your PATH.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
%make_build
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
install -p -m 644 %{SOURCE1} %{SOURCE2} $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
|
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
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc EXAMPLES README AUTHORS NEWS
|
%doc EXAMPLES README AUTHORS NEWS
|
||||||
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
|
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
|
||||||
%{_bindir}/*
|
%{_bindir}/which
|
||||||
%{_infodir}/which.info.gz
|
%{_infodir}/which.info*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/man1/which.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Feb 16 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.21-8
|
* Fri Feb 16 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.21-8
|
||||||
|
Loading…
Reference in New Issue
Block a user