diff --git a/createrepo_c-Add-sw64-architecture.patch b/createrepo_c-Add-sw64-architecture.patch new file mode 100644 index 0000000000000000000000000000000000000000..5b7d12025ce37ffe98b1385c92d88cc92de9fd70 --- /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 e8c2b1f83b86d41a5f915cc07fc7f4a7a6cb3c64..127ea4f1a86d0d899c4e7925e2b2317bcde8c78e 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