|
|
892af5 |
%{!?scl:%global pkg_name %{name}}
|
|
|
892af5 |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
892af5 |
|
|
|
892af5 |
# Generated from thor-0.12.0.gem by gem2rpm -*- rpm-spec -*-
|
|
|
892af5 |
%global gem_name thor
|
|
|
892af5 |
|
|
|
892af5 |
Summary: Scripting framework that replaces rake, sake and rubigen
|
|
|
892af5 |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
892af5 |
Version: 0.18.1
|
|
|
892af5 |
Release: 3%{?dist}
|
|
|
892af5 |
Group: Development/Languages
|
|
|
892af5 |
License: MIT
|
|
|
892af5 |
URL: http://github.com/wycats/thor
|
|
|
892af5 |
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
|
892af5 |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
892af5 |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
892af5 |
Requires: %{?scl_prefix_ruby}rubygem(rake)
|
|
|
892af5 |
Requires: %{?scl_prefix}rubygem(diff-lcs)
|
|
|
892af5 |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
892af5 |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
892af5 |
BuildRequires: %{?scl_prefix}rubygem(rspec)
|
|
|
892af5 |
BuildRequires: %{?scl_prefix_ruby}rubygem(rake)
|
|
|
892af5 |
BuildRequires: %{?scl_prefix_ruby}rubygem(rdoc)
|
|
|
892af5 |
BuildRequires: %{?scl_prefix}rubygem(fakeweb)
|
|
|
892af5 |
#BuildRequires: %{?scl_prefix}rubygem(bundler)
|
|
|
892af5 |
BuildArch: noarch
|
|
|
892af5 |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
892af5 |
|
|
|
892af5 |
# Filter auto requires from /spec
|
|
|
892af5 |
%global __requires_exclude_from ^%{gem_instdir}/spec/.*$
|
|
|
892af5 |
%if ( 0%{?rhel} && 0%{?rhel} < 7 )
|
|
|
892af5 |
%filter_requires_in %{gem_instdir}/spec/.*$
|
|
|
892af5 |
%filter_setup
|
|
|
892af5 |
%endif
|
|
|
892af5 |
|
|
|
892af5 |
|
|
|
892af5 |
%description
|
|
|
892af5 |
Thor is a scripting framework that replaces rake, sake and rubigen.
|
|
|
892af5 |
|
|
|
892af5 |
%package doc
|
|
|
892af5 |
Summary: Documentation for %{pkg_name}
|
|
|
892af5 |
Group: Documentation
|
|
|
892af5 |
|
|
|
892af5 |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
892af5 |
|
|
|
892af5 |
%description doc
|
|
|
892af5 |
This package contains documentation for %{pkg_name}.
|
|
|
892af5 |
|
|
|
892af5 |
%prep
|
|
|
892af5 |
%setup -q -c -T
|
|
|
892af5 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
892af5 |
%gem_install -n %{SOURCE0}
|
|
|
892af5 |
%{?scl:EOF}
|
|
|
892af5 |
|
|
|
892af5 |
%build
|
|
|
892af5 |
|
|
|
892af5 |
%install
|
|
|
892af5 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
892af5 |
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
892af5 |
|
|
|
892af5 |
# If there were programs installed:
|
|
|
892af5 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
892af5 |
cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
|
|
|
892af5 |
|
|
|
892af5 |
find %{buildroot}/%{_bindir} -type f | xargs chmod a+x
|
|
|
892af5 |
|
|
|
892af5 |
find %{buildroot}/%{_bindir} -type f | \
|
|
|
892af5 |
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!%{?scl:%_scl_root}/usr/bin/ruby"'
|
|
|
892af5 |
|
|
|
892af5 |
%clean
|
|
|
892af5 |
|
|
|
892af5 |
%check
|
|
|
892af5 |
pushd %{buildroot}%{gem_instdir}
|
|
|
892af5 |
|
|
|
892af5 |
# Drop bundler dependency
|
|
|
892af5 |
sed -i "s/require 'bundler'//" Thorfile
|
|
|
892af5 |
|
|
|
892af5 |
# kill simplecov dependency
|
|
|
892af5 |
sed -i '3,10d' spec/helper.rb
|
|
|
892af5 |
|
|
|
892af5 |
# Fix failing tests
|
|
|
892af5 |
# /components and .empty_directory are present in git under v0.18.1 tag,
|
|
|
892af5 |
# but missing in .gem so the tests are failing
|
|
|
892af5 |
mkdir spec/fixtures/doc/components
|
|
|
892af5 |
touch spec/fixtures/doc/components/.empty_directory
|
|
|
892af5 |
|
|
|
892af5 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
892af5 |
LANG=en_US.utf8 rspec spec
|
|
|
892af5 |
%{?scl:EOF}
|
|
|
892af5 |
popd
|
|
|
892af5 |
|
|
|
892af5 |
%files
|
|
|
892af5 |
%{_bindir}/thor
|
|
|
892af5 |
%doc %{gem_instdir}/LICENSE.md
|
|
|
892af5 |
%dir %{gem_instdir}
|
|
|
892af5 |
%{gem_instdir}/bin
|
|
|
892af5 |
%{gem_libdir}
|
|
|
892af5 |
%exclude %{gem_instdir}/.*
|
|
|
892af5 |
%exclude %{gem_cache}
|
|
|
892af5 |
%{gem_spec}
|
|
|
892af5 |
|
|
|
892af5 |
%files doc
|
|
|
892af5 |
%doc %{gem_docdir}
|
|
|
892af5 |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
892af5 |
%doc %{gem_instdir}/README.md
|
|
|
892af5 |
%{gem_instdir}/Thorfile
|
|
|
892af5 |
%{gem_instdir}/spec
|
|
|
892af5 |
%{gem_instdir}/thor.gemspec
|
|
|
892af5 |
|
|
|
892af5 |
%changelog
|
|
|
892af5 |
* Thu Feb 13 2014 Josef Stribny <jstribny@redhat.com> - 0.18.1-3
|
|
|
892af5 |
- Filter auto-generated requires from example .sh script included in tests
|
|
|
892af5 |
|
|
|
892af5 |
* Mon Jan 27 2014 Josef Stribny <jstribny@redhat.com> - 0.18.1-2
|
|
|
892af5 |
- Fix upstream url
|
|
|
892af5 |
|
|
|
892af5 |
* Wed Jun 05 2013 Josef Stribny <jstribny@redhat.com> - 0.18.1-1
|
|
|
892af5 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
892af5 |
- Update to Thor 0.18.1
|
|
|
892af5 |
|
|
|
892af5 |
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.15.4-1
|
|
|
892af5 |
- Update to Thor 0.15.4.
|
|
|
892af5 |
- Specfile cleanup
|
|
|
892af5 |
|
|
|
892af5 |
* Thu May 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-7
|
|
|
892af5 |
- Fix patches to apply cleanly.
|
|
|
892af5 |
|
|
|
892af5 |
* Tue Apr 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-6
|
|
|
892af5 |
- Rebuilt for scl.
|
|
|
892af5 |
|
|
|
892af5 |
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-5
|
|
|
892af5 |
- Enable tests.
|
|
|
892af5 |
- Add patches for the failing tests.
|
|
|
892af5 |
- Removed unnecessary ParseTree dependency.
|
|
|
892af5 |
|
|
|
892af5 |
* Mon Jan 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-4
|
|
|
892af5 |
- Rebuilt for Ruby 1.9.3.
|
|
|
892af5 |
|
|
|
892af5 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-3
|
|
|
892af5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
892af5 |
|
|
|
892af5 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-2
|
|
|
892af5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
892af5 |
|
|
|
892af5 |
* Mon Jan 17 2011 Mohammed Morsi <mmorsi@redhat.com> - 0.14.6-1
|
|
|
892af5 |
- Updated to latest upstream version
|
|
|
892af5 |
|
|
|
892af5 |
* Wed May 5 2010 Matthew Kent <mkent@magoazul.com> - 0.13.6-1
|
|
|
892af5 |
- New upstream version.
|
|
|
892af5 |
|
|
|
892af5 |
* Fri Dec 18 2009 Matthew Kent <mkent@magoazul.com> - 0.12.0-2
|
|
|
892af5 |
- Add Requires for rubygem(rake) (#542559).
|
|
|
892af5 |
- Upstream replaced Source after the gemcutter migration, update to latest
|
|
|
892af5 |
(#542559).
|
|
|
892af5 |
- Add Requires for rubygem(diff-lcs) as Thor can take advantage of it for
|
|
|
892af5 |
colourized diff output (#542559).
|
|
|
892af5 |
|
|
|
892af5 |
* Mon Nov 16 2009 Matthew Kent <mkent@magoazul.com> - 0.12.0-1
|
|
|
892af5 |
- Initial package
|