|
|
|
@ -4,28 +4,26 @@
|
|
|
|
|
# There are not all test dependencies are available in RHEL.
|
|
|
|
|
%global enable_test 0%{!?rhel:1}
|
|
|
|
|
|
|
|
|
|
Summary: Scripting framework that replaces rake, sake and rubigen
|
|
|
|
|
Summary: Thor is a toolkit for building powerful command-line interfaces
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.18.1
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.19.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://whatisthor.com/
|
|
|
|
|
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
%if %{enable_test} > 0
|
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
|
BuildRequires: rubygem(rspec) < 3
|
|
|
|
|
BuildRequires: rubygem(fakeweb)
|
|
|
|
|
BuildRequires: git
|
|
|
|
|
%endif
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Thor is a scripting framework that replaces rake, sake and rubigen.
|
|
|
|
|
Thor is a toolkit for building powerful command-line interfaces.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
@ -62,14 +60,10 @@ find %{buildroot}%{gem_instdir}/bin -type f | \
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
|
|
# Drop bundler dependency
|
|
|
|
|
sed -i "s/require 'bundler'//" Thorfile
|
|
|
|
|
sed -i '/require "bundler"/ s/^/#/' Thorfile
|
|
|
|
|
|
|
|
|
|
# kill simplecov dependency
|
|
|
|
|
sed -i '3,10d' spec/helper.rb
|
|
|
|
|
|
|
|
|
|
# This fixes on test failure due to encoding issues.
|
|
|
|
|
# https://github.com/wycats/thor/issues/278
|
|
|
|
|
sed -i '177 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb
|
|
|
|
|
sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb
|
|
|
|
|
|
|
|
|
|
# Fix failing tests
|
|
|
|
|
# /components and .empty_directory are present in git under v0.18.1 tag,
|
|
|
|
@ -77,7 +71,7 @@ sed -i '177 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb
|
|
|
|
|
mkdir spec/fixtures/doc/components
|
|
|
|
|
touch spec/fixtures/doc/components/.empty_directory
|
|
|
|
|
|
|
|
|
|
rspec spec
|
|
|
|
|
rspec2 spec
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -100,6 +94,9 @@ popd
|
|
|
|
|
%{gem_instdir}/thor.gemspec
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 09 2014 Vít Ondruch <vondruch@redhat.com> - 0.19.1-1
|
|
|
|
|
- Update to thor 1.19.1.
|
|
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|