Compare commits
10 Commits
b6558d2a13
...
8f85250482
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f85250482 | ||
|
|
80d01ebe4d | ||
|
|
4cdeb7edce | ||
|
|
9246b60a72 | ||
|
|
5c9d82790f | ||
|
|
9441ce7703 | ||
|
|
c5ffc4ec1f | ||
|
|
ebf8878a9f | ||
|
|
314db0ba5b | ||
|
|
c28d2ac1b4 |
Binary file not shown.
BIN
createrepo_c-1.0.1.tar.gz
Normal file
BIN
createrepo_c-1.0.1.tar.gz
Normal file
Binary file not shown.
29
createrepo_c-Add-sw64-architecture.patch
Normal file
29
createrepo_c-Add-sw64-architecture.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user