Rebuilt for Ruby 1.9.3.

f38
Bohuslav Kabrda 13 years ago
parent 1ed12b026d
commit 34442d9bea

@ -1,16 +1,14 @@
%global gemname delorean
%global gem_name delorean
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
Name: rubygem-%{gemname}
Name: rubygem-%{gem_name}
Version: 1.2.0
Release: 3%{?dist}
Release: 4%{?dist}
Group: Development/Languages
License: MIT
URL: https://github.com/bebanjo/delorean
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# to get specs:
# git clone https://github.com/bebanjo/delorean.git && cd delorean
# git checkout v1.2.0
@ -19,13 +17,13 @@ Source1: %{name}-spec.tgz
Requires: ruby(abi) = 1.8
Requires: ruby(rubygems)
Requires: rubygem(chronic)
BuildRequires: ruby(rubygems)
BuildRequires: rubygems-devel
# for specs:
BuildRequires: rubygem(rspec-core)
BuildRequires: rubygem(activesupport)
BuildRequires: rubygem(chronic)
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
Provides: rubygem(%{gem_name}) = %{version}
%description
Delorean lets you travel in time with Ruby by mocking Time.now.
@ -40,10 +38,10 @@ Documentation for %{name}
%prep
%setup -q -c -T
mkdir -p .%{gemdir}
gem install --local --install-dir .%{gemdir} \
mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gem_dir} \
--force --rdoc %{SOURCE0}
pushd .%{geminstdir}
pushd .%{gem_instdir}
tar xzf %{SOURCE1}
popd
@ -51,27 +49,30 @@ popd
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
%check
pushd .%{geminstdir}
pushd .%{gem_instdir}
rspec spec
popd
%files
%dir %{geminstdir}
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
%{geminstdir}/lib
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%doc %{geminstdir}/MIT-LICENSE
%dir %{gem_instdir}
%exclude %{gem_cache}
%{gem_libdir}
%{gem_spec}
%doc %{gem_instdir}/MIT-LICENSE
%files doc
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/README.md
%{geminstdir}/spec
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/spec
%changelog
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.0-4
- Rebuilt for Ruby 1.9.3.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

Loading…
Cancel
Save