add postun operation
(cherry picked from commit 5acf4502381f177d61e88f3114980f06ee5db34a)
This commit is contained in:
parent
e6a5fda80e
commit
3437941697
@ -1,9 +1,9 @@
|
|||||||
Name: gcc_secure
|
Name: gcc_secure
|
||||||
Summary: Enforcing secure compile options for abuild
|
Summary: Enforcing secure compile options for abuild
|
||||||
License: NA
|
License: GPL-2.0-only
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 0.11
|
Release: 0.12
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
||||||
|
|
||||||
BuildRequires: util-linux coreutils
|
BuildRequires: util-linux coreutils
|
||||||
@ -148,7 +148,21 @@ fi
|
|||||||
%preun
|
%preun
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
rm -rf /opt/gcc-specs-fs-cc1
|
||||||
|
rm -rf /opt/gcc-specs-pie-cc1
|
||||||
|
rm -rf /opt/gcc-specs-pie-ld
|
||||||
|
if [ -f /usr/bin/gcc_old ];then
|
||||||
|
rm -rf /usr/bin/gcc
|
||||||
|
mv /usr/bin/gcc_old /usr/bin/gcc
|
||||||
|
fi
|
||||||
|
if [ -f /usr/bin/g++_old ];then
|
||||||
|
rm -rf /usr/bin/g++
|
||||||
|
mv /usr/bin/g++_old /usr/bin/g++
|
||||||
|
fi
|
||||||
|
if [ -f /usr/bin/c++_old ];then
|
||||||
|
rm -rf /usr/bin/c++
|
||||||
|
mv /usr/bin/c++_old /usr/bin/c++
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -159,6 +173,12 @@ rm -rf %{_tmppath}/%{name}-%{version}
|
|||||||
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 25 2022 Ge Wang<wnagge20@h-partners.com> - 1.0-0.12
|
||||||
|
- Type:enhancement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: add postun operation
|
||||||
|
|
||||||
* Thu Apr 28 2022 zhangchenfeng<zhangchenfeng1@huawei.com> - 1.0-0.11
|
* Thu Apr 28 2022 zhangchenfeng<zhangchenfeng1@huawei.com> - 1.0-0.11
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user