|
|
|
@ -1,16 +1,15 @@
|
|
|
|
|
%global gem_name timecop
|
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
|
|
|
|
|
|
Summary: Provides a unified method to mock Time.now, Date.today in a single call
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.3.5
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/jtrupiano/timecop
|
|
|
|
|
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
|
|
|
Patch0: %{name}-failed-assert-fix.patch
|
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
@ -32,12 +31,7 @@ Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c -T
|
|
|
|
|
mkdir -p ./%{gem_dir}
|
|
|
|
|
gem install \
|
|
|
|
|
--local \
|
|
|
|
|
--install-dir ./%{gem_dir} \
|
|
|
|
|
-V --force --rdoc \
|
|
|
|
|
%{SOURCE0}
|
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
%patch0
|
|
|
|
|
popd
|
|
|
|
@ -77,6 +71,9 @@ rm -rf %{buildroot}
|
|
|
|
|
%{gem_docdir}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 11 2013 Josef Stribny <jstribny@redhat.com> - 0.3.5-8
|
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|