You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rubygem-timecop/rubygem-timecop.spec

97 lines
2.5 KiB

%global gem_name timecop
%global rubyabi 1.9.1
14 years ago
Summary: Provides a unified method to mock Time.now, Date.today in a single call
Name: rubygem-%{gem_name}
14 years ago
Version: 0.3.5
Release: 6%{?dist}
14 years ago
Group: Development/Languages
License: MIT
URL: http://github.com/jtrupiano/timecop
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
14 years ago
Patch0: %{name}-failed-assert-fix.patch
Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
14 years ago
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
14 years ago
%description
A gem providing "time travel" and "time freezing" capabilities, making it dead
simple to test time-dependent code. It provides a unified method to mock
Time.now, Date.today, and DateTime.now in a single call.
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires:%{name} = %{version}-%{release}
%description doc
Documentation for %{name}
%prep
%setup -q -c -T
mkdir -p ./%{gem_dir}
14 years ago
gem install \
--local \
--install-dir ./%{gem_dir} \
14 years ago
-V --force --rdoc \
%{SOURCE0}
pushd .%{gem_instdir}
14 years ago
%patch0
popd
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
cp -va ./%{gem_dir}/* %{buildroot}%{gem_dir}
14 years ago
%check
pushd %{buildroot}/%{gem_instdir}/test
14 years ago
mv test_time_stack_item.rb disabled_test_time_stack_item.rb
%_bindir/ruby -I../lib:. test_time*.rb
14 years ago
mv disabled_test_time_stack_item.rb test_time_stack_item.rb
popd
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{gem_instdir}
%{gem_libdir}
%doc %{gem_instdir}/LICENSE
%doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/History.rdoc
%doc %{gem_instdir}/VERSION.yml
%{gem_cache}
%{gem_spec}
14 years ago
%files doc
%defattr(-, root, root, -)
%{gem_instdir}/test
%{gem_instdir}/Rakefile
%{gem_docdir}
14 years ago
%changelog
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Feb 02 2012 Vít Ondruch <vondruch@redhat.com> - 0.3.5-5
- Rebuilt for Ruby 1.9.3.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
14 years ago
* Thu Nov 09 2010 Michal Fojtik <mfojtik@redhat.com> - 0.3.5-2
- Disabled test_time_stack_item test
* Thu Oct 14 2010 Michal Fojtik <mfojtik@redhat.com> - 0.3.5-1
- Initial package