rpms/which/devel which-2.csh,1.2,1.3 which.spec,1.12,1.13

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Apr 23 13:04:50 UTC 2007


Author: than

Update of /cvs/dist/rpms/which/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17418

Modified Files:
	which.spec 
Added Files:
	which-2.csh 
Log Message:
- add missing which-2 script for csh
- cleanup specfile #226539




Index: which-2.csh
===================================================================
RCS file: which-2.csh
diff -N which-2.csh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ which-2.csh	23 Apr 2007 13:04:48 -0000	1.3
@@ -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'


Index: which.spec
===================================================================
RCS file: /cvs/dist/rpms/which/devel/which.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- which.spec	22 Jan 2007 10:45:31 -0000	1.12
+++ which.spec	23 Apr 2007 13:04:48 -0000	1.13
@@ -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
 Version: 2.16
-Release: 8
+Release: 9%{?dist}
 License: GPL
 Group: Applications/System
 Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz
 Source1: which-2.sh
+Source2: which-2.csh
 Url: http://www.xs4all.nl/~carlo17/which/
 Patch: which-2.13-afs.patch
 Patch1: which-2.14-broken.patch
-Prefix: %{_prefix}
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Prereq: /sbin/install-info
-Prereq: dev
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires(preun): /sbin/install-info
+Requires(post): /sbin/install-info
 
 %description
 The which command shows the full pathname of a specified program, if
@@ -20,20 +20,22 @@
 
 %prep
 %setup -q
+
 %patch -p1 -b .afs
 %patch1 -p1 -b .broken
 
 %build
 %configure
 
-make
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%makeinstall
+make install DESTDIR=$RPM_BUILD_ROOT
+
 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
 /sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz > /dev/null 2>&1 || :
@@ -48,13 +50,17 @@
 
 %files
 %defattr(-,root,root)
-%doc EXAMPLES README AUTHORS NEWS
-%{_bindir}/*
+%doc COPYING AUTHORS LICENSE EXAMPLES README AUTHORS NEWS
 %config /etc/profile.d/which-2.*
+%{_bindir}/*
 %{_infodir}/which.info.gz
 %{_mandir}/*/*
 
 %changelog
+* Mon Apr 23 2007 Than Ngo <than at redhat.com> - 2.16-9.fc7
+- add missing which-2 script for csh
+- cleanup specfile #226539
+
 * Mon Jan 22 2007 Than Ngo <than at redhat.com> - 2.16-8
 - install-info scriptlet failures
 




More information about the fedora-cvs-commits mailing list