!10 remove runpath of files
From: @eaglegai Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
60d9770b0b
60
postfix.spec
60
postfix.spec
@ -23,7 +23,7 @@
|
||||
Name: postfix
|
||||
Summary: Postfix Mail Transport Agent
|
||||
Version: 3.3.1
|
||||
Release: 14
|
||||
Release: 15
|
||||
Epoch: 2
|
||||
URL: http://www.postfix.org
|
||||
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||
@ -49,6 +49,7 @@ Patch10: postfix-3.6.2-glibc-234-build-fix.patch
|
||||
|
||||
BuildRequires: libdb-devel perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel
|
||||
BuildRequires: cyrus-sasl-devel pcre-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
||||
BuildRequires: chrpath
|
||||
Requires(post): systemd-sysv %{_sbindir}/alternatives %{_bindir}/openssl
|
||||
Requires(pre): %{_sbindir}/groupadd %{_sbindir}/useradd
|
||||
Requires(preun): %{_sbindir}/alternatives
|
||||
@ -263,6 +264,54 @@ do
|
||||
touch %{buildroot}$i
|
||||
done
|
||||
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/anvil
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/spawn
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/trivial-rewrite
|
||||
chrpath -d %{buildroot}%{_sbindir}/postlock
|
||||
chrpath -d %{buildroot}%{_sbindir}/postkick
|
||||
chrpath -d %{buildroot}%{_sbindir}/postfix
|
||||
chrpath -d %{buildroot}%{_sbindir}/postlog
|
||||
chrpath -d %{buildroot}%{_sbindir}/postdrop
|
||||
chrpath -d %{buildroot}%{_libdir}/postfix/*.so*
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/smtp
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/pipe
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/master
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/nqmgr
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/scache
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/cleanup
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/postscreen
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/error
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/proxymap
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/showq
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/qmgr
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/dnsblog
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/flush
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/local
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/verify
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/smtpd
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/qmqpd
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/virtual
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/lmtp
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/bounce
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/tlsmgr
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/oqmgr
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/pickup
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/discard
|
||||
chrpath -d %{buildroot}%{_libexecdir}/postfix/tlsproxy
|
||||
chrpath -d %{buildroot}%{_sbindir}/sendmail.postfix
|
||||
chrpath -d %{buildroot}%{_sbindir}/smtp-source
|
||||
chrpath -d %{buildroot}%{_sbindir}/postmap
|
||||
chrpath -d %{buildroot}%{_sbindir}/postalias
|
||||
chrpath -d %{buildroot}%{_sbindir}/postqueue
|
||||
chrpath -d %{buildroot}%{_sbindir}/postcat
|
||||
chrpath -d %{buildroot}%{_sbindir}/smtp-sink
|
||||
chrpath -d %{buildroot}%{_sbindir}/postconf
|
||||
chrpath -d %{buildroot}%{_sbindir}/postsuper
|
||||
chrpath -d %{buildroot}%{_sbindir}/postmulti
|
||||
|
||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||
echo "%{_libdir}/postfix" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||
|
||||
function split_file
|
||||
{
|
||||
grep "$1" "$3" >> "$3.d/$2" || :
|
||||
@ -283,6 +332,7 @@ popd
|
||||
|
||||
%post -e
|
||||
%systemd_post %{name}.service
|
||||
/sbin/ldconfig
|
||||
|
||||
%{_sbindir}/postfix set-permissions upgrade-configuration \
|
||||
daemon_directory=%{postfix_daemon_dir} \
|
||||
@ -354,6 +404,7 @@ exit 0
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
/sbin/ldconfig
|
||||
|
||||
%post sysvinit
|
||||
/sbin/chkconfig --add postfix >/dev/null 2>&1 ||:
|
||||
@ -380,6 +431,7 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{sasl_config_dir}/smtpd.conf
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/smtp.postfix
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
%{_unitdir}/postfix.service
|
||||
%{postfix_doc_dir}
|
||||
%dir %attr(0700,postfix,root) %{postfix_queue_dir}/active
|
||||
@ -494,6 +546,12 @@ fi
|
||||
%{postfix_doc_dir}/README_FILES/*
|
||||
|
||||
%changelog
|
||||
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2:3.3.1-15
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:remove runpath of files
|
||||
|
||||
* Tue Aug 10 2021 gaihuiying <gaihuiying1@huawei.com> - 2:3.3.1-14
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user