19 Star 0 Fork 17

openEuler/openEuler-rpm-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
macros.kmp 983 Bytes
一键复制 编辑 原始数据 按行查看 历史
xujing 提交于 2024-02-02 15:04 . fix __find_requires macro not working
# Use these macros to differentiate between openEuler and other KMP implementation(s).
kernel_module_package_release 1
%__find_requires /usr/lib/rpm/openEuler/find-requires
#kernel_module_package [ -n name ] [ -v version ] [ -r release ] [ -s script ]
# [ -f filelist] [-p preamble]
#
%kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \
kernel-devel openEuler-rpm-config kernel-rpm-macros
%kernel_module_package(n:v:r:f:p) %{expand:%( \
%define kmodtool %{-s*}%{!-s:/usr/lib/rpm/openEuler/kmodtool.py} \
%global latest_kernel %(rpm -q --qf '%%{VERSION}-%%{RELEASE}.%%{ARCH}' `rpm -qa | egrep "^kernel-devel" | head -n 1`) \
%{!?kernel_version:%{expand:%%global kernel_version %{latest_kernel}}} \
%global kverrel %(%{kmodtool} verrel %{?kernel_version} 2>/dev/null) \
python3 %{kmodtool} rpmtemplate_kmp %{-n*}%{!-n:%name} %{kverrel} %{-f*}%{!-f:%filelist} %{-p*}%{!-p:%preamble} \
)}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/openEuler-rpm-config.git
[email protected]:openeuler/openEuler-rpm-config.git
openeuler
openEuler-rpm-config
openEuler-rpm-config
master

搜索帮助