From ad31488f7cf8d9caa1748d8d15d24e639dfd6730 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Aug 01 2013 12:48:36 +0000 Subject: import rubygem-thor-0.17.0-2.el7.src.rpm --- diff --git a/.rubygem-thor.metadata b/.rubygem-thor.metadata new file mode 100644 index 0000000..cc97d45 --- /dev/null +++ b/.rubygem-thor.metadata @@ -0,0 +1 @@ +a0b999fb57fbc40ddd422cc82b200ff91f9b0174 SOURCES/thor-0.17.0.gem diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-thor.spec b/SPECS/rubygem-thor.spec new file mode 100644 index 0000000..e7458a5 --- /dev/null +++ b/SPECS/rubygem-thor.spec @@ -0,0 +1,150 @@ +# Generated from thor-0.12.0.gem by gem2rpm -*- rpm-spec -*- +%global gem_name thor + +# 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 +Name: rubygem-%{gem_name} +Version: 0.17.0 +Release: 2%{?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) +%if %{enable_test} > 0 +BuildRequires: rubygem(rspec) +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. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +This package contains documentation for %{name}. + +%prep +%setup -q -c -T + +%gem_install -n %{SOURCE0} + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ + +mkdir -p %{buildroot}%{_bindir} +cp -pa .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x + +find %{buildroot}%{gem_instdir}/bin -type f | \ + xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' + +%if %{enable_test} > 0 +%check +pushd .%{gem_instdir} + +# Drop bundler dependency +sed -i "s/require 'bundler'//" Thorfile + +# kill simplecov dependency +sed -i '3,7d' spec/spec_helper.rb + +# This fixes on test failure due to encoding issues. +# https://github.com/wycats/thor/issues/278 +sed -i '178 i\content.force_encoding "UTF-8"' spec/shell/basic_spec.rb + +rspec spec +popd +%endif + +%files +%{_bindir}/thor +%{_bindir}/rake2thor +%dir %{gem_instdir} +%doc %{gem_instdir}/CHANGELOG.rdoc +%doc %{gem_instdir}/LICENSE.md +%doc %{gem_instdir}/README.md +%exclude %{gem_instdir}/.* +%{gem_instdir}/bin +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%{gem_instdir}/Gemfile +%{gem_instdir}/Thorfile +%{gem_instdir}/thor.gemspec +%{gem_instdir}/spec/ +%exclude %{gem_instdir}/spec/fixtures/doc/components/.empty_directory +%doc %{gem_docdir} + +%changelog +* Thu Aug 01 2013 Vít Ondruch - 0.17.0-2 +- Fixed upstream source. + +* Mon Mar 04 2013 Josef Stribny - 0.17.0-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Update to Thor 0.17.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.16.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Nov 22 2012 Vít Ondruch - 0.16.0-2 +- Disable tests for EL builds. + +* Tue Nov 13 2012 Vít Ondruch - 0.16.0-1 +- Update to thor 0.16.0. +- Remove rubygem(diff-lcs) dependency, since it is just optional. +- Remove rubygem(ruby2ruby) dependnecy, since it is just optional, to allow + conversion of Rakefiles to Thorfiles (but it doesnt work withou ParseTree anyway). + +* Sat Jul 21 2012 Fedora Release Engineering - 0.14.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Feb 01 2012 Bohuslav Kabrda - 0.14.6-5 +- Enable tests. +- Add patches for the failing tests. +- Removed unnecessary ParseTree dependency. + +* Mon Jan 30 2012 Bohuslav Kabrda - 0.14.6-4 +- Rebuilt for Ruby 1.9.3. + +* Sat Jan 14 2012 Fedora Release Engineering - 0.14.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.14.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 17 2011 Mohammed Morsi - 0.14.6-1 +- Updated to latest upstream version + +* Wed May 5 2010 Matthew Kent - 0.13.6-1 +- New upstream version. + +* Fri Dec 18 2009 Matthew Kent - 0.12.0-2 +- Add Requires for rubygem(rake) (#542559). +- Upstream replaced Source after the gemcutter migration, update to latest + (#542559). +- Add Requires for rubygem(diff-lcs) as Thor can take advantage of it for + colourized diff output (#542559). + +* Mon Nov 16 2009 Matthew Kent - 0.12.0-1 +- Initial package