[rubygem-delorean] Initial import (#771295)

Bohuslav Kabrda bkabrda at fedoraproject.org
Tue Jan 3 14:08:29 UTC 2012


commit 74b11b8c40bdf86799f6032d30cd310cd11fab5c
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Tue Jan 3 15:08:19 2012 +0100

    Initial import (#771295)

 .gitignore            |    2 +
 rubygem-delorean.spec |   80 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    2 +
 3 files changed, 84 insertions(+), 0 deletions(-)
---
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 <bkabrda at redhat.com> - 1.2.0-2
+- Fixed the specfile permissions.
+- Added tests.
+
+* Mon Jan 02 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 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


More information about the scm-commits mailing list