!95 [sync] PR-94: Reinitialize libtool to remove Rpath

From: @openeuler-sync-bot 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2024-05-07 12:10:45 +00:00 committed by Gitee
commit 4c6abf99d1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,7 @@
%changelog %changelog
* Tue May 07 2024 guoqinglan <guoqinglan@kylinsec.com.cn> - 30-3
- Reinitialize libtool to remove Rpath
* Fri Sep 02 2022 fu.lin <fulin10@huawei.com> - 30-2 * Fri Sep 02 2022 fu.lin <fulin10@huawei.com> - 30-2
- fit the old patch - fit the old patch

View File

@ -1,6 +1,6 @@
Name: kmod Name: kmod
Version: 30 Version: 30
Release: 2 Release: 3
Summary: Kernel module management Summary: Kernel module management
# GPLv2+ is used by programs, LGPLv2+ is used for libraries. # GPLv2+ is used by programs, LGPLv2+ is used for libraries.
License: GPLv2+ and LGPLv2+ License: GPLv2+ and LGPLv2+
@ -8,8 +8,9 @@ URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
Source0: https://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz Source0: https://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
Source1: weak-modules Source1: weak-modules
Source2: depmod.conf.dist Source2: depmod.conf.dist
Source3: kmod.changes
BuildRequires: gcc chrpath zlib-devel xz-devel libxslt openssl-devel BuildRequires: gcc chrpath zlib-devel xz-devel libxslt openssl-devel libtool gtk-doc
Provides: module-init-tools = 4.0-1 Provides: module-init-tools = 4.0-1
Provides: /sbin/modprobe Provides: /sbin/modprobe
@ -57,6 +58,8 @@ developers to understand the kmod.
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
# Reinitialize libtool to remove Rpath
autoreconf -vif
%configure --with-openssl --with-zlib --with-xz --enable-python %configure --with-openssl --with-zlib --with-xz --enable-python
%make_build %make_build
@ -116,4 +119,4 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%doc TODO NEWS README.md %doc TODO NEWS README.md
%changelog %include %{SOURCE3}