Update to Delorean 2.1.0.

f38
Vít Ondruch 10 years ago
parent 7a364e9563
commit bbf3281b25

@ -1,29 +1,26 @@
%global gem_name delorean
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
Name: rubygem-%{gem_name}
Version: 2.0.0
Release: 6%{?dist}
Version: 2.1.0
Release: 1%{?dist}
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
Group: Development/Languages
License: MIT
URL: https://github.com/bebanjo/delorean
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# to get specs:
# git clone https://github.com/bebanjo/delorean.git && cd delorean
# git checkout v2.0.0
# tar -czf rubygem-delorean-2.0.0-spec.tgz spec/
# git checkout v2.1.0
# tar -czf rubygem-delorean-2.1.0-spec.tgz spec/
Source1: %{name}-%{version}-spec.tgz
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(chronic)
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
# for specs:
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(activesupport)
BuildRequires: rubygem(chronic)
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description
Delorean lets you travel in time with Ruby by mocking Time.now.
@ -32,42 +29,44 @@ Delorean lets you travel in time with Ruby by mocking Time.now.
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}
Documentation for %{name}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
tar xzf %{SOURCE1}
popd
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
tar xzf %{SOURCE1}
rspec spec
popd
%files
%dir %{gem_instdir}
%exclude %{gem_cache}
%license %{gem_instdir}/MIT-LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/MIT-LICENSE
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/spec
%changelog
* Mon May 25 2015 Vít Ondruch <vondruch@redhat.com> - 2.1.0-1
- Update to Delorean 2.1.0.
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

Loading…
Cancel
Save