Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8f85250482
!38 Add sw64 architecture
From: @wangjiang37 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-08-13 08:24:37 +00:00
wangjiang
80d01ebe4d Add sw64 architecture 2024-08-13 15:29:58 +08:00
openeuler-ci-bot
4cdeb7edce
!34 update createrepo_c to 1.0.1
From: @pshysimon 
Reviewed-by: @znzjugod 
Signed-off-by: @znzjugod
2024-02-22 01:29:38 +00:00
caixiaomeng
9246b60a72 update createrepo_c to 1.0.1 2024-02-20 20:23:27 +08:00
openeuler-ci-bot
5c9d82790f
!33 createrepo: upgrade to 0.20.1
From: @lvying6 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2023-01-19 07:22:11 +00:00
Lv Ying
9441ce7703 createrepo: upgrade to 0.20.1 2023-01-19 15:08:02 +08:00
openeuler-ci-bot
c5ffc4ec1f
!27 修复rpmbuild告警及对动态文件进行管理
From: @markeryang 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
2022-10-26 07:03:51 +00:00
markeryang
ebf8878a9f fix rpmbuild warning & add the dynamic library file in the rpm package to the ldconfig management 2022-10-22 18:17:13 +08:00
openeuler-ci-bot
314db0ba5b
!21 update version to 0.17.6
From: @yang_zhuang_zhuang 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-02-12 03:54:07 +00:00
yang_zhuang_zhuang
c28d2ac1b4 update version to 0.17.6 2021-12-29 15:04:47 +08:00
4 changed files with 56 additions and 8 deletions

Binary file not shown.

BIN
createrepo_c-1.0.1.tar.gz Normal file

Binary file not shown.

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
@@ -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,12 +32,14 @@
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 0.16.2
Release: 1
Version: 1.0.1
Release: 2
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
@ -51,6 +53,7 @@ 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
@ -69,13 +72,14 @@ 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
Obsoletes: %{name}-libs < %{version}-%{release}
%description
C implementation of Createrepo.
@ -98,7 +102,6 @@ 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
@ -112,7 +115,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}
%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF} -DENABLE_DRPM=%{with_drpm:ON}%{!?with_drpm:OFF}
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
# Build C documentation
make doc-c
@ -138,10 +141,10 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
%endif
%if 0%{?openEuler} == 0 && 0%{?rhel} && 0%{?rhel} <= 7
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%else
%ldconfig_scriptlets libs
%ldconfig_scriptlets
%endif
%files
@ -179,6 +182,22 @@ 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