fix lib directory for 'CGI' in %install section.

This commit is contained in:
Robin Norwood 2007-02-27 16:37:50 +00:00
parent 34e870b0d3
commit 87dc402003

View File

@ -390,7 +390,7 @@ find $RPM_BUILD_ROOT -name '*NDBM*' | xargs rm -rfv
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -exec rm -f {} ';'
# Cleanup binary paths and make cgi files executable
pushd $RPM_BUILD_ROOT%{_libdir}/perl5/%{version}/CGI/eg/
pushd $RPM_BUILD_ROOT/usr/lib/perl5/%{version}/CGI/eg/
for i in *.cgi make_links.pl RunMeFirst ; do
sed -i 's|/usr/local/bin/perl|/usr/bin/perl|g' $i
chmod +x $i