[rubygem-rdoc] initial commit

Mohammed Morsi mmorsi at fedoraproject.org
Wed Jul 20 13:53:00 UTC 2011


commit 766f5a6222fc9eb1f9fd07bf13452d3c354fd3a5
Author: Mo Morsi <mmorsi at redhat.com>
Date:   Wed Jul 20 09:52:43 2011 -0400

    initial commit

 .gitignore                        |    1 +
 rubygem-rdoc-remove-isolate.patch |   33 +++++++++++++
 rubygem-rdoc.spec                 |   91 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 126 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..60bc23f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rdoc-3.8.gem
diff --git a/rubygem-rdoc-remove-isolate.patch b/rubygem-rdoc-remove-isolate.patch
new file mode 100644
index 0000000..c6d0355
--- /dev/null
+++ b/rubygem-rdoc-remove-isolate.patch
@@ -0,0 +1,33 @@
+--- Rakefile.orig	2011-07-14 14:28:36.000000000 -0400
++++ Rakefile	2011-07-14 14:29:05.000000000 -0400
+@@ -3,7 +3,6 @@ $:.unshift 'lib'
+ require 'rdoc/rdoc'
+ 
+ Hoe.plugin :git
+-Hoe.plugin :isolate
+ Hoe.plugin :minitest
+ Hoe.plugin :rdoc_tags
+ 
+@@ -20,12 +19,8 @@ Hoe.spec 'rdoc' do
+   rdoc_locations << 'drbrain at rubyforge.org:/var/www/gforge-projects/rdoc/'
+ 
+   self.testlib = :minitest
+-  self.isolate_dir = 'tmp/isolate'
+ 
+   require_ruby_version '>= 1.8.7'
+-  extra_dev_deps   << ['minitest', '~> 2']
+-  extra_dev_deps   << ['isolate',  '~> 3']
+-  extra_dev_deps   << ['ZenTest',  '~> 4'] # for autotest/isolate
+ 
+   extra_rdoc_files << 'Rakefile'
+   spec_extras['required_rubygems_version'] = '>= 1.3'
+--- .autotest.orig	2011-07-14 14:28:59.000000000 -0400
++++ .autotest	2011-07-14 14:29:03.000000000 -0400
+@@ -1,7 +1,6 @@
+ # vim: filetype=ruby
+ 
+ require 'autotest/restart'
+-require 'autotest/isolate'
+ 
+ Autotest.add_hook :initialize do |at|
+   at.testlib = 'minitest/unit' if at.respond_to? :testlib=
diff --git a/rubygem-rdoc.spec b/rubygem-rdoc.spec
new file mode 100644
index 0000000..6928445
--- /dev/null
+++ b/rubygem-rdoc.spec
@@ -0,0 +1,91 @@
+# Generated from rdoc-3.4.gem by gem2rpm -*- rpm-spec -*-
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname rdoc
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+%define rubyabi 1.8
+
+Summary: RDoc produces HTML and command-line documentation for Ruby projects
+Name: rubygem-%{gemname}
+Version: 3.8
+Release: 2%{?dist}
+Group: Development/Languages
+License: GPLv2 and Ruby and MIT
+URL: http://docs.seattlerb.org/rdoc/
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Patch0:  rubygem-rdoc-remove-isolate.patch
+Requires: rubygems
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygem(rake)
+BuildRequires: rubygems
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(rake)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+RDoc produces HTML and command-line documentation for Ruby projects.  RDoc
+includes the +rdoc+ and +ri+ tools for generating and displaying online
+documentation.
+See RDoc for a description of RDoc's markup and basic use.
+
+%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_HOME="%{_builddir}/%{name}-%{version}%{gemdir}" \
+gem install --local -V --force %{SOURCE0}
+
+pushd .%{geminstdir}
+%patch0 -p0
+popd
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+
+# FIXME for now just remove the executables as they
+# conflict w/ ruby-rdoc
+rm -rf %{buildroot}%{gemdir}/bin
+
+%check
+pushd %{buildroot}%{geminstdir} 
+ruby -I./lib -e "Dir.glob('test/test_*').each {|t| require t}"
+rm -rf tmp .autotest .document .gemtest
+
+%files
+%defattr(-, root, root, -)
+%dir %{gemdir}/gems/%{gemname}-%{version}/
+%{gemdir}/gems/%{gemname}-%{version}/lib
+%{gemdir}/gems/%{gemname}-%{version}/bin
+%doc %{geminstdir}/LICENSE.txt
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/History.txt
+%{geminstdir}/Manifest.txt
+%{geminstdir}/README.txt
+%{geminstdir}/RI.txt
+%{geminstdir}/Rakefile
+%{geminstdir}/test
+
+
+%changelog
+* Wed Jul 20 2011 Mo Morsi <mmorsi at redhat.com> - 3.8-2
+- Fixes for fedora compliance
+
+* Mon Jan 10 2011 mo morsi <mmorsi at redhat.com> - 3.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..fe4d760 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+47c8111247b2c88f99215783f9edd3de  rdoc-3.8.gem


More information about the scm-commits mailing list