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
|
||||
popd
|
||||
|
||||
#remove executable bit from docs
|
||||
#remove executable bit from docs and Perl modules
|
||||
for ddir in doc perl/imap/examples
|
||||
do
|
||||
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 ".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
|
||||
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
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%exclude %_sbindir/cyr_virusscan
|
||||
%{_mandir}/man1/*
|
||||
# RF hardcoded-library-path in /usr/lib/cyrus-imapd
|
||||
/usr/lib/cyrus-imapd
|
||||
|
Loading…
Reference in New Issue
Block a user