代码拉取完成,页面将自动刷新
Summary: CtyunOS security-baseline
Name: security-baseline
Version: 0.1.1
Release: 8
License: MulanPSL v2
URL: https://gitlab.ctyun.cn/org-ctyunos/security-baseline
Provides: security-baseline
BuildRequires: python3
Requires: wget git util-linux bash
Requires: coreutils python3 python3-pip
Source1: %{name}-%{version}.tar.gz
%description
This package provides ecurity-baseline.
Provides: %{name} = %{version}-%{release}
%prep
tar -xvf %{_sourcedir}/%{name}-%{version}.tar.gz
%build
cd %{name}
%install
cd %{_builddir}/%{name}
#install -d -m 755 $RPM_BUILD_ROOT/usr/share/security-baseline/scripts
install -d -m 755 $RPM_BUILD_ROOT/usr/share/security-baseline/bin
install -d -m 755 $RPM_BUILD_ROOT/usr/bin/
ls %{_sourcedir}
pip3 install pyinstaller
pip3 install prettytable
pyinstaller -F %{_builddir}/%{name}/main.py
mv dist/main security-baseline
rm -rf dist
rm -rf build
ls
#install -m 755 %{_builddir}/%{name}/* $RPM_BUILD_ROOT/usr/share/security-baseline/scripts/
install -m 755 %{_builddir}/%{name}/security-baseline $RPM_BUILD_ROOT/usr/bin/security-baseline
%files
#/usr/share/security-baseline/*
/usr/bin/security-baseline
%postun
if [ $1 == 0 ]; then
rm -f /usr/bin/security-baseline
rm -rf /usr/share/security-baseline/
fi
%post
%changelog
* Mon Mar 20 2023 wuksh <[email protected]> - 0.1.1-8
- update 0.1 version
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。