1 Star 0 Fork 32

wangcichen/env_check

forked from openEuler/env_check 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
env_check.spec 1.09 KB
Copy Edit Raw Blame History
wangcichen authored 2023-08-17 16:24 . add spec file for building rpm
%global debug_package %{nil}
Name: env_check
Version: 0.1
Release: 1
Summary: A tool for "health checking" after operating system upgrade
License: MulanPSL-2.0
URL: https://gitee.com/openeuler/env_check
BuildArch: noarch
Source0: %{name}-%{version}.tar.gz
BuildRequires: python3
Requires: python3
%description
A tool for "health checking" after operating system upgrade
%prep
%setup -c -n %{name}-%{version}
%build
%install
mkdir -p %{buildroot}/usr/local/env_check
/bin/cp -r sut %{buildroot}/usr/local/env_check/
%files
/usr/local/env_check
%doc README.md
%license LICENSE.txt
%post
if test -e %{_bindir}/env_check || test -L %{_bindir}/env_check; then \
rm -f %{_bindir}/env_check; \
fi
ln -s /usr/local/env_check/sut/env_check.py %{_bindir}/env_check
chmod +x %{_bindir}/env_check
%postun
if test -e %{_bindir}/env_check || test -L %{_bindir}/env_check; then \
rm -f %{_bindir}/env_check; \
fi
%changelog
* Thu Aug 17 2023 Cichen Wang <wangcichen@cmss.chinamobile.com> - 0.1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangcichen/env_check.git
git@gitee.com:wangcichen/env_check.git
wangcichen
env_check
env_check
master

Search