Reinitialize libtool to remove Rpath

(cherry picked from commit a2d2298430e44983b9185fa27d8d615d3da65e6a)
This commit is contained in:
guoqinglan 2024-05-07 15:25:00 +08:00 committed by openeuler-sync-bot
parent 0ca540a207
commit 86d4e00188
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,7 @@
%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
- fit the old patch

View File

@ -1,6 +1,6 @@
Name: kmod
Version: 30
Release: 2
Release: 3
Summary: Kernel module management
# GPLv2+ is used by programs, LGPLv2+ is used for libraries.
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
Source1: weak-modules
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: /sbin/modprobe
@ -57,6 +58,8 @@ developers to understand the kmod.
%autosetup -n %{name}-%{version} -p1
%build
# Reinitialize libtool to remove Rpath
autoreconf -vif
%configure --with-openssl --with-zlib --with-xz --enable-python
%make_build
@ -116,4 +119,4 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%doc TODO NEWS README.md
%changelog
%include %{SOURCE3}