Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created November 23, 2020 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvalena/03a04a1d04dac964493e3e364aa9dd5b to your computer and use it in GitHub Desktop.
Save pvalena/03a04a1d04dac964493e3e364aa9dd5b to your computer and use it in GitHub Desktop.
From e6f35440638ff2d33bf056129f8e3d9908c9e122 Mon Sep 17 00:00:00 2001
From: Pavel Valena <pvalena@redhat.com>
Date: Mon, 23 Nov 2020 23:00:59 +0100
Subject: [PATCH] Add bootstrap macros.
---
rubygem-sassc-rails.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/rubygem-sassc-rails.spec b/rubygem-sassc-rails.spec
index 50eaff5..5fa9c93 100644
--- a/rubygem-sassc-rails.spec
+++ b/rubygem-sassc-rails.spec
@@ -1,9 +1,12 @@
# Generated from sassc-rails-2.1.2.gem by gem2rpm -*- rpm-spec -*-
%global gem_name sassc-rails
+# Because of circular dependency with sass-rails
+%bcond_without bootstrap
+
Name: rubygem-%{gem_name}
Version: 2.1.2
-Release: 1.3%{?dist}
+Release: 1.4%{?dist}
Summary: Integrate SassC-Ruby into Rails
# SIL license found in
# test/dummy/app/assets/stylesheets/erb_render_with_context.css.erb
@@ -14,12 +17,14 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
+%if %{without bootstrap}
BuildRequires: rubygem(mocha)
BuildRequires: rubygem(sprockets-rails)
BuildRequires: rubygem(sass-rails)
BuildRequires: rubygem(sassc)
BuildRequires: rubygem(railties)
BuildRequires: rubygem(tilt)
+%endif
BuildArch: noarch
%description
@@ -46,6 +51,7 @@ mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
+%if %{without bootstrap}
%check
pushd .%{gem_instdir}
@@ -63,8 +69,8 @@ sed -i -e '/Bundler\.require/ s/^/#/' \
test/test_helper.rb
ruby -Ilib:test -rsass-rails -rsprockets/railtie -e 'Dir.glob "./test/**/*.rb", &method(:require)'
-
popd
+%endif
%files
%dir %{gem_instdir}
--
2.27.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment