Add debug package to add strip.

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 5028bb2be1865a70f77efd09545a36354427ca5a)
This commit is contained in:
cherry530 2023-03-02 14:48:43 +08:00 committed by openeuler-sync-bot
parent 102b5371d2
commit ce9c5c5812

View File

@ -1,10 +1,8 @@
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
# We'd like to be noarch, but Lmod encodes the system lua path
%global debug_package %{nil}
Name: Lmod
Version: 8.7.4
Release: 1
Release: 2
Summary: Environmental Modules System in Lua
License: MIT and LGPLv2
@ -57,6 +55,7 @@ sed -i -e '/^#!/d' init/*.in
%install
export CFLAGS="${RPM_OPT_FLAGS}"
%make_install
# init scripts are sourced
find %{buildroot}%{_datadir}/lmod/%{version}/init -type f -exec chmod -x {} +
@ -99,6 +98,9 @@ install -Dpm 644 %{SOURCE1} %{buildroot}/%{macrosdir}/macros.%{name}
%changelog
* Thu Mar 02 2023 xu_ping <xuping33@h-partners.com> - 8.7.4-2
- Add debug package to add strip.
* Tue Aug 2 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 8.7.4-1
- Update to 8.7.4