!3 move libs files to libs package

Merge pull request !3 from wswsamao/local
This commit is contained in:
openeuler-ci-bot 2020-02-26 14:16:37 +08:00 committed by Gitee
commit 7106ac9ccd

View File

@ -1,6 +1,6 @@
Name: kmod Name: kmod
Version: 25 Version: 25
Release: 5 Release: 6
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+
@ -16,14 +16,20 @@ Patch9002: depmod-prevent-module-dependency-files-corruption-du.patch
BuildRequires: gcc chrpath zlib-devel xz-devel libxslt BuildRequires: gcc chrpath zlib-devel xz-devel libxslt
Provides: module-init-tools = 4.0-1 Provides: module-init-tools = 4.0-1
Provides: %{name} = %{version}-%{release} %{name}-libs
Provides: /sbin/modprobe Provides: /sbin/modprobe
Obsoletes: %{name}-libs
%description %description
The kmod package provides several commands to manage the kernel modules, The kmod package provides several commands to manage the kernel modules,
such as insmod to load and rmmod to unload the modules. such as insmod to load and rmmod to unload the modules.
%package libs
Summary: Libraries to handle kernel module loading and unloading
License: LGPLv2+
%description libs
The kmod-libs package provides runtime libraries for any application that
wishes to load or unload Linux kernel modules from the running system.
%package devel %package devel
Summary: Header files for kmod development Summary: Header files for kmod development
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -83,6 +89,7 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%{_datadir}/bash-completion/ %{_datadir}/bash-completion/
%{_sysconfdir}/depmod.d/dist.conf %{_sysconfdir}/depmod.d/dist.conf
%files libs
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
%license COPYING %license COPYING
%{_libdir}/libkmod.so.* %{_libdir}/libkmod.so.*
@ -99,6 +106,12 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
%doc TODO NEWS README %doc TODO NEWS README
%changelog %changelog
* Wed Feb 28 2020 Wang Shuo<wangshuo47@huawei.com> - 25-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: move libs files to libs package
* Sat Apr 6 2019 luochunsheng<luochunsheng@huawei.com> - 25-5 * Sat Apr 6 2019 luochunsheng<luochunsheng@huawei.com> - 25-5
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA