!31 [sync] PR-25: 添加sw架构

From: @openeuler-sync-bot 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
This commit is contained in:
openeuler-ci-bot 2022-11-25 02:35:42 +00:00 committed by Gitee
commit 3340df2434
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From d30fe3b606fcc5052665c7e00d20fe4374ac4ada Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Fri, 28 Oct 2022 14:57:55 +0800
Subject: [PATCH] Add sw64 architecture
Add sw64 architecture in file src/mergerepo_c.c to support sw64 architecture.
Signed-off-by: wzx <wuzx1226@qq.com>
---
src/mergerepo_c.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mergerepo_c.c b/src/mergerepo_c.c
index fa26879..bb65a18 100644
--- a/src/mergerepo_c.c
+++ b/src/mergerepo_c.c
@@ -180,6 +180,9 @@ append_arch(GSList *list, gchar *arch, gboolean expand)
list = append_arch(list, "alphaev67", FALSE);
list = append_arch(list, "alphaev68", FALSE);
list = append_arch(list, "alphaev7", FALSE);
+ } else if (!g_strcmp0(arch, "sw_64")) {
+ list = append_arch(list, "sw_64", FALSE);
+ list = append_arch(list, "sw_64sw6b", FALSE);
} else if (!g_strcmp0(arch, "armhfp")) {
list = append_arch(list, "armv7hl", FALSE);
list = append_arch(list, "armv7hnl", FALSE);
--
2.33.0

View File

@ -33,10 +33,11 @@
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 0.17.6
Release: 2
Release: 3
License: GPLv2+
URL: https://github.com/rpm-software-management/createrepo_c
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch1: createrepo_c-Add-sw64-architecture.patch
BuildRequires: cmake
BuildRequires: gcc
@ -178,6 +179,9 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%endif
%changelog
* Mon Nov 14 2022 wuzx<wuzx1226@qq.com> - 0.17.6-3
- Add sw64 architecture
* Sat Oct 22 2022 yanglongkang <yanglongkang@h-partners.com> - 0.17.6-2
- add the dynamic library file in the rpm package to the ldconfig management
fix rpmbuild warning