From 5c38357832e02e04baf16ddbefcd035832116e95 Mon Sep 17 00:00:00 2001 From: zhangsn Date: Wed, 3 Sep 2025 06:57:02 +0000 Subject: [PATCH] Add legacy_hashes to support md5 sha sha1 Signed-off-by: zhangsn (cherry picked from commit d117507f007ddda2d275fdcb16490fb2d479d202) --- createrepo_c.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/createrepo_c.spec b/createrepo_c.spec index 7487cf3..24a42b1 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -30,10 +30,12 @@ %bcond_without libmodulemd %endif +%bcond_without legacy_hashes + Summary: Creates a common metadata repository Name: createrepo_c Version: 1.0.1 -Release: 2 +Release: 3 License: GPLv2+ URL: https://github.com/rpm-software-management/createrepo_c Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz @@ -115,7 +117,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} -DENABLE_DRPM=%{with_drpm:ON}%{!?with_drpm:OFF} -DWITH_LEGACY_HASHES=%{?with_legacy_hashes:ON}%{!?with_legacy_hashes:OFF} make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" # Build C documentation make doc-c @@ -182,6 +184,9 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo %endif %changelog +* Wed Sep 03 2025 zhangshaoning - 1.0.1-3 +- Add legacy_hashes to support md5 sha sha1 + * Tue Aug 13 2024 wangjiang - 1.0.1-2 - Add sw64 architecture -- Gitee