Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
e161cef488
!18 Replace openEuler with vendor macro
From: @caodongxia 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-11-18 01:20:57 +00:00
caodongxia
fc6d8811d7 Replace openEuler with vendor macro 2022-11-17 19:02:20 +08:00
openeuler-ci-bot
15c829d1d5
!16 [sync] PR-14: Fix changelog date error
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-08-22 01:19:10 +00:00
cherry530
a76f678161 fix changelog date
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 4eab43affbe464045b218fbc3974b4d5a1dac4b5)
2022-08-19 11:27:09 +08:00
openeuler-ci-bot
779daf6141
!13 [sync] PR-10: 解决在22.03-next-lts分支scl-utils安装失败缺依赖
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-08-19 02:56:14 +00:00
penelope
6318648817 fix need by config
(cherry picked from commit 59b9def5e588b9128319854b36a8b9bad3d36d41)
2022-08-19 10:44:59 +08:00
openeuler-ci-bot
0a658a05bc !8 [sync] PR-6: add -h option to scl command
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-10-13 09:39:19 +00:00
caodongxia
f7cd9a3490 add -h option to scl command
(cherry picked from commit 3c4142f44bd8bed125afa5c42a40e2b38bb7846b)
2021-10-13 17:01:59 +08:00
openeuler-ci-bot
183ce0eb17 !2 fix direct scl_source --help output
From: @wang_yue111
Reviewed-by: @jimmy_hero
Signed-off-by: @jimmy_hero
2021-10-08 09:44:09 +00:00
wang_yue111
6708221d13 fix direct scl_source --help output 2021-10-08 17:29:15 +08:00
3 changed files with 85 additions and 3 deletions

View File

@ -0,0 +1,34 @@
From 09116bb68bb76c9f6432511f5a0f054a2e3b92e0 Mon Sep 17 00:00:00 2001
From: caodongxia <315816521@qq.com>
Date: Tue, 12 Oct 2021 19:47:01 +0800
Subject: [PATCH] add -h option to scl-command
---
src/scl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scl.c b/src/scl.c
index df8111a..1c7854a 100644
--- a/src/scl.c
+++ b/src/scl.c
@@ -25,7 +25,7 @@ static void print_usage( const char *name ) {
fprintf(stderr, " %s load|unload [<collection>...]\n", basename(name));
fprintf(stderr, " %s list-collections\n", basename(name));
fprintf(stderr, " %s list-packages|man|register|deregister <collection>\n", basename(name));
- fprintf(stderr, " %s --help\n\n", basename(name));
+ fprintf(stderr, " %s -h|--help\n\n", basename(name));
fprintf(stderr,
"description:\n"
@@ -36,7 +36,7 @@ static void print_usage( const char *name ) {
" list-packages list packages in Software Collection\n"
" man show manual page about Software Collection\n"
" register|deregister register/deregister Software Collection\n"
- " --help show this help\n"
+ " -h|--help show this help\n"
"\nUse '-' as <command> to read the command from standard input.\n");
}
--
2.27.0

View File

@ -0,0 +1,33 @@
From 54ca3bd3293bd9815712d7d8aaf1fe45f13e5d5e Mon Sep 17 00:00:00 2001
From: Pavel Raiskup <praiskup@redhat.com>
Date: Fri, 11 Oct 2019 12:41:11 +0200
Subject: [PATCH] fix direct 'scl_source --help' output
Wrap everything into 'if then else fi' statement, so we don't actually need 'return' statement. Without this wrapping hack, we'd need either 'exit' statement (if executed by /usr/bin/scl_source) or 'return' for 'source scl_source'. For more info see #20.
---
shell/scl_source | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/shell/scl_source b/shell/scl_source
index b0036bd..294740f 100755
--- a/shell/scl_source
+++ b/shell/scl_source
@@ -9,8 +9,7 @@ Options:
if [ $# -eq 0 -o $1 = "-h" -o $1 = "--help" ]; then
echo "$_scl_source_help"
- return 0
-fi
+else # main operation mode
if [ -z "$_recursion" ]; then
@@ -73,3 +72,5 @@ if [ $_recursion == "false" ]; then
_scl_scriptlet_name=""
_recursion="false"
fi
+
+fi # main operation mode
--
2.23.0

View File

@ -1,9 +1,10 @@
%global __cmake_in_source_build 1
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
Name: scl-utils
Epoch: 1
Version: 2.0.2
Release: 1
Release: 5
Summary: Utilities for alternative packaging
License: GPLv2+
URL: https://github.com/sclorg/scl-utils
@ -15,12 +16,14 @@ Buildrequires: rpm-devel
Requires: %{_bindir}/modulecmd
Patch1: 0003-Scl-utils-layout-patch-from-fedora-famillecollet.com.patch
Patch100: scl-utils-2.0.2-rhbz-1728450.patch
Patch101: fix-direct-scl_source-help-output.patch
Patch102: add-h-option-to-scl-command.patch
%description
Run-time utility for alternative packaging.
%package build
Summary: RPM build macros for alternative packaging
Requires: iso-codes redhat-rpm-config
Requires: iso-codes %{vendor}-rpm-config
%description build
Essential RPM build macros for alternative packaging.
@ -69,5 +72,17 @@ ln -s prefixes conf
%{_rpmconfigdir}/brp-scl-python-bytecompile
%changelog
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 2.0.2-1
* Thu Nov 17 2022 caodongxia <caodongxia@h-partners.com> - 1:2.0.2-5
- Replace oenEuler with the vendor macro
* Tue Mar 1 2022 yangping <yangping69@huawei.com> - 1:2.0.2-4
- Fix need config
* Tue Oct 12 2021 caodongxia <caodongxia@huawei.com> - 1:2.0.2-3
- add -h option to scl command
* Fri Oct 08 2021 wangyue <wangyue92@huawei.com> - 1:2.0.2-2
- fix direct scl_source --help output
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1:2.0.2-1
- package init