Compare commits

..

No commits in common. "8f85250482d12705282b4f57162d1d53c893892d" and "b6558d2a13863d9bc93ecb0e9ce8e01a0db62590" have entirely different histories.

4 changed files with 8 additions and 56 deletions

BIN
createrepo_c-0.16.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,29 +0,0 @@
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
@@ -182,6 +182,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

@ -32,14 +32,12 @@
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 1.0.1
Release: 2
Version: 0.16.2
Release: 1
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
BuildRequires: bzip2-devel
@ -53,7 +51,6 @@ BuildRequires: rpm-devel >= 4.8.0-28
BuildRequires: sqlite-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel
Requires: glib2
%if %{with zchunk}
BuildRequires: pkgconfig(zck) >= 0.9.11
BuildRequires: zchunk
@ -72,14 +69,13 @@ Requires: rpm >= 4.9.0
%if %{with drpm}
BuildRequires: drpm-devel >= 0.4.0
%endif
BuildRequires: pkgconfig(libzstd)
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} > 7
Obsoletes: createrepo < 0.11.0
Provides: createrepo = %{version}-%{release}
%endif
Provides: %{name}-libs = %{version}-%{release} %{name}-libs%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-libs < %{version}-%{release}
Obsoletes: %{name}-libs
%description
C implementation of Createrepo.
@ -102,6 +98,7 @@ These development files are for easy manipulation with a repodata.
Summary: Python 3 bindings for the createrepo_c library
%{?python_provide:%python_provide python3-%{name}}
BuildRequires: python3-devel
BuildRequires: python3-nose
BuildRequires: python3-sphinx
Requires: createrepo_c
@ -115,7 +112,7 @@ Python 3 bindings for the createrepo_c library.
%build
# Build createrepo_c with Pyhon 3
%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF} -DENABLE_DRPM=%{with_drpm:ON}%{!?with_drpm:OFF}
%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF}
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
# Build C documentation
make doc-c
@ -141,10 +138,10 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%endif
%if 0%{?openEuler} == 0 && 0%{?rhel} && 0%{?rhel} <= 7
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%else
%ldconfig_scriptlets
%ldconfig_scriptlets libs
%endif
%files
@ -182,22 +179,6 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%endif
%changelog
* Tue Aug 13 2024 wangjiang <wangjiang37@h-partners.com> - 1.0.1-2
- Add sw64 architecture
* Thu Feb 1 2024 caixiaomeng <caixiaomeng2@huawei.com> - 1.0.1-1
- update version to 1.0.1
* Thu Jan 19 2023 Lv Ying <lvying6@huawei.com> - 0.20.1-1
- update version to 0.20.1
* 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
* Wed Dec 29 2021 yangzhuangzhuang <yangzhuangzhuang1@Huawei.com> - 0.17.6-1
- update version to 0.17.6
* Thu Jan 21 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 0.16.2-1
- update 0.16.2