Fix perl module perms and shebangs.
This commit is contained in:
parent
2eb8f8799b
commit
3b86d63b87
@ -433,7 +433,7 @@ pushd %buildroot/usr/lib/cyrus-imapd
|
|||||||
ln -s ../../sbin/deliver
|
ln -s ../../sbin/deliver
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#remove executable bit from docs
|
#remove executable bit from docs and Perl modules
|
||||||
for ddir in doc perl/imap/examples
|
for ddir in doc perl/imap/examples
|
||||||
do
|
do
|
||||||
find $ddir -type f -exec chmod -x {} \;
|
find $ddir -type f -exec chmod -x {} \;
|
||||||
@ -447,6 +447,12 @@ rm %buildroot/%cyrexecdir/pop3proxyd
|
|||||||
find %buildroot -name "perllocal.pod" -exec rm {} \;
|
find %buildroot -name "perllocal.pod" -exec rm {} \;
|
||||||
find %buildroot -name ".packlist" -exec rm {} \;
|
find %buildroot -name ".packlist" -exec rm {} \;
|
||||||
|
|
||||||
|
# The pm files have shebang lines for some reason
|
||||||
|
sed -i -e '1{/usr.bin.perl/d}' %buildroot/%perl_vendorlib/Cyrus/Annotator/{Message,Daemon}.pm
|
||||||
|
|
||||||
|
# And this one gets installed with executable permission
|
||||||
|
chmod -x %buildroot/%perl_vendorlib/Cyrus/Annotator/Daemon.pm
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LD_LIBRARY_PATH=%buildroot/%_libdir
|
export LD_LIBRARY_PATH=%buildroot/%_libdir
|
||||||
@ -628,6 +634,7 @@ getent passwd cyrus >/dev/null || /usr/sbin/useradd -c "Cyrus IMAP Server" -d /v
|
|||||||
%files utils
|
%files utils
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
|
%exclude %_sbindir/cyr_virusscan
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
# RF hardcoded-library-path in /usr/lib/cyrus-imapd
|
# RF hardcoded-library-path in /usr/lib/cyrus-imapd
|
||||||
/usr/lib/cyrus-imapd
|
/usr/lib/cyrus-imapd
|
||||||
|
Loading…
Reference in New Issue
Block a user