mojavelinux pushed to rubygem-asciidoctor (epel7). "drop tests and test dependencies in EPEL build"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed May 13 21:20:29 UTC 2015


From 2740c8aefd0937b29801b8c3589f52f1da1b4423 Mon Sep 17 00:00:00 2001
From: Dan Allen <dan.j.allen at gmail.com>
Date: Wed, 13 May 2015 15:13:52 -0600
Subject: drop tests and test dependencies in EPEL build


diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec
index 55a9fd5..492f737 100644
--- a/rubygem-asciidoctor.spec
+++ b/rubygem-asciidoctor.spec
@@ -22,13 +22,17 @@ BuildRequires: ruby(abi) = 1.8
 %endif
 BuildRequires: rubygems-devel
 BuildRequires: ruby(rubygems)
+%if 0%{?el6} || 0%{?el7}
+# Dependencies aren't available on EPEL
+%else
 BuildRequires: rubygem(coderay)
 BuildRequires: rubygem(erubis)
+BuildRequires: rubygem(haml)
 BuildRequires: rubygem(minitest)
 BuildRequires: rubygem(nokogiri)
-BuildRequires: rubygem(tilt)
-BuildRequires: rubygem(haml)
 BuildRequires: rubygem(slim)
+BuildRequires: rubygem(tilt)
+%endif
 BuildArch: noarch
 Provides: asciidoctor = %{version}
 %if 0%{?fc19} || 0%{?fc20} || 0%{?el6} || 0%{?el7}
@@ -76,7 +80,11 @@ gem build %{gem_name}.gemspec
 %gem_install -n %{gem_name}-%{version}%{pre}.gem
 
 %check
+%if 0%{?el6} || 0%{?el7}
+# Asciidoctor tests require Minitest 5, so we can't run them on EPEL
+%else
 LANG=en_US.utf8 ruby -I"lib:test" test/*_test.rb
+%endif
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/rubygem-asciidoctor.git/commit/?h=epel7&id=2740c8aefd0937b29801b8c3589f52f1da1b4423


More information about the scm-commits mailing list