diff --git a/0001-createrepo_c-add-sw.patch b/0001-createrepo_c-add-sw.patch new file mode 100644 index 0000000000000000000000000000000000000000..c0c30174a64531e296620b5a2e88e0033b666fa4 --- /dev/null +++ b/0001-createrepo_c-add-sw.patch @@ -0,0 +1,27 @@ +From a387d813329d7d56d06943b007663335c6388bc4 Mon Sep 17 00:00:00 2001 +From: wxiat +Date: Tue, 13 Jun 2023 15:21:51 +0800 +Subject: [PATCH] add sw + +Signed-off-by: wxiat +--- + src/mergerepo_c.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/mergerepo_c.c b/src/mergerepo_c.c +index 34f21c9..2f2f024 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.31.1 + diff --git a/createrepo_c.spec b/createrepo_c.spec index 126769769ac15a9edf8c278852169e42f537f7f6..e0313160c5d808ec54d74cf55173dc54132dcae2 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global libmodulemd_version 2.3.0 %define __cmake_in_source_build 1 @@ -25,12 +26,14 @@ Summary: Creates a common metadata repository Name: createrepo_c Version: 0.20.1 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} License: GPLv2+ URL: https://github.com/rpm-software-management/createrepo_c Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Patch1: 0001-Test_compare_contents_instead_of_checksum-cleanup.patch +Patch1000: 0001-createrepo_c-add-sw.patch + BuildRequires: cmake BuildRequires: gcc BuildRequires: bzip2-devel @@ -176,6 +179,9 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo %{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info %changelog +* Tue Mar 19 2024 wxiat - 0.20.1-2.0.1 +- cherry-pick `add sw patch #9016318aef22e9876a41b0baa8e9da595783df98`. + * Mon Jun 26 2023 Jaroslav Rohel - 0.20.1-2 - Change test to compare contents instead of checksum, cleanup (RhBug:2130179)