Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavla Kratochvilova <pkratoch@redhat.com>2021-11-11 10:14:57 +0300
committeramatej <matej.ales@seznam.cz>2021-11-15 10:22:30 +0300
commit7a806f58d2737a17b1234dcbc8715cb3ae02edaa (patch)
treeb780c839603cf4066642044af252beaf9edacfe3
parentc4e6808c710ec68e56bd93b0366f3b6cbeee3167 (diff)
[spec] Option for legacy hashes, enable on RHEL <= 8 (RhBug:2022271)
-rw-r--r--createrepo_c.spec7
1 files changed, 7 insertions, 0 deletions
diff --git a/createrepo_c.spec b/createrepo_c.spec
index 77ac52a..09a3709 100644
--- a/createrepo_c.spec
+++ b/createrepo_c.spec
@@ -22,6 +22,12 @@
%bcond_without libmodulemd
%endif
+%if 0%{?rhel} && 0%{?rhel} <= 8
+%bcond_without legacy_hashes
+%else
+%bcond_with legacy_hashes
+%endif
+
Summary: Creates a common metadata repository
Name: createrepo_c
Version: 0.17.7
@@ -107,6 +113,7 @@ pushd build-py3
%cmake .. \
-DWITH_ZCHUNK=%{?with_zchunk:ON}%{!?with_zchunk:OFF} \
-DWITH_LIBMODULEMD=%{?with_libmodulemd:ON}%{!?with_libmodulemd:OFF} \
+ -DWITH_LEGACY_HASHES=%{?with_legacy_hashes:ON}%{!?with_legacy_hashes:OFF} \
-DENABLE_DRPM=%{?with_drpm:ON}%{!?with_drpm:OFF}
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
# Build C documentation