From 2ac6158c7bf156e2f05b98f04cf5469d6010fd3c Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Nov 30 2021 16:42:58 +0000 Subject: Use bcond_with for bootstrap --- diff --git a/rubygem-globalid.spec b/rubygem-globalid.spec index 01ff88a..e8cdcd1 100644 --- a/rubygem-globalid.spec +++ b/rubygem-globalid.spec @@ -1,7 +1,7 @@ # Generated from globalid-0.3.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name globalid -%{?_with_bootstrap: %global bootstrap 1} +%bcond_with bootstrap Name: rubygem-%{gem_name} Version: 0.4.2 @@ -17,7 +17,7 @@ Source1: %{gem_name}-%{version}-tests.tar.gz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.9.3 -%if ! 0%{?bootstrap} +%if %{without bootstrap} BuildRequires: rubygem(activesupport) >= 4.1 BuildRequires: rubygem(activemodel) >= 4.1 BuildRequires: rubygem(railties) >= 4.1 @@ -49,7 +49,7 @@ cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ -%if ! 0%{?bootstrap} +%if %{without bootstrap} %check pushd .%{gem_instdir} ln -s %{_builddir}/test test