|
|
@ -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
|
|
|
|
Summary: Delorean lets you travel in time with Ruby by mocking Time.now
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 1.2.0
|
|
|
|
Version: 1.2.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
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/%{gemname}-%{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 v1.2.0
|
|
|
|
# git checkout v1.2.0
|
|
|
@ -19,13 +17,13 @@ Source1: %{name}-spec.tgz
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
Requires: rubygem(chronic)
|
|
|
|
Requires: rubygem(chronic)
|
|
|
|
BuildRequires: ruby(rubygems)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
# for specs:
|
|
|
|
# for specs:
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
BuildRequires: rubygem(activesupport)
|
|
|
|
BuildRequires: rubygem(activesupport)
|
|
|
|
BuildRequires: rubygem(chronic)
|
|
|
|
BuildRequires: rubygem(chronic)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
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.
|
|
|
@ -40,10 +38,10 @@ Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -c -T
|
|
|
|
mkdir -p .%{gemdir}
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
gem install --local --install-dir .%{gemdir} \
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
pushd .%{geminstdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
tar xzf %{SOURCE1}
|
|
|
|
tar xzf %{SOURCE1}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
@ -51,27 +49,30 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd .%{geminstdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
rspec spec
|
|
|
|
rspec spec
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{geminstdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{geminstdir}/lib
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
%{gem_spec}
|
|
|
|
%doc %{geminstdir}/MIT-LICENSE
|
|
|
|
%doc %{gem_instdir}/MIT-LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{geminstdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%{geminstdir}/spec
|
|
|
|
%{gem_instdir}/spec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%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
|
|
|
|
* 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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|