[rubygem-mustache] Initial import

Jozef Zigmund jzigmund at fedoraproject.org
Tue Nov 9 15:29:29 UTC 2010


commit b3ba85967b59eccfc8c3d6f47f9fb5d16f37833e
Author: Jozef Zigmund <jzigmund at redhat.com>
Date:   Tue Nov 9 16:27:09 2010 +0100

    Initial import

 .gitignore            |    1 +
 rubygem-mustache.spec |   88 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a4ffbeb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mustache-0.11.2.gem
diff --git a/rubygem-mustache.spec b/rubygem-mustache.spec
new file mode 100644
index 0000000..b5deb20
--- /dev/null
+++ b/rubygem-mustache.spec
@@ -0,0 +1,88 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname mustache
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Framework-agnostic way to render logic-free views
+Name: rubygem-%{gemname}
+Version: 0.11.2
+Release: 3%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/defunkt/mustache
+Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Requires: rubygem(abi) = 1.8
+Requires: rubygems
+Requires: rubygem(sinatra)
+BuildRequires: rubygems
+BuildRequires: rubygem(rspec)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Think of Mustache as a replacement for your views.
+Instead of views consisting of ERB or HAML with random helpers
+and arbitrary logic, your views are broken into two parts:
+a Ruby class and an HTML template.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%prep
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+            --force --rdoc %{SOURCE0}
+mkdir -p %{buildroot}/%{_bindir}
+mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
+rmdir %{buildroot}%{gemdir}/bin
+find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+
+%check
+pushd %{buildroot}/%{geminstdir}
+rake test
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%{geminstdir}/bin
+%{_bindir}/mustache
+%doc %{geminstdir}/README.md
+%doc %{geminstdir}/LICENSE
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%{geminstdir}/man
+%{geminstdir}/Rakefile
+%{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/test
+
+%changelog
+* Mon Nov 8 2010 Jozef Zigmund <jzigmund at redhat.com> - 0.11.2-3
+- Added README.md, LICENSE with macro doc
+- Replaced macro {gemdir}/gems/{gemname}-{version}/ by macro dir {geminstdir}
+- Added lib, bin to macro {geminstdir}
+- Added subpackage doc with folders: man, test and doc
+
+* Mon Oct 18 2010 Jozef Zigmund <jzigmund at redhat.com> - 0.11.2-2
+- Repair URL Source0
+- Remove "Mustache is a" from Summary
+- Add Require: rubygem(sinatra)
+
+* Mon Oct 18 2010 Jozef Zigmund <jzigmund at redhat.com> - 0.11.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..87e0ca1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dfb47d8cb0f5bfb418b86e5d135c58be  mustache-0.11.2.gem


More information about the scm-commits mailing list