From 3b86d63b872c52e5082b6189613d693eb555bfa8 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 13 Jun 2018 16:33:39 -0500 Subject: [PATCH] Fix perl module perms and shebangs. --- cyrus-imapd.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec index 226d4e4..b851555 100644 --- a/cyrus-imapd.spec +++ b/cyrus-imapd.spec @@ -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