Projects
Eulaceura:Mainline:GA
uname-build-checks
_service:obs_scm:uname-build-checks-1727075300....
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:uname-build-checks-1727075300.93d89c3.obscpio of Package uname-build-checks
07070100000000000081A400000000000000000000000166F113E4000003C2000000000000000000000000000000000000003300000000uname-build-checks-1727075300.93d89c3/README.en.md# uname-build-checks #### Description {**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} #### Software Architecture Software architecture description #### Installation 1. xxxx 2. xxxx 3. xxxx #### Instructions 1. xxxx 2. xxxx 3. xxxx #### Contribution 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request #### Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) 07070100000001000081A400000000000000000000000166F113E400000532000000000000000000000000000000000000003000000000uname-build-checks-1727075300.93d89c3/README.md# uname-build-checks #### 介绍 {**以下是码云平台说明,您可以替换此简介** 码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) 07070100000002000081A400000000000000000000000166F113E400000757000000000000000000000000000000000000003E00000000uname-build-checks-1727075300.93d89c3/uname-build-checks.spec# # spec file for package uname-build-checks # Name: uname-build-checks License: GPL-2.0-or-later Group: Development/Tools/Building Summary: post checks for build after rpms have been created Version: 1.0 Release: 0.7 BuildRequires: kernel, rpm, coreutils Source0: uname.sh BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: coreutils %description modify uname commond %prep %build MREL=`rpm -qi kernel | grep Version | awk -F' ' '{print $3}'` MREL=$MREL-`rpm -qi kernel | grep Release | awk -F' ' '{print $3}'` MREL=$MREL.`rpm -qi kernel | grep Architecture | awk -F' ' '{print $2}'` echo $MREL > oe_kernelversion %install install -d $RPM_BUILD_ROOT/usr/bin install -m 755 %{SOURCE0} $RPM_BUILD_ROOT/usr/bin/uname.sh cp oe_kernelversion $RPM_BUILD_ROOT/.oe_kernelversion %check %clean rm -rf $RPM_BUILD_ROOT %post if test -f /usr/bin/uname -a ! -L /usr/bin/uname ; then mv /usr/bin/uname /usr/bin/uname.bin ln -s /usr/bin/uname.sh /usr/bin/uname fi %preun if test "$1" = 0 -a -f /bin/uname.bin ; then mv /bin/uname.bin /bin/uname fi %files %defattr(-, root, root) /usr/bin/uname.sh /.oe_kernelversion %changelog * Thu Sep 19 2024 weidongkl <weidongkx@gmail.com> 1.0-0.7 - fix: https://gitee.com/src-openeuler/uname-build-checks/issues/IAS6IX * Wed Jun 12 2024 yinyongkang <yinyongkang@kylinos.cn> 1.0-0.6 - license info rectification * Tue Jan 5 2021 shenyangyang4@huawei.com 1.0-0.5 - rename uname-build-check.spec to uname-build-checks.spec * Mon Jan 13 2020 buildteam@openeuler.org 1.0-0.4 - strengthen spec * Thu Nov 26 2015 hexiaowen@huawei.com 1.0-0.3 - add ARCH info when get kernel version using "uname -r" * Wed Nov 25 2015 hexiaowen@huawei.com 1.0-0.2 - Fixed bugs when get kernel version using "uname -r" * Sat Dec 27 2014 zhenghaizhen@huawei.com 1.0-0.1 - new log 07070100000003000081A400000000000000000000000166F113E40000003E000000000000000000000000000000000000003E00000000uname-build-checks-1727075300.93d89c3/uname-build-checks.yamlversion_control: NA src_repo: NA tag_prefix: NA seperator: NA 07070100000004000081A400000000000000000000000166F113E40000039B000000000000000000000000000000000000002F00000000uname-build-checks-1727075300.93d89c3/uname.sh#!/bin/bash OUTPUT=`uname.bin $*` NOT_INSTALLED="is not installed" if [[ $* == "-r" ]];then lines=`rpm -q --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel | wc -l` if [ "$lines" -gt 1 ]; then echo $OUTPUT exit 0 fi dir=`rpm -q --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel | head -n 1` if [ -z "$(echo "$dir" | grep "$NOT_INSTALLED")" ]; then [ -n "$dir" ] && echo $dir && exit 0 fi dir=`rpm -q --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel-devel | head -n 1` if [ -z "$(echo "$dir" | grep "$NOT_INSTALLED")" ]; then [ -n "$dir" ] && echo $dir && exit 0 fi dir=`rpm -q --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel-headers | head -n 1` if [ -z "$(echo "$dir" | grep "$NOT_INSTALLED")" ]; then [ -n "$dir" ] && echo $dir && exit 0 fi echo "error: you must installed kernel or kernel-headers" && exit 1 else echo $OUTPUT fi 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!12 blocks
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2