diff options
1 files changed, 72 insertions, 0 deletions
diff --git a/rubygem-erubi.spec b/rubygem-erubi.spec
new file mode 100644
index 0000000..b71f7b1
--- /dev/null
+++ b/rubygem-erubi.spec
@@ -0,0 +1,72 @@
+# Generated from erubi-1.6.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name erubi
+Name: rubygem-%{gem_name}
+Version: 1.6.0
+Release: 1%{?dist}
+Summary: Small ERB Implementation
+License: MIT
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(minitest)
+BuildArch: noarch
+Erubi is a ERB template engine for ruby. It is a simplified fork of Erubis.
+%package doc
+Summary: Documentation for %{name}
+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
+# 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 the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+pushd .%{gem_instdir}
+ruby ./test/test.rb
+%dir %{gem_instdir}
+%license %{gem_instdir}/MIT-LICENSE
+%exclude %{gem_cache}
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/CHANGELOG
+%doc %{gem_instdir}/README.rdoc
+* Thu Apr 06 2017 Vít Ondruch <> - 1.6.0-1
+- Initial package