1 Star 0 Fork 0

杨超豪/providers

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
providers.spec 2.47 KB
一键复制 编辑 原始数据 按行查看 历史
杨超豪 提交于 2023-12-19 07:50 . 111
Summary: PROVIDERS Package
Name: providers
Version: 1.0
Release: 1
License: MIT
Group: Applications/System
URL: https://example.com/providers
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: ruby rubygems ruby-devel gcc make tar gzip openssl-devel gcc-c++ zlib iproute wget docker git
%description
This is the CCB package.
%prep
%setup -q
%install
# Extract the tar package
mkdir -p %{buildroot}/usr/libexec/
tar -zxvf %{SOURCE0} -C %{buildroot}/usr/libexec/
%post
# disable swap
swapoff -a
sed -i '/swap/d' /etc/fstab
id -u lkp || useradd -u 1090 lkp
sh /usr/libexec/%{name}-%{version}/cbs/sparrow/1-storage/tiny
# Install gem packages
#gem sources -r https://rubygems.org/ -a https://mirrors.huaweicloud.com/repository/rubygems/
gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/
gem install -f git activesupport rest-client cucumber json faye-websocket elasticsearch bunny nokogiri
# Create the symbolic link
ln -sf /usr/libexec/%{name}-%{version}/cbs/providers/multi-docker /usr/sbin/multi-docker
sh -x /usr/libexec/%{name}-%{version}/arch_configuration.sh openEuler-22.03-LTS-Loongarch
if [ ! -f "/etc/compass-ci/passwd.yaml" ]; then
echo "Please complete the content of the configuration file /etc/compass-ci/passwd.yaml"
cat > "/etc/compass-ci/passwd.yaml" <<-EOF
ACCOUNT:
PASSWORD:
OAUTH_TOKEN_URL: https://omapi.osinfra.cn/oneid/oidc/token
OAUTH_REDIRECT_URL: https://eulermaker.compass-ci.openeuler.openatom.cn/oauth/
PUBLIC_KEY_URL: https://omapi.osinfra.cn/oneid/public/key?community=openeuler
DOMAIN_NAME: eulermaker.compass-ci.openeuler.openatom.cn
EOF
fi
if [ ! -f "/etc/compass-ci/service/service-env.yaml" ]; then
echo "Please complete the content of the configuration file /etc/compass-ci/service/service-env.yaml"
cat > "/etc/compass-ci/service/service-env.yaml" <<-EOF
DOMAIN_NAME: eulermaker.compass-ci.openeuler.openatom.cn
EOF
fi
# add env for CCI_SRC
if [ -z "$CCI_SRC" ]; then
echo export CCI_SRC=/usr/libexec/%{name}-%{version}/cbs >> $HOME/.${os_shell}rc
fi
if [ -z "$LKP_SRC" ]; then
echo export LKP_SRC=/usr/libexec/%{name}-%{version}/lkp-tests >> $HOME/.${os_shell}rc
fi
chmod 773 /etc/.ccache
#os_shell=$(basename $SHELL)
#echo export CCI_SRC=/c/cbs >> $HOME/.${os_shell}rc
#echo export LKP_SRC=/c/lkp-tests >> $HOME/.${os_shell}rc
%postun
rm -rf /usr/libexec/%{name}-%{version}
rm -rf /usr/sbin/multi-docker
%files
/usr/libexec/%{name}-%{version}/*
%changelog
* Mon Nov 14 2023 ych 1.0-1
- Initial package release
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yang-chaohao/providers.git
git@gitee.com:yang-chaohao/providers.git
yang-chaohao
providers
providers
master

搜索帮助