Compare commits
10 Commits
7e94419d1b
...
3340df2434
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3340df2434 | ||
|
|
710f6e9db5 | ||
|
|
726a039d02 | ||
|
|
fe4e991088 | ||
|
|
10286ad9f5 | ||
|
|
204f071546 | ||
|
|
b6558d2a13 | ||
|
|
fde2d15aa4 | ||
|
|
ef17b55c0c | ||
|
|
1129dcbbd1 |
Binary file not shown.
BIN
createrepo_c-0.17.6.tar.gz
Normal file
BIN
createrepo_c-0.17.6.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
|
||||||
|
@@ -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
|
||||||
|
|
||||||
@ -18,12 +18,6 @@
|
|||||||
%bcond_without drpm
|
%bcond_without drpm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?openEuler} || 0%{?fedora} > 29 || 0%{?rhel} > 7
|
|
||||||
%bcond_with python2
|
|
||||||
%else
|
|
||||||
%bcond_without python2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?openEuler} || 0%{?rhel} || 0%{?fedora} < 29
|
%if 0%{?openEuler} || 0%{?rhel} || 0%{?fedora} < 29
|
||||||
%bcond_with zchunk
|
%bcond_with zchunk
|
||||||
%else
|
%else
|
||||||
@ -38,11 +32,12 @@
|
|||||||
|
|
||||||
Summary: Creates a common metadata repository
|
Summary: Creates a common metadata repository
|
||||||
Name: createrepo_c
|
Name: createrepo_c
|
||||||
Version: 0.16.0
|
Version: 0.17.6
|
||||||
Release: 1
|
Release: 3
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/rpm-software-management/createrepo_c
|
URL: https://github.com/rpm-software-management/createrepo_c
|
||||||
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch1: createrepo_c-Add-sw64-architecture.patch
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -81,7 +76,7 @@ Obsoletes: createrepo < 0.11.0
|
|||||||
Provides: createrepo = %{version}-%{release}
|
Provides: createrepo = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
Provides: %{name}-libs = %{version}-%{release} %{name}-libs%{?_isa} = %{version}-%{release}
|
Provides: %{name}-libs = %{version}-%{release} %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: %{name}-libs
|
Obsoletes: %{name}-libs < %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
C implementation of Createrepo.
|
C implementation of Createrepo.
|
||||||
@ -99,30 +94,11 @@ These development files are for easy manipulation with a repodata.
|
|||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{name}
|
|
||||||
Summary: Python bindings for the createrepo_c library
|
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-nose
|
|
||||||
%if 0%{?openEuler} == 0 && 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
BuildRequires: python-sphinx
|
|
||||||
%else
|
|
||||||
BuildRequires: python2-sphinx
|
|
||||||
%endif
|
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
|
||||||
Provides: python-%{name}%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-%{name}
|
|
||||||
Python bindings for the createrepo_c library.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python 3 bindings for the createrepo_c library
|
Summary: Python 3 bindings for the createrepo_c library
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-nose
|
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
Requires: createrepo_c
|
Requires: createrepo_c
|
||||||
|
|
||||||
@ -133,75 +109,27 @@ Python 3 bindings for the createrepo_c library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
%if %{with python2}
|
|
||||||
mkdir build-py2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
mkdir build-py3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Build createrepo_c with Python 2
|
|
||||||
%if %{with python2}
|
|
||||||
pushd build-py2
|
|
||||||
%cmake .. -DPYTHON_DESIRED:FILEPATH=%{__python2} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF}
|
|
||||||
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
|
|
||||||
%if %{without python3}
|
|
||||||
# Build C documentation
|
|
||||||
make doc-c
|
|
||||||
%endif
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Build createrepo_c with Pyhon 3
|
# Build createrepo_c with Pyhon 3
|
||||||
%if %{with python3}
|
%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF} -DENABLE_DRPM=%{with_drpm:ON}%{!?with_drpm:OFF}
|
||||||
pushd build-py3
|
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
|
||||||
%cmake .. -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} %{!?with_libmodulemd:-DWITH_LIBMODULEMD=OFF}
|
# Build C documentation
|
||||||
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
|
make doc-c
|
||||||
# Build C documentation
|
|
||||||
make doc-c
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?openEuler} == 0 && %{with python2}
|
|
||||||
pushd build-py2
|
|
||||||
%if %{without python3}
|
|
||||||
# Compile C tests
|
|
||||||
make tests
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Run Python 2 tests
|
|
||||||
make ARGS="-V" test
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Run Python 3 tests
|
# Run Python 3 tests
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
pushd build-py3
|
# Compile C tests
|
||||||
# Compile C tests
|
make tests
|
||||||
make tests
|
|
||||||
|
|
||||||
# Run Python 3 tests
|
# Run Python 3 tests
|
||||||
make ARGS="-V" test
|
make ARGS="-V" test
|
||||||
popd
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
# Install createrepo_c with Python 3
|
||||||
pushd build-py2
|
make install DESTDIR=%{buildroot}
|
||||||
# Install createrepo_c with Python 2
|
|
||||||
make install DESTDIR=%{buildroot}
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
pushd build-py3
|
|
||||||
# Install createrepo_c with Python 3
|
|
||||||
make install DESTDIR=%{buildroot}
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?openEuler} || 0%{?fedora} || 0%{?rhel} > 7
|
||||||
ln -sr %{buildroot}%{_bindir}/createrepo_c %{buildroot}%{_bindir}/createrepo
|
ln -sr %{buildroot}%{_bindir}/createrepo_c %{buildroot}%{_bindir}/createrepo
|
||||||
@ -210,10 +138,10 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?openEuler} == 0 && 0%{?rhel} && 0%{?rhel} <= 7
|
%if 0%{?openEuler} == 0 && 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%post libs -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
%else
|
%else
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -238,22 +166,12 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
|
|||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}/
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%if %{with python3}
|
%doc doc/html
|
||||||
%doc build-py3/doc/html
|
|
||||||
%else
|
|
||||||
%doc build-py2/doc/html
|
|
||||||
%endif
|
|
||||||
%{_mandir}/man8/createrepo_c.8*
|
%{_mandir}/man8/createrepo_c.8*
|
||||||
%{_mandir}/man8/mergerepo_c.8*
|
%{_mandir}/man8/mergerepo_c.8*
|
||||||
%{_mandir}/man8/modifyrepo_c.8*
|
%{_mandir}/man8/modifyrepo_c.8*
|
||||||
%{_mandir}/man8/sqliterepo_c.8*
|
%{_mandir}/man8/sqliterepo_c.8*
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{name}
|
|
||||||
%{python2_sitearch}/%{name}/
|
|
||||||
%{python2_sitearch}/%{name}-%{version}-py%{python2_version}.egg-info
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%{python3_sitearch}/%{name}/
|
%{python3_sitearch}/%{name}/
|
||||||
@ -261,6 +179,22 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 14 2022 wuzx<wuzx1226@qq.com> - 0.17.6-3
|
||||||
|
- Add sw64 architecture
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Fri Dec 17 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
|
||||||
|
|
||||||
|
* Sat Jul 25 2020 Liquor <lirui130@huawei.com> - 0.16.0-2
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Sat Jul 25 2020 Liquor <lirui130@huawei.com> - 0.16.0-1
|
* Sat Jul 25 2020 Liquor <lirui130@huawei.com> - 0.16.0-1
|
||||||
- update 0.16.0
|
- update 0.16.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user