!50 Delete rpath setting
From: @ultra_planet Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
bba6c29465
20
dovecot.spec
20
dovecot.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: dovecot
|
Name: dovecot
|
||||||
Version: 2.3.15
|
Version: 2.3.15
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Dovecot Secure imap server
|
Summary: Dovecot Secure imap server
|
||||||
License: MIT and LGPLv2.1
|
License: MIT and LGPLv2.1
|
||||||
URL: http://www.dovecot.org/
|
URL: http://www.dovecot.org/
|
||||||
@ -41,7 +41,7 @@ BuildRequires: libtool autoconf automake pkgconfig sqlite-devel libpq-devel
|
|||||||
BuildRequires: mariadb-connector-c-devel libxcrypt-devel openldap-devel krb5-devel
|
BuildRequires: mariadb-connector-c-devel libxcrypt-devel openldap-devel krb5-devel
|
||||||
BuildRequires: quota-devel xz-devel gettext-devel clucene-core-devel libcurl-devel expat-devel
|
BuildRequires: quota-devel xz-devel gettext-devel clucene-core-devel libcurl-devel expat-devel
|
||||||
BuildRequires: lz4-devel libzstd-devel libicu-devel libstemmer-devel multilib-rpm-config
|
BuildRequires: lz4-devel libzstd-devel libicu-devel libstemmer-devel multilib-rpm-config
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel chrpath
|
||||||
|
|
||||||
Requires: openssl >= 0.9.7f-4 systemd
|
Requires: openssl >= 0.9.7f-4 systemd
|
||||||
Requires: %{name}-help
|
Requires: %{name}-help
|
||||||
@ -151,6 +151,15 @@ cd docinstall
|
|||||||
rm -f securecoding.txt thread-refs.txt
|
rm -f securecoding.txt thread-refs.txt
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
cd $RPM_BUILD_ROOT/usr
|
||||||
|
file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
|
||||||
|
do
|
||||||
|
chrpath -d $i
|
||||||
|
done
|
||||||
|
cd -
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
echo "%{_libdir}/%{name}/old-stats" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group dovecot >/dev/null || groupadd -r --gid 97 dovecot
|
getent group dovecot >/dev/null || groupadd -r --gid 97 dovecot
|
||||||
@ -168,6 +177,7 @@ if [ "$1" = "2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
%systemd_post dovecot.service
|
%systemd_post dovecot.service
|
||||||
fi
|
fi
|
||||||
@ -186,6 +196,7 @@ if [ $1 = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
|
|
||||||
@ -278,6 +289,8 @@ make check
|
|||||||
|
|
||||||
%exclude %{_sysconfdir}/dovecot/README
|
%exclude %{_sysconfdir}/dovecot/README
|
||||||
|
|
||||||
|
%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/dovecot
|
%{_includedir}/dovecot
|
||||||
%{_datadir}/aclocal/dovecot*.m4
|
%{_datadir}/aclocal/dovecot*.m4
|
||||||
@ -292,6 +305,9 @@ make check
|
|||||||
%{_mandir}/man7/pigeonhole.7*
|
%{_mandir}/man7/pigeonhole.7*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 02 2021 lingsheng <lingsheng@huawei.com> - 2.3.15-4
|
||||||
|
- Delete rpath setting
|
||||||
|
|
||||||
* Tue Nov 30 2021 xu_ping <xuping33@huawei.com> - 2.3.15-3
|
* Tue Nov 30 2021 xu_ping <xuping33@huawei.com> - 2.3.15-3
|
||||||
- add requires tar to fix tar command not found
|
- add requires tar to fix tar command not found
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user