diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24a809d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/thor-0.19.1.gem diff --git a/.rh-ruby22-rubygem-thor.metadata b/.rh-ruby22-rubygem-thor.metadata new file mode 100644 index 0000000..ac3ee49 --- /dev/null +++ b/.rh-ruby22-rubygem-thor.metadata @@ -0,0 +1 @@ +57d118b7ce6d51be06faab84c4ad5709977e098f SOURCES/thor-0.19.1.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +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..33cb69a --- /dev/null +++ b/SPECS/rubygem-thor.spec @@ -0,0 +1,167 @@ +%{!?scl:%global pkg_name %{name}} +%{?scl:%scl_package rubygem-%{gem_name}} + +# 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: Thor is a toolkit for building powerful command-line interfaces +Name: %{?scl_prefix}rubygem-%{gem_name} +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: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix_ruby}ruby(release) +%{?scl:BuildRequires: scldevel(ruby)} +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby(release) +%if %{enable_test} > 0 +BuildRequires: %{?scl_prefix}rubygem(rspec) +BuildRequires: %{?scl_prefix}rubygem(fakeweb) +BuildRequires: git +%endif +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +# Filter auto requires from /spec +%global __requires_exclude_from ^%{gem_instdir}/spec/.*$ +%if ( 0%{?rhel} && 0%{?rhel} < 7 ) +%filter_requires_in %{gem_instdir}/spec/.*$ +%filter_setup +%endif + + +%description +Thor is a toolkit for building powerful command-line interfaces. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +This package contains documentation for %{pkg_name}. + +%prep +%setup -q -c -T +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +%build + +%install +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"#!%{?scl:%_scl_root}/usr/bin/ruby"' + +find %{buildroot}%{_bindir} -type f | \ + xargs -n 1 sed -i -e 's"^#!/usr/bin/ruby"#!%{?scl:%_scl_root}/usr/bin/ruby"' + +%if %{enable_test} > 0 +%check +pushd .%{gem_instdir} + +# Drop bundler dependency +sed -i '/require "bundler"/ s/^/#/' Thorfile + +# kill simplecov dependency +sed -i '/simplecov/,/end/ s/^/#/' spec/helper.rb + +# Fix failing tests +# /components and .empty_directory are present in git under v0.18.1 tag, +# but missing in .gem so the tests are failing +mkdir spec/fixtures/doc/components +touch spec/fixtures/doc/components/.empty_directory + +%{?scl:scl enable %{scl} - << \EOF} +rspec2 spec +%{?scl:EOF} +popd +%endif + +%files +%{_bindir}/thor +%doc %{gem_instdir}/LICENSE.md +%dir %{gem_instdir} +%{gem_instdir}/bin +%{gem_libdir} +%exclude %{gem_instdir}/.* +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/Thorfile +%{gem_instdir}/spec +%{gem_instdir}/thor.gemspec + +%changelog +* Tue Dec 09 2014 Vít Ondruch - 0.19.1-1 +- Update to thor 1.19.1. + +* Thu Feb 13 2014 Josef Stribny - 0.18.1-3 +- Filter auto-generated requires from example .sh script included in tests + +* Mon Jan 27 2014 Josef Stribny - 0.18.1-2 +- Fix upstream url + +* Wed Jun 05 2013 Josef Stribny - 0.18.1-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Update to Thor 0.18.1 + +* Thu Jul 26 2012 Bohuslav Kabrda - 0.15.4-1 +- Update to Thor 0.15.4. +- Specfile cleanup + +* Thu May 31 2012 Bohuslav Kabrda - 0.14.6-7 +- Fix patches to apply cleanly. + +* Tue Apr 03 2012 Bohuslav Kabrda - 0.14.6-6 +- Rebuilt for scl. + +* 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