Project

General

Profile

« Previous | Next » 

Revision c1b81f3d

Added by specs-from-koji (Jenkins) almost 10 years ago

Update rubygem-thor to 0.14.6-2.el6

View differences:

rpms/epel-6/rubygem-thor/rubygem-thor.spec
%{!?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
# we are using this gem also as non-SCL in RHEL6
%if !("%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16)
%define gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
%define gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
%define gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
%define gem_libdir %{gem_instdir}/lib
%define gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%endif
Summary: Scripting framework that replaces rake, sake and rubigen
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 0.15.4
Release: 6%{?dist}
# Generated from thor-0.14.4.gem by gem2rpm -*- rpm-spec -*-
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname thor
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: A scripting framework that replaces rake, sake and rubigen
Name: rubygem-%{gemname}
Version: 0.14.6
Release: 2%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/wycats/thor
Source0: http://rubygems.org/download/%{gem_name}-%{version}.gem
Requires: %{?scl_prefix}ruby(rubygems)
Requires: %{?scl_prefix}ruby(abi)
Requires: %{?scl_prefix}rubygem(rake)
Requires: %{?scl_prefix}rubygem(diff-lcs)
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16
BuildRequires: %{?scl_prefix}rubygems-devel
%endif
BuildRequires: %{?scl_prefix}rubygems
BuildRequires: %{?scl_prefix}ruby(abi)
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16
BuildRequires: %{?scl_prefix}rubygem(rspec)
BuildRequires: %{?scl_prefix}rubygem(rake)
BuildRequires: %{?scl_prefix}rubygem(rdoc)
BuildRequires: %{?scl_prefix}rubygem(fakeweb)
BuildRequires: %{?scl_prefix}rubygem(bundler)
%endif
License: GPLv2+ or Ruby
URL: http://yehudakatz.com
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems
Requires: ruby(abi) = 1.8
BuildRequires: rubygems
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
Provides: rubygem(%{gemname}) = %{version}
%description
Thor is a scripting framework that replaces rake, sake and rubigen.
%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
%description doc
This package contains documentation for %{pkg_name}.
A scripting framework that replaces rake, sake and rubigen
%prep
%setup -q -c -T
mkdir -p .%{gem_dir}
%{?scl:scl enable %scl "}
gem install -V \
--local \
--install-dir $(pwd)/%{gem_dir} \
--force --rdoc \
%{SOURCE0}
%{?scl:"}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{gemdir}
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gem_dir}/bin
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
gem install --local --install-dir %{buildroot}%{gemdir} \
--force --rdoc %{SOURCE0}
find %{buildroot}%{gem_instdir}/bin -type f | \
xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!%{?scl:%_scl_root}/usr/bin/ruby"'
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
%clean
rm -rf %{buildroot}
%check
%if "%{?scl}" == "ruby193" || 0%{?rhel} > 6 || 0%{?fedora} > 16
pushd %{buildroot}%{gem_instdir}
# kill simplecov dependency
sed -i '3,7d' spec/spec_helper.rb
%{?scl:scl enable %scl - << \EOF}
LANG=en_US.utf8 rspec spec
%{?scl:EOF}
popd
%endif
%files
%{_bindir}/thor
%{_bindir}/rake2thor
%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.rdoc
%doc %{gem_instdir}/README.md
%{gem_instdir}/Gemfile
%{gem_instdir}/Thorfile
%{gem_instdir}/spec
%{gem_instdir}/thor.gemspec
%changelog
* Fri Jan 17 2014 Dominic Cleal <dcleal@redhat.com> 0.15.4-6
- Add build support for EL6 non-SCL (dcleal@redhat.com)
- remove empty tito.props and definition which are duplicate with default from
rel-eng/tito.props (msuchy@redhat.com)
- with recent tito you do not need SCL meta package (msuchy@redhat.com)
* Thu Feb 28 2013 Miroslav Suchý <msuchy@redhat.com> 0.15.4-4
- Revert "bootstrap thor" (msuchy@redhat.com)
%defattr(-, root, root, -)
* Thu Feb 28 2013 Miroslav Suchý <msuchy@redhat.com> 0.15.4-3
- bootstrap thor (msuchy@redhat.com)
%{_bindir}/thor
* Wed Feb 27 2013 Miroslav Suchý <msuchy@redhat.com> 0.15.4-2
- new package built with tito
%{_bindir}/rake2thor
* Thu Jul 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.15.4-1
- Update to Thor 0.15.4.
- Specfile cleanup
%{gemdir}/gems/%{gemname}-%{version}/
* Thu May 31 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-7
- Fix patches to apply cleanly.
%doc %{gemdir}/doc/%{gemname}-%{version}
* Tue Apr 03 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-6
- Rebuilt for scl.
%doc %{geminstdir}/CHANGELOG.rdoc
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-5
- Enable tests.
- Add patches for the failing tests.
- Removed unnecessary ParseTree dependency.
%doc %{geminstdir}/LICENSE
* Mon Jan 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.6-4
- Rebuilt for Ruby 1.9.3.
%doc %{geminstdir}/README.md
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
%doc %{geminstdir}/Thorfile
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
* Mon Jan 17 2011 Mohammed Morsi <mmorsi@redhat.com> - 0.14.6-1
- Updated to latest upstream version
%changelog
* Fri Jun 29 2012 Miroslav Suchý <msuchy@redhat.com> 0.14.6-2
- rebuild
* Wed May 5 2010 Matthew Kent <mkent@magoazul.com> - 0.13.6-1
- New upstream version.
* Mon Jan 17 2011 Shannon Hughes <shughes@redhat.com> 0.14.6-1
- rebuild for 0.14.6 (shughes@redhat.com)
* Fri Dec 18 2009 Matthew Kent <mkent@magoazul.com> - 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).
* Wed Nov 10 2010 Shannon Hughes <shughes@redhat.com> 0.14.4-2
- - mass gem update - updated specs for fedora guidelines - removed dev
dependencies in specs (shughes@redhat.com)
* Mon Nov 16 2009 Matthew Kent <mkent@magoazul.com> - 0.12.0-1
* Fri Nov 05 2010 Shannon Hughes <shughes@redhat.com> - 0.14.4-1
- Initial package

Also available in: Unified diff