From 74b11b8c40bdf86799f6032d30cd310cd11fab5c Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Jan 03 2012 14:08:19 +0000 Subject: Initial import (#771295) --- diff --git a/.gitignore b/.gitignore index e69de29..e1055a9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/delorean-1.2.0.gem +/rubygem-delorean-spec.tgz diff --git a/rubygem-delorean.spec b/rubygem-delorean.spec new file mode 100644 index 0000000..6927b71 --- /dev/null +++ b/rubygem-delorean.spec @@ -0,0 +1,80 @@ +%global gemname 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} +Version: 1.2.0 +Release: 2%{?dist} +Group: Development/Languages +License: MIT +URL: https://github.com/bebanjo/delorean +Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem +# to get specs: +# git clone https://github.com/bebanjo/delorean.git && cd delorean +# git checkout v1.2.0 +# tar -czf rubygem-delorean-spec.tgz spec/ +Source1: %{name}-spec.tgz +Requires: ruby(abi) = 1.8 +Requires: ruby(rubygems) +Requires: rubygem(chronic) +BuildRequires: ruby(rubygems) +# for specs: +BuildRequires: rubygem(rspec-core) +BuildRequires: rubygem(activesupport) +BuildRequires: rubygem(chronic) +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Delorean lets you travel in time with Ruby by mocking Time.now. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + +%prep +%setup -q -c -T +mkdir -p .%{gemdir} +gem install --local --install-dir .%{gemdir} \ + --force --rdoc %{SOURCE0} +pushd .%{geminstdir} +tar xzf %{SOURCE1} +popd + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ + +%check +pushd .%{geminstdir} +rspec spec +popd + +%files +%dir %{geminstdir} +%exclude %{gemdir}/cache/%{gemname}-%{version}.gem +%{geminstdir}/lib +%{gemdir}/specifications/%{gemname}-%{version}.gemspec +%doc %{geminstdir}/MIT-LICENSE + +%files doc +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/README.md +%{geminstdir}/spec + +%changelog +* Tue Jan 03 2012 Bohuslav Kabrda - 1.2.0-2 +- Fixed the specfile permissions. +- Added tests. + +* Mon Jan 02 2012 Bohuslav Kabrda - 1.2.0-1 +- Initial package. diff --git a/sources b/sources index e69de29..675c7f7 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +92bd7ebea557e7e5bfe45a44b31965b6 delorean-1.2.0.gem +6970cedbf0556087adb8a82b8294ef92 rubygem-delorean-spec.tgz