1 Star 0 Fork 28

Yu_Xuaan/openEuler-latest-release

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
openEuler-latest-release.spec 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
dongjie110 提交于 2023-06-13 11:29 . add buildrequires
Name: openEuler-latest-release
Summary: System information like kernelversion, openeulerversion, gccversion, openjdkversion and compile time
License: GPL-1.0-or-later
Group: System/Config
Version: 1.0
Release: 1
Source1: isopackage.sdf
Source2: isopackage_arm64.sdf
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRequires: gcc kernel-devel java-1.8.0-openjdk
%description
The rpm contains system information, like kernelversion, eulerversion and compile time so on.
%setup -q
%install
mkdir -p %{buildroot}/etc
%ifarch aarch64
install %{_sourcedir}/isopackage_arm64.sdf %{buildroot}/etc/openEuler-latest
%else
install %{_sourcedir}/isopackage.sdf %{buildroot}/etc/openEuler-latest
%endif
%pre
%post
if [[ `grep "openeulerversion" /etc/openEuler-latest | cut -d '_' -f2` =~ 2\.2\.RC.* ]]; then
if [ $1 = 1 ]; then
if [ -e /etc/openEulerLinux.conf ];then
mv /etc/openEulerLinux.conf /etc/.openEulerLinux.conf
fi
else
rm -f /etc/.openEulerLinux.conf
fi
fi
%preun
%postun
if [ -e /etc/.openEulerLinux.conf ]; then
mv /etc/.openEulerLinux.conf /etc/openEulerLinux.conf
fi
%files
%config /etc/openEuler-latest
%attr(0444, root, root) /etc/openEuler-latest
%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf %{_tmppath}/%{name}-%{version}
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%changelog
* Thu Jul 28 2022 Chenyx <chenyixiong3@huawei.com> - 1.0-1
- License compliance rectification
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Yu_Xuaan/openEuler-latest-release.git
git@gitee.com:Yu_Xuaan/openEuler-latest-release.git
Yu_Xuaan
openEuler-latest-release
openEuler-latest-release
master

搜索帮助