[rubygem-hike] Initial import (#717920).

Vít Ondruch vondruch at fedoraproject.org
Mon Jan 30 13:55:11 UTC 2012


commit 55479c34380b7b5784e368eabf50ad7928664456
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Thu Jun 30 14:29:07 2011 +0200

    Initial import (#717920).

 rubygem-hike.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 2 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/rubygem-hike.spec b/rubygem-hike.spec
new file mode 100644
index 0000000..0933880
--- /dev/null
+++ b/rubygem-hike.spec
@@ -0,0 +1,81 @@
+# Generated from hike-1.1.0.gem by gem2rpm -*- rpm-spec -*-
+%global gemname hike
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Find files in a set of paths
+Name: rubygem-%{gemname}
+Version: 1.1.0
+Release: 1%{?dist}
+Group: Development/Languages
+License: GPLv2+ or Ruby
+URL: http://github.com/sstephenson/hike
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+# git clone https://github.com/sstephenson/hike.git && cd hike && git checkout v1.1.0
+# tar czvf hike-tests.tgz test/
+Source1: %{gemname}-tests.tgz
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems) 
+Requires: ruby 
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems) 
+BuildRequires: ruby 
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+A Ruby library for finding files in a set of paths.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+        %{buildroot}%{gemdir}/
+
+%check
+rm -rf %{testdir}
+mkdir %{testdir}
+tar xzvf %{SOURCE1} -C %{testdir}
+pushd %{testdir}
+
+RUBYOPT=I%{buildroot}%{geminstdir}/lib testrb test/ || :
+
+popd
+rm -rf %{testdir}
+
+
+%files
+%dir %{geminstdir}
+%doc %{geminstdir}/LICENSE
+%{geminstdir}/lib
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%doc %{geminstdir}/README.md
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+
+%changelog
+* Wed Jun 29 2011 Vít Ondruch <vondruch at redhat.com> - 1.1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..43f5305 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7c43fb8eadc79ae00a57ac5347097686  hike-1.1.0.gem


More information about the scm-commits mailing list