From 6ade1e9ac0a3053da4114445e1ab63e0a6b727e3 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 12 Apr 2016 13:09:43 +0200 Subject: [PATCH] Make drpm builds conditional Signed-off-by: Igor Gnatenko --- createrepo_c.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/createrepo_c.spec b/createrepo_c.spec index d223e50..f6404d2 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -11,14 +11,16 @@ %if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_with python3 +%bcond_with drpm %else %bcond_without python3 +%bcond_without drpm %endif Summary: Creates a common metadata repository Name: createrepo_c Version: 0.10.0 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ URL: https://github.com/rpm-software-management/createrepo_c Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz @@ -44,7 +46,7 @@ Requires: rpm >= 4.8.0-28 BuildRequires: bash-completion Requires: rpm >= 4.9.0 %endif -%if 0%{?fedora} +%if %{with drpm} BuildRequires: drpm-devel >= 0.1.3 %endif @@ -184,6 +186,9 @@ popd %endif %changelog +* Tue Apr 12 2016 Igor Gnatenko - 0.10.0-5 +- Make drpm builds conditional + * Sun Apr 10 2016 Igor Gnatenko - 0.10.0-4 - Don't own python3_sitearch dir in python3 subpkg - Use %%license macro