[rubygem-simplecov-html] initial import

tdawson tdawson at fedoraproject.org
Thu Nov 29 14:30:35 UTC 2012


commit 8ef6c076c50e3d94e7f447b8838baea1df522a79
Author: Troy Dawson <tdawson at redhat.com>
Date:   Thu Nov 29 08:29:27 2012 -0600

    initial import

 .gitignore                  |    1 +
 rubygem-simplecov-html.spec |   99 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 101 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..da0ed01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/simplecov-html-0.7.1.gem
diff --git a/rubygem-simplecov-html.spec b/rubygem-simplecov-html.spec
new file mode 100644
index 0000000..7bf27b8
--- /dev/null
+++ b/rubygem-simplecov-html.spec
@@ -0,0 +1,99 @@
+%global gem_name simplecov-html
+%global rubyabi 1.9.1
+
+Summary:       Default HTML formatter for SimpleCov
+Name:          rubygem-%{gem_name}
+Version:       0.7.1
+Release:       1%{?dist}
+Group:         Development/Languages
+License:       MIT
+URL:           https://github.com/colszowka/simplecov-html
+Source0:       http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires:      ruby(abi) = %{rubyabi}
+Requires:      ruby 
+Requires:      rubygems
+BuildRequires: ruby 
+BuildRequires: rubygems-devel
+# For tests
+# Cant run tests because they require a circular
+#  dependancy that cant be done yet
+#BuildRequires: rubygem(test-unit)
+#BuildRequires: rubygem(simplecov)
+BuildArch:     noarch
+Provides:      rubygem(%{gem_name}) = %{version}
+
+%description
+Default HTML formatter for SimpleCov code coverage tool for ruby 1.9+
+
+
+%package doc
+Summary:   Documentation for %{name}
+Group:     Documentation
+Requires:  %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+mkdir -p .%{gem_dir}
+
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+# gem install compiles any C extensions and installs into a directory
+# We set that to be a local directory so that we can move it into the
+# buildroot in %%install
+gem install -V \
+        --local \
+        --install-dir ./%{gem_dir} \
+        --force \
+        --rdoc \
+        %{gem_name}-%{version}.gem
+
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+#cleanup
+rm -f %{buildroot}%{gem_instdir}/.document
+rm -f %{buildroot}%{gem_instdir}/.gitignore
+rm -f %{buildroot}%{gem_instdir}/.travis.yml
+rm -f %{buildroot}%{gem_instdir}/.yardopts
+rm -f %{buildroot}%{gem_instdir}/Gemfile
+rm -f %{buildroot}%{gem_instdir}/simplecov-html.gemspec
+
+%check
+# Cant run tests because they require a circular
+#  dependancy that cant be done yet
+#testrb2 -Ilib test
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/LICENSE
+%{gem_instdir}/assets
+%{gem_instdir}/public
+%{gem_instdir}/views
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%{gem_instdir}/Guardfile
+%{gem_instdir}/Rakefile
+%{gem_instdir}/README.md
+%{gem_instdir}/test
+
+%changelog
+* Tue Nov 20 2012 Troy Dawson <tdawson at redhat.com> - 0.7.1-1
+- Update to 0.7.1
+
+* Mon Aug 27 2012 Troy Dawson <tdawson at redhat.com> - 0.5.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..3f68ed8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6d617f0a9b8303516d001bac8531397a  simplecov-html-0.7.1.gem


More information about the scm-commits mailing list