path: root/rubygem-docile.spec
diff options
authorKen Dreyer <>2014-06-11 17:13:54 -0600
committerKen Dreyer <>2014-06-11 17:13:54 -0600
commit15b648344b82ee4905a75078edb298e10925b244 (patch)
tree7b9afbf83816d1407afd34101ee2c8ba66372671 /rubygem-docile.spec
initial import (RHBZ #1083701 comment #1)
Diffstat (limited to 'rubygem-docile.spec')
1 files changed, 83 insertions, 0 deletions
diff --git a/rubygem-docile.spec b/rubygem-docile.spec
new file mode 100644
index 0000000..5eeee2d
--- /dev/null
+++ b/rubygem-docile.spec
@@ -0,0 +1,83 @@
+%global gem_name docile
+# Still waiting on rubygem-coveralls
+# Have verified that the tests work with coveralls installed.
+%global with_tests 0
+Summary: Docile keeps your Ruby DSLs tame and well-behaved
+Name: rubygem-%{gem_name}
+Version: 1.1.3
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+Requires: ruby(release)
+Requires: ruby(rubygems)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+%if 0%{?with_tests}
+BuildRequires: rubygem(coveralls)
+BuildRequires: rubygem(mime-types)
+BuildRequires: rubygem(rake)
+BuildRequires: rubygem(redcarpet)
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(yard)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+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}
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+gem build %{gem_name}.gemspec
+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*}
+%if 0%{?with_tests}
+rspec -Ilib spec
+%doc %{gem_instdir}/LICENSE
+%dir %{gem_instdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/Gemfile
+%exclude %{gem_instdir}/docile.gemspec
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/
+%doc %{gem_instdir}/
+* Wed Apr 02 2014 Troy Dawson <> - 1.1.3-1
+- Initial package