From: Jan Rękorajski Date: Mon, 22 Feb 2021 12:21:10 +0000 (+0100) Subject: - added rpm5 bcond X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=013e378f77963eea858f8c8bdb36c758969ca2b7;p=packages%2Fruby-rpm.git - added rpm5 bcond - rel 9 --- diff --git a/ruby-rpm.spec b/ruby-rpm.spec index 87ec750..985f94b 100644 --- a/ruby-rpm.spec +++ b/ruby-rpm.spec @@ -1,8 +1,12 @@ +# +# Conditional build: +%bcond_with rpm5 # build with rpm5 + %define pkgname rpm Summary: An interface to access RPM database for Ruby Name: ruby-%{pkgname} Version: 1.3.1 -Release: 7 +Release: 9 License: GPL v2 Group: Development/Languages Source0: http://rubygems.org/downloads/ruby-rpm-%{version}.gem @@ -30,7 +34,7 @@ dependencies, and files). %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 -%patch1 -p1 +%{?with_rpm5:%patch1 -p1} %build cd ext/%{pkgname}