[rubygem-introspection] Initial import (#743007).

Vít Ondruch vondruch at fedoraproject.org
Tue Oct 4 14:26:24 UTC 2011


commit ab926a446f3c1d9239ec2aa14d2b82cc88a5ef9c
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Oct 3 16:52:52 2011 +0200

    Initial import (#743007).

 .gitignore                                   |    1 +
 rubygem-introspection-0.0.2-update-dep.patch |   19 +++++
 rubygem-introspection.spec                   |   93 ++++++++++++++++++++++++++
 sources                                      |    1 +
 4 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e8379ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/introspection-0.0.2.gem
diff --git a/rubygem-introspection-0.0.2-update-dep.patch b/rubygem-introspection-0.0.2-update-dep.patch
new file mode 100644
index 0000000..92ab8ba
--- /dev/null
+++ b/rubygem-introspection-0.0.2-update-dep.patch
@@ -0,0 +1,19 @@
+--- specifications/introspection-0.0.2.gemspec.orig
++++ specifications/introspection-0.0.2.gemspec
+@@ -20,16 +20,13 @@
+ 
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+       s.add_runtime_dependency(%q<metaclass>, ["~> 0.0.1"])
+-      s.add_runtime_dependency(%q<instantiator>, ["~> 0.0.3"])
+       s.add_development_dependency(%q<rake>, [">= 0"])
+     else
+       s.add_dependency(%q<metaclass>, ["~> 0.0.1"])
+-      s.add_dependency(%q<instantiator>, ["~> 0.0.3"])
+       s.add_dependency(%q<rake>, [">= 0"])
+     end
+   else
+     s.add_dependency(%q<metaclass>, ["~> 0.0.1"])
+-    s.add_dependency(%q<instantiator>, ["~> 0.0.3"])
+     s.add_dependency(%q<rake>, [">= 0"])
+   end
+ end
diff --git a/rubygem-introspection.spec b/rubygem-introspection.spec
new file mode 100644
index 0000000..ca25cb0
--- /dev/null
+++ b/rubygem-introspection.spec
@@ -0,0 +1,93 @@
+# Generated from introspection-0.0.2.gem by gem2rpm -*- rpm-spec -*-
+%global gemname introspection
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Dynamic inspection of the hierarchy of method definitions on a Ruby object
+Name: rubygem-%{gemname}
+Version: 0.0.2
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT and Ruby
+URL: http://jamesmead.org
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+# Remove instantiator dependency.
+# https://github.com/floehopper/introspection/issues/2
+Patch0: %{name}-%{version}-update-dep.patch
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems) >= 1.3.6
+Requires: ruby
+Requires: rubygem(metaclass) => 0.0.1
+Requires: rubygem(metaclass) < 0.1
+# Seems to be useless ATM.
+# https://github.com/floehopper/introspection/issues/2
+# Requires: rubygem(instantiator) => 0.0.3
+# Requires: rubygem(instantiator) < 0.1
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems) >= 1.3.6
+BuildRequires: ruby
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Dynamic inspection of the hierarchy of method definitions on a Ruby object
+
+
+%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}
+
+pushd .%{gemdir}
+%patch0 -p0
+popd
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+        %{buildroot}%{gemdir}/
+
+%check
+pushd .%{geminstdir}
+# Disable Bundler
+sed -i '2,2d' test/test_helper.rb
+testrb -Ilib test
+popd
+
+
+%files
+%dir %{geminstdir}
+%exclude %{geminstdir}/.gitignore
+%exclude %{geminstdir}/.travis.yml
+%{geminstdir}/README.md
+%exclude %{geminstdir}/introspection.gemspec
+%{geminstdir}/lib
+%{geminstdir}/test
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%{geminstdir}/Gemfile
+%{geminstdir}/Rakefile
+%{geminstdir}/samples
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+
+%changelog
+* Mon Oct 03 2011 Vít Ondruch <vondruch at redhat.com> - 0.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..a0790a0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f1165a44ca88b870835b57360604694c  introspection-0.0.2.gem


More information about the scm-commits mailing list