summaryrefslogtreecommitdiffstats
path: root/rubygem-docile.spec
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2014-06-11 17:13:54 -0600
committerKen Dreyer <ktdreyer@ktdreyer.com>2014-06-11 17:13:54 -0600
commit15b648344b82ee4905a75078edb298e10925b244 (patch)
tree7b9afbf83816d1407afd34101ee2c8ba66372671 /rubygem-docile.spec
downloadrubygem-docile-15b648344b82ee4905a75078edb298e10925b244.zip
rubygem-docile-15b648344b82ee4905a75078edb298e10925b244.tar.gz
rubygem-docile-15b648344b82ee4905a75078edb298e10925b244.tar.xz
initial import (RHBZ #1083701 comment #1)
Diffstat (limited to 'rubygem-docile.spec')
-rw-r--r--rubygem-docile.spec83
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
+# https://bugzilla.redhat.com/show_bug.cgi?id=1083698
+# 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
+URL: http://ms-ati.github.com/docile/
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+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)
+%endif
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%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
+%if 0%{?with_tests}
+rspec -Ilib spec
+%endif
+
+%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
+* Wed Apr 02 2014 Troy Dawson <tdawson@redhat.com> - 1.1.3-1
+- Initial package