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 %global gem_name delorean
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.0.0 Version: 2.1.0
Release: 6%{?dist} Release: 1%{?dist}
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: https://github.com/bebanjo/delorean URL: https://github.com/bebanjo/delorean
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# to get specs: # to get specs:
# git clone https://github.com/bebanjo/delorean.git && cd delorean # git clone https://github.com/bebanjo/delorean.git && cd delorean
# git checkout v2.0.0 # git checkout v2.1.0
# tar -czf rubygem-delorean-2.0.0-spec.tgz spec/ # tar -czf rubygem-delorean-2.1.0-spec.tgz spec/
Source1: %{name}-%{version}-spec.tgz Source1: %{name}-%{version}-spec.tgz
Requires: ruby(release) BuildRequires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(chronic)
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: ruby
# for specs: # for specs:
BuildRequires: rubygem(rspec) BuildRequires: rubygem(rspec)
BuildRequires: rubygem(activesupport) BuildRequires: rubygem(activesupport)
BuildRequires: rubygem(chronic) BuildRequires: rubygem(chronic)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
%description %description
Delorean lets you travel in time with Ruby by mocking Time.now. 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} Summary: Documentation for %{name}
Group: Documentation Group: Documentation
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc %description doc
Documentation for %{name} Documentation for %{name}.
%prep %prep
%setup -q -c -T %setup -q -c -T
%gem_install -n %{SOURCE0} %gem_install -n %{SOURCE0}
pushd .%{gem_instdir}
tar xzf %{SOURCE1}
popd
%build %build
%install %install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xzf %{SOURCE1}
rspec spec rspec spec
popd popd
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
%exclude %{gem_cache} %license %{gem_instdir}/MIT-LICENSE
%{gem_libdir} %{gem_libdir}
%exclude %{gem_cache}
%{gem_spec} %{gem_spec}
%doc %{gem_instdir}/MIT-LICENSE
%files doc %files doc
%doc %{gem_docdir} %doc %{gem_docdir}
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%{gem_instdir}/spec
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

Loading…
Cancel
Save