Blame SPECS/rubygem-thor.spec

ad3148
# Generated from thor-0.12.0.gem by gem2rpm -*- rpm-spec -*-
ad3148
%global gem_name thor
ad3148
ad3148
# There are not all test dependencies are available in RHEL.
ad3148
%global enable_test 0%{!?rhel:1}
ad3148
091b2f
Summary: Thor is a toolkit for building powerful command-line interfaces
ad3148
Name: rubygem-%{gem_name}
091b2f
Version: 0.19.1
091b2f
Release: 1%{?dist}
ad3148
Group: Development/Languages
ad3148
License: MIT
ad3148
URL: http://whatisthor.com/
ad3148
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
ad3148
Requires: ruby(rubygems)
ad3148
Requires: ruby(release)
ad3148
BuildRequires: rubygems-devel
ad3148
BuildRequires: ruby(release)
091b2f
BuildRequires: ruby
ad3148
%if %{enable_test} > 0
ad3148
BuildRequires: rubygem(rspec)
ad3148
BuildRequires: rubygem(fakeweb)
ad3148
BuildRequires: git
ad3148
%endif
ad3148
BuildArch: noarch
ad3148
Provides: rubygem(%{gem_name}) = %{version}
ad3148
ad3148
%description
091b2f
Thor is a toolkit for building powerful command-line interfaces.
ad3148
ad3148
%package doc
ad3148
Summary: Documentation for %{name}
ad3148
Group: Documentation
ad3148
Requires: %{name} = %{version}-%{release}
ad3148
BuildArch: noarch
ad3148
ad3148
%description doc
ad3148
This package contains documentation for %{name}.
ad3148
ad3148
%prep
ad3148
%setup -q -c -T
ad3148
ad3148
%gem_install -n %{SOURCE0}
ad3148
ad3148
%build
ad3148
ad3148
%install
ad3148
rm -rf %{buildroot}
ad3148
mkdir -p %{buildroot}%{gem_dir}
ad3148
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
ad3148
ad3148
mkdir -p %{buildroot}%{_bindir}
ad3148
cp -pa .%{_bindir}/* \
ad3148
        %{buildroot}%{_bindir}/
ad3148
ad3148
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
ad3148
ad3148
find %{buildroot}%{gem_instdir}/bin -type f | \
ad3148
  xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'
ad3148
ad3148
%if %{enable_test} > 0
ad3148
%check
ad3148
pushd .%{gem_instdir}
ad3148
ad3148
# Drop bundler dependency
091b2f
sed -i '/require "bundler"/ s/^/#/' Thorfile
ad3148
ad3148
# kill simplecov dependency
091b2f
sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb
ad3148
091b2f
# Fix failing tests
091b2f
# /components and .empty_directory are present in git under v0.18.1 tag,
091b2f
# but missing in .gem so the tests are failing
091b2f
mkdir spec/fixtures/doc/components
091b2f
touch spec/fixtures/doc/components/.empty_directory
ad3148
ad3148
rspec spec
ad3148
popd
ad3148
%endif
ad3148
ad3148
%files
ad3148
%{_bindir}/thor
ad3148
%doc %{gem_instdir}/LICENSE.md
091b2f
%dir %{gem_instdir}
ad3148
%{gem_instdir}/bin
ad3148
%{gem_libdir}
091b2f
%exclude %{gem_instdir}/.*
ad3148
%exclude %{gem_cache}
ad3148
%{gem_spec}
ad3148
ad3148
%files doc
091b2f
%doc %{gem_docdir}
091b2f
%doc %{gem_instdir}/CHANGELOG.md
091b2f
%doc %{gem_instdir}/README.md
ad3148
%{gem_instdir}/Thorfile
091b2f
%{gem_instdir}/spec
ad3148
%{gem_instdir}/thor.gemspec
ad3148
ad3148
%changelog
091b2f
* Wed Apr 08 2015 <vondruch@redhat.com> - 0.19.1-1
091b2f
- Update to thor 1.19.1.
091b2f
  Resolves: rhbz#1209921
091b2f
bed0ef
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.17.0-3
bed0ef
- Mass rebuild 2013-12-27
bed0ef
ad3148
* Thu Aug 01 2013 Vít Ondruch <vondruch@redhat.com> - 0.17.0-2
ad3148
- Fixed upstream source.
ad3148
ad3148
* Mon Mar 04 2013 Josef Stribny <jstribny@redhat.com> - 0.17.0-1
ad3148
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
ad3148
- Update to Thor 0.17.0
ad3148
ad3148
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-3
ad3148
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ad3148
ad3148
* Thu Nov 22 2012 Vít Ondruch <vondruch@redhat.com> - 0.16.0-2
ad3148
- Disable tests for EL builds.
ad3148
ad3148
* Tue Nov 13 2012 Vít Ondruch <vondruch@redhat.com> - 0.16.0-1
ad3148
- Update to thor 0.16.0.
ad3148
- Remove rubygem(diff-lcs) dependency, since it is just optional.
ad3148
- Remove rubygem(ruby2ruby) dependnecy, since it is just optional, to allow
ad3148
  conversion of Rakefiles to Thorfiles (but it doesnt work withou ParseTree anyway).
ad3148
ad3148
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-6
ad3148
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ad3148
ad3148
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-5
ad3148
- Enable tests.
ad3148
- Add patches for the failing tests.
ad3148
- Removed unnecessary ParseTree dependency.
ad3148
ad3148
* Mon Jan 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-4
ad3148
- Rebuilt for Ruby 1.9.3.
ad3148
ad3148
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-3
ad3148
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ad3148
ad3148
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-2
ad3148
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ad3148
ad3148
* Mon Jan 17 2011 Mohammed Morsi <mmorsi@redhat.com> - 0.14.6-1
ad3148
- Updated to latest upstream version
ad3148
ad3148
* Wed May 5 2010 Matthew Kent <mkent@magoazul.com> - 0.13.6-1
ad3148
- New upstream version.
ad3148
ad3148
* Fri Dec 18 2009 Matthew Kent <mkent@magoazul.com> - 0.12.0-2
ad3148
- Add Requires for rubygem(rake) (#542559).
ad3148
- Upstream replaced Source after the gemcutter migration, update to latest
ad3148
  (#542559).
ad3148
- Add Requires for rubygem(diff-lcs) as Thor can take advantage of it for
ad3148
  colourized diff output (#542559).
ad3148
ad3148
* Mon Nov 16 2009 Matthew Kent <mkent@magoazul.com> - 0.12.0-1
ad3148
- Initial package