diff --git a/spec/distribution.spec b/spec/distribution.spec index f0adff7ea9e932779c591106d89b3cfca9f24bd9..744e152fd323c3abb49a040a8336dd5754465505 100644 --- a/spec/distribution.spec +++ b/spec/distribution.spec @@ -1,9 +1,7 @@ %global __os_install_post %{nil} %define _ignore_post_scripts_errors %{nil} -%define _enable_debug_packages %{nil} -%define debug_package %{nil} %define all_kver %(ls /usr/src/kernels/ | cat) -%define anolis_release 3 +%define anolis_release 4 Name: iodump Version: 1.0.1 @@ -34,7 +32,10 @@ if [ "${main_dir}" == %{name} ];then fi cd %{name}-%{version} chmod -R a+rX,u+w,g-w,o-w . - + +# Add debug package +%debug_package + %build cd %{name}-%{version} [ ! -e kiodump ] && install -d kiodump @@ -111,6 +112,9 @@ if [ "$1" = "0" ]; then fi %changelog +* Wed Jan 17 2024 wangxiaomeng - 1.0.1-4 +- Add debug_package + * Mon Sep 25 2023 wangxiaomeng - 1.0.1-3 - Add BuildRequires: elfutils-devel diff --git a/spec/docker.spec b/spec/docker.spec index a17676863158eec35c0b61c2ad65b288b634d6ca..559be2564f52f8fb328d89b38bc174a337bfceba 100644 --- a/spec/docker.spec +++ b/spec/docker.spec @@ -1,9 +1,7 @@ %global __os_install_post %{nil} %define _ignore_post_scripts_errors %{nil} -%define _enable_debug_packages %{nil} -%define debug_package %{nil} %define all_kver %(ls /usr/src/kernels/ | cat) -%define anolis_release 3 +%define anolis_release 4 Name: iodump Version: 1.0.1 @@ -34,7 +32,10 @@ if [ "${main_dir}" == %{name} ];then fi cd %{name}-%{version} chmod -R a+rX,u+w,g-w,o-w . - + +# Add debug package +%debug_package + %build cd $RPM_BUILD_DIR/../SPECS/ [ ! -e kiodump ] && install -d kiodump @@ -113,6 +114,9 @@ if [ "$1" = "0" ]; then fi %changelog +* Wed Jan 17 2024 wangxiaomeng - 1.0.1-4 +- Add debug_package + * Mon Sep 25 2023 wangxiaomeng - 1.0.1-3 - Add BuildRequires: elfutils-devel diff --git a/spec/iodump.spec b/spec/iodump.spec index 82cd858af391f1a164dc08563fb218eace8cdf91..51464d1f8fc634933b1cde3575585e74c62e5e12 100644 --- a/spec/iodump.spec +++ b/spec/iodump.spec @@ -1,11 +1,9 @@ %global __os_install_post %{nil} %define _ignore_post_scripts_errors %{nil} -%define _enable_debug_packages %{nil} -%define debug_package %{nil} %define current_kver %{?kver}%{!?kver:%(rpm -qa kernel-devel | head -n 1 | sed 's/^kernel-devel-//')} %define kver_name %(echo %{current_kver} | awk -F. '{print substr($0,0,index($0,$(NF-1))-2)}') %define bare_name iodump -%define anolis_release 3 +%define anolis_release 4 Name: %{bare_name}-%{kver_name} Version: 1.0.1 @@ -36,7 +34,10 @@ if [ "${main_dir}" == %{bare_name} ];then fi cd %{bare_name}-%{version} chmod -R a+rX,u+w,g-w,o-w . - + +# Add debug package +%debug_package + %build cd %{bare_name}-%{version} make @@ -98,6 +99,9 @@ if [ "$1" = "0" ]; then fi %changelog +* Wed Jan 17 2024 wangxiaomeng - 1.0.1-4 +- Add debug_package + * Mon Sep 25 2023 wangxiaomeng - 1.0.1-3 - Add BuildRequires: elfutils-devel