!13 【openEuler-21.09】Delete rpath and runpath from exec files and libraries
From: @yixiangzhike Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
5f0d3ef16a
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: cracklib
|
Name: cracklib
|
||||||
Version: 2.9.7
|
Version: 2.9.7
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A password-checking library
|
Summary: A password-checking library
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
@ -14,7 +14,7 @@ Source0: https://github.com/cracklib/cracklib/releases/download/v%{version}/crac
|
|||||||
Source1: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-words-%{version}.gz
|
Source1: https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-words-%{version}.gz
|
||||||
Patch9000: fix-problem-of-error-message-about-simplistic-passwo.patch
|
Patch9000: fix-problem-of-error-message-about-simplistic-passwo.patch
|
||||||
|
|
||||||
BuildRequires: gcc, words, gettext, gettext-autopoint, zlib-devel
|
BuildRequires: gcc, words, gettext, gettext-autopoint, zlib-devel, chrpath
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
%endif
|
||||||
@ -114,6 +114,18 @@ fi
|
|||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/_cracklib*.*a
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python*/site-packages/_cracklib*.*a
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcrack.la
|
||||||
|
|
||||||
|
# delete rpath and runpath from exec files and libraries
|
||||||
|
chrpath -d $RPM_BUILD_ROOT/%{_sbindir}/cracklib-check
|
||||||
|
chrpath -d $RPM_BUILD_ROOT/%{_sbindir}/cracklib-packer
|
||||||
|
chrpath -d $RPM_BUILD_ROOT/%{_sbindir}/cracklib-unpacker
|
||||||
|
chrpath -d $RPM_BUILD_ROOT/%{python3_sitearch}/_cracklib.so
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
%if %{with python3}
|
||||||
|
echo "%{_libdir}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/python3-%{name}-%{_arch}.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -134,6 +146,7 @@ make test
|
|||||||
%config(noreplace) %{_datadir}/cracklib/pw_dict.*
|
%config(noreplace) %{_datadir}/cracklib/pw_dict.*
|
||||||
%{_datadir}/cracklib/cracklib-small.*
|
%{_datadir}/cracklib/cracklib-small.*
|
||||||
%{_datadir}/cracklib/cracklib.magic
|
%{_datadir}/cracklib/cracklib.magic
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
@ -147,9 +160,13 @@ make test
|
|||||||
%{_libdir}/python3*/site-packages/_cracklib*.so
|
%{_libdir}/python3*/site-packages/_cracklib*.so
|
||||||
%{_libdir}/python3*/site-packages/*.py*
|
%{_libdir}/python3*/site-packages/*.py*
|
||||||
%{_libdir}/python3*/site-packages/__pycache__/*
|
%{_libdir}/python3*/site-packages/__pycache__/*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/python3-%{name}-%{_arch}.conf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 6 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.9.7-7
|
||||||
|
- delete rpath and runpath from exec files and libraries
|
||||||
|
|
||||||
* Mon May 24 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.9.7-6
|
* Mon May 24 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.9.7-6
|
||||||
- add %%config(noreplace) for pw_dict
|
- add %%config(noreplace) for pw_dict
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user