- cleanup specfile

- get rid of dev dependency
This commit is contained in:
Than Ngo 2007-11-13 13:15:41 +00:00
parent 4115656251
commit 95a542240f

View File

@ -1,7 +1,7 @@
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: 9%{?dist} Release: 10%{?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
@ -35,14 +35,14 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/profile.d mkdir -p $RPM_BUILD_ROOT/etc/profile.d
install -p -m 755 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/ install -p -m 644 %{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
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
/sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz > /dev/null 2>&1 || : /sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz
fi fi
%clean %clean
@ -51,13 +51,17 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING AUTHORS LICENSE EXAMPLES README AUTHORS NEWS %doc COPYING AUTHORS LICENSE EXAMPLES README AUTHORS NEWS
%config /etc/profile.d/which-2.* /etc/profile.d/which-2.*
%{_bindir}/* %{_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 * Tue Nov 13 2007 Than Ngo <than@redhat.com> 2.16-10
- cleanup specfile
- get rid of dev dependency
* Mon Apr 23 2007 Than Ngo <than@redhat.com> - 2.16-9
- add missing which-2 script for csh - add missing which-2 script for csh
- cleanup specfile #226539 - cleanup specfile #226539