Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
iSula-libutils
提交
93b8151e
I
iSula-libutils
项目概览
openeuler
/
iSula-libutils
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
iSula-libutils
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
93b8151e
编写于
5月 19, 2020
作者:
H
haozi007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update spec for rpmbuild
Signed-off-by:
N
haozi007
<
liuhao27@huawei.com
>
上级
b00e6bcd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
iSula-libutils.spec
iSula-libutils.spec
+5
-5
update-version.bash
update-version.bash
+2
-2
未找到文件。
i
sula_
libutils.spec
→
i
Sula-
libutils.spec
浏览文件 @
93b8151e
%global _version 1.0.0
%global _version 1.0.0
%global _release 20200519.2
20857.git3a7aa4a4
%global _release 20200519.2
32137.git3c321b3c
Name: i
sula_
libutils
Name: i
Sula-
libutils
Version: %{_version}
Version: %{_version}
Release: %{_release}
Release: %{_release}
Summary: Provide json parse and log common functions
Summary: Provide json parse and log common functions
Group: System Environment/Libraries
Group: System Environment/Libraries
License: LGPLv2.1+
License: LGPLv2.1+
URL: iSula
_
libutils
URL: iSula
-
libutils
Source0: %{name}-1.0.tar.gz
Source0: %{name}-1.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}
...
@@ -17,7 +17,7 @@ BuildRequires: zlib-devel yajl-devel gtest-devel
...
@@ -17,7 +17,7 @@ BuildRequires: zlib-devel yajl-devel gtest-devel
Requires: yajl zlib
Requires: yajl zlib
%ifarch x86_64 aarch64
%ifarch x86_64 aarch64
Provides: lib
%{name}
.so()(64bit)
Provides: lib
isula_libutils
.so()(64bit)
%endif
%endif
%description
%description
...
@@ -72,7 +72,7 @@ rm -rf %{buildroot}
...
@@ -72,7 +72,7 @@ rm -rf %{buildroot}
%files
%files
%defattr(-,root,root,-)
%defattr(-,root,root,-)
%{_libdir}/lib
%{name}
.so*
%{_libdir}/lib
isula_libutils
.so*
%files devel
%files devel
%defattr(-,root,root,-)
%defattr(-,root,root,-)
...
...
update-version.bash
浏览文件 @
93b8151e
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
# usage
# usage
# ./update-version.bash
# ./update-version.bash
topDir
=
$(
git rev-parse
--show-toplevel
)
topDir
=
$(
git rev-parse
--show-toplevel
)
specfile
=
"
${
topDir
}
/i
sula_
libutils.spec"
specfile
=
"
${
topDir
}
/i
Sula-
libutils.spec"
CMakefile
=
"
${
topDir
}
/CMakeLists.txt"
CMakefile
=
"
${
topDir
}
/CMakeLists.txt"
old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
)
old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
)
first_old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
|
awk
-F
"."
{
'print $1'
}
)
first_old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
|
awk
-F
"."
{
'print $1'
}
)
...
@@ -57,7 +57,7 @@ commit_id_long=`git log --pretty=oneline -1 | awk {'print $1'}`
...
@@ -57,7 +57,7 @@ commit_id_long=`git log --pretty=oneline -1 | awk {'print $1'}`
commit_id
=
${
commit_id_long
:0:8
}
commit_id
=
${
commit_id_long
:0:8
}
new_release
=
`
date
"+%Y%m%d"
`
.
`
date
"+%H%M%S"
`
.git
$commit_id
new_release
=
`
date
"+%Y%m%d"
`
.
`
date
"+%H%M%S"
`
.git
$commit_id
echo
"The relase version has been modified, it is
${
new_release
}
"
echo
"The relase version has been modified, it is
${
new_release
}
"
sed
-i
"s/set(
CLIBCNI_VERSION
\"
${
old_version
}
\"
)/set(CLIBCNI
_VERSION
\"
${
new_version
}
\"
)/g"
${
CMakefile
}
sed
-i
"s/set(
ISULA_LIBUTILS_VERSION
\"
${
old_version
}
\"
)/set(ISULA_LIBUTILS
_VERSION
\"
${
new_version
}
\"
)/g"
${
CMakefile
}
sed
-i
"s/^
\%
global _version
${
old_version
}
$/
\%
global _version
${
new_version
}
/g"
${
specfile
}
sed
-i
"s/^
\%
global _version
${
old_version
}
$/
\%
global _version
${
new_version
}
/g"
${
specfile
}
sed
-i
"s/^
\%
global _release
${
old_release
}
$/
\%
global _release
${
new_release
}
/g"
${
specfile
}
sed
-i
"s/^
\%
global _release
${
old_release
}
$/
\%
global _release
${
new_release
}
/g"
${
specfile
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录