From de5a0bbdc6ae8e4fc6b0cbc059d28de69ebafbe4 Mon Sep 17 00:00:00 2001 From: wuzx Date: Fri, 18 Nov 2022 12:11:12 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wuzx (cherry picked from commit c3d778b18ea927116b843307cf2ff6d849d8298b) --- createrepo_c-Add-sw64-architecture.patch | 29 ++++++++++++++++++++++++ createrepo_c.spec | 6 ++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 createrepo_c-Add-sw64-architecture.patch diff --git a/createrepo_c-Add-sw64-architecture.patch b/createrepo_c-Add-sw64-architecture.patch new file mode 100644 index 0000000..5b7d120 --- /dev/null +++ b/createrepo_c-Add-sw64-architecture.patch @@ -0,0 +1,29 @@ +From d30fe3b606fcc5052665c7e00d20fe4374ac4ada Mon Sep 17 00:00:00 2001 +From: wzx +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 +--- + 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 + diff --git a/createrepo_c.spec b/createrepo_c.spec index e8c2b1f..127ea4f 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -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 - 0.17.6-3 +- Add sw64 architecture + * Sat Oct 22 2022 yanglongkang - 0.17.6-2 - add the dynamic library file in the rpm package to the ldconfig management fix rpmbuild warning -- Gitee