- add missing which-2 script for csh

- cleanup specfile #226539
This commit is contained in:
Than Ngo 2007-04-23 13:04:48 +00:00
parent 5fcb03b69c
commit 7948d3ad5f
2 changed files with 21 additions and 11 deletions

4
which-2.csh Executable file
View File

@ -0,0 +1,4 @@
# Initialization script for csh
# export AFS, if you are in AFS environment
alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

View File

@ -1,18 +1,18 @@
Summary: Displays where a particular program in your path is located. Summary: Displays where a particular program in your path is located
Name: which Name: which
Version: 2.16 Version: 2.16
Release: 8 Release: 9%{?dist}
License: GPL License: GPL
Group: Applications/System Group: Applications/System
Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz
Source1: which-2.sh Source1: which-2.sh
Source2: which-2.csh
Url: http://www.xs4all.nl/~carlo17/which/ Url: http://www.xs4all.nl/~carlo17/which/
Patch: which-2.13-afs.patch Patch: which-2.13-afs.patch
Patch1: which-2.14-broken.patch Patch1: which-2.14-broken.patch
Prefix: %{_prefix} Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires(preun): /sbin/install-info
Prereq: /sbin/install-info Requires(post): /sbin/install-info
Prereq: dev
%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
@ -20,20 +20,22 @@ the specified program is in your PATH.
%prep %prep
%setup -q %setup -q
%patch -p1 -b .afs %patch -p1 -b .afs
%patch1 -p1 -b .broken %patch1 -p1 -b .broken
%build %build
%configure %configure
make make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%makeinstall make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/profile.d mkdir -p $RPM_BUILD_ROOT/etc/profile.d
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d install -p -m 755 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/
%post %post
/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz > /dev/null 2>&1 || : /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz > /dev/null 2>&1 || :
@ -48,13 +50,17 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc EXAMPLES README AUTHORS NEWS %doc COPYING AUTHORS LICENSE EXAMPLES README AUTHORS NEWS
%{_bindir}/*
%config /etc/profile.d/which-2.* %config /etc/profile.d/which-2.*
%{_bindir}/*
%{_infodir}/which.info.gz %{_infodir}/which.info.gz
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Mon Apr 23 2007 Than Ngo <than@redhat.com> - 2.16-9.fc7
- add missing which-2 script for csh
- cleanup specfile #226539
* Mon Jan 22 2007 Than Ngo <than@redhat.com> - 2.16-8 * Mon Jan 22 2007 Than Ngo <than@redhat.com> - 2.16-8
- install-info scriptlet failures - install-info scriptlet failures