[rubygem-docile] Initial import (#1083701).

tdawson tdawson at fedoraproject.org
Mon Jun 30 20:19:16 UTC 2014


commit 835f4d3eb2669cba00e11db56889a3a56b557c40
Author: Troy Dawson <tdawson at redhat.com>
Date:   Mon Jun 30 15:19:21 2014 -0500

    Initial import (#1083701).

 .gitignore          |    1 +
 rubygem-docile.spec |   85 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 87 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..37d0cdd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/docile-1.1.4.gem
diff --git a/rubygem-docile.spec b/rubygem-docile.spec
new file mode 100644
index 0000000..8e31316
--- /dev/null
+++ b/rubygem-docile.spec
@@ -0,0 +1,85 @@
+%global gem_name docile
+
+Summary:       Docile keeps your Ruby DSLs tame and well-behaved
+Name:          rubygem-%{gem_name}
+Version:       1.1.4
+Release:       1%{?dist}
+Group:         Development/Languages
+License:       MIT
+URL:           https://ms-ati.github.com/docile/
+Source0:       https://rubygems.org/gems/%{gem_name}-%{version}.gem
+%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
+Requires:      ruby(release)
+Requires:      ruby(rubygems)
+%endif
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+# coveralls is now optional for tests
+# Add back when coveralls is in Fedora
+#BuildRequires: rubygem(coveralls)
+BuildRequires: rubygem(mime-types)
+BuildRequires: rubygem(rake)
+BuildRequires: rubygem(redcarpet)
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(yard)
+BuildArch:     noarch
+%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
+Provides:      rubygem(%{gem_name}) = %{version}
+%endif
+
+%description
+Docile turns any Ruby object into a DSL.
+Especially useful with the Builder pattern.
+
+
+%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
+gem build %{gem_name}.gemspec
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+# Remove build leftovers.
+rm -rf %{buildroot}%{gem_instdir}/{.coveralls.yml,.gitignore,.rspec,.ruby-gemset,.ruby-version,.travis.yml,.yard*}
+
+%check
+rspec -Ilib spec
+
+%files
+%doc %{gem_instdir}/LICENSE
+%dir %{gem_instdir}
+%{gem_libdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/Gemfile
+%exclude %{gem_instdir}/docile.gemspec
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/HISTORY.md
+%doc %{gem_instdir}/README.md
+%{gem_instdir}/Rakefile
+%{gem_instdir}/spec
+
+%changelog
+* Fri Jun 13 2014 Troy Dawson <tdawson at redhat.com> - 1.1.4-1
+- Update to version 1.1.4
+- Tests now run without coveralls
+
+* Wed Apr 02 2014 Troy Dawson <tdawson at redhat.com> - 1.1.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..ca21394 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ab64ddc931617c5012b05d772be03616  docile-1.1.4.gem


More information about the scm-commits mailing list