find requires solved

This commit is contained in:
Peter Vrabec 2005-03-23 14:44:03 +00:00
parent 80be3987c0
commit ac7abda7be

View File

@ -20,8 +20,8 @@ Prereq: /sbin/install-info, /sbin/chkconfig, grep
Obsoletes: amd
# We need to filter out some perl requirements for now.
#%define _use_internal_dependency_generator 0
#%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
%define _use_internal_dependency_generator 0
%define old_find_requires %{__find_requires}
%description
Am-utils includes an updated version of Amd, the popular BSD
@ -44,7 +44,7 @@ autoconf
autoheader
%patch1 -p1 -b .gcc4
find_requires=`rpm --eval %%{__find_requires}`
find_requires=%{old_find_requires}
echo "$find_requires | grep -v lostaltmail.conf" > find-requires
chmod +x find-requires
@ -87,6 +87,8 @@ rm -f $RPM_BUILD_ROOT/etc/lostaltmail.conf-sample
%clean
rm -rf $RPM_BUILD_ROOT
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
%pre
# Check if we have an old fashioned amd.conf and rename if to amd.net
if test "$1" -ne 0