packages: ruby-mustache/ruby-mustache.spec - well, C code works a bit bette...

pawelz pawelz at pld-linux.org
Thu Jun 24 16:59:18 CEST 2010


Author: pawelz                       Date: Thu Jun 24 14:59:18 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- well, C code works a bit better when it is compiled.
- install /usr/bin/mustache
- adapterized

---- Files affected:
packages/ruby-mustache:
   ruby-mustache.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/ruby-mustache/ruby-mustache.spec
diff -u packages/ruby-mustache/ruby-mustache.spec:1.1 packages/ruby-mustache/ruby-mustache.spec:1.2
--- packages/ruby-mustache/ruby-mustache.spec:1.1	Thu Jun 24 15:55:17 2010
+++ packages/ruby-mustache/ruby-mustache.spec	Thu Jun 24 16:59:13 2010
@@ -7,7 +7,7 @@
 # - rm -r ri/Rack? (see XXX below)
 
 %define pkgname mustache
-Summary:	Logic-less templates.
+Summary:	Logic-less templates
 Name:		ruby-mustache
 Version:	0.11.2
 Release:	0.1
@@ -27,11 +27,25 @@
 %define		_enable_debug_packages	0
 
 %description
-Inspired by ctemplate and et, Mustache is a framework-agnostic way to render
-logic-free views.
+Inspired by ctemplate and et, Mustache is a framework-agnostic way to
+render logic-free views.
 
-As ctemplates says, "It emphasizes separating logic from presentation: it is
-impossible to embed application logic in this template language."
+As ctemplates says, "It emphasizes separating logic from presentation:
+it is impossible to embed application logic in this template
+language."
+
+%package -n mustache
+Summary:	Logic-less templates processor
+Group:		Applications/Publishing
+Requires:	%{name} = %{version}-%{release}
+
+%description -n mustache
+Inspired by ctemplate and et, Mustache is a framework-agnostic way to
+render logic-free views.
+
+As ctemplates says, "It emphasizes separating logic from presentation:
+it is impossible to embed application logic in this template
+language."
 
 %package rdoc
 Summary:	HTML documentation for %{pkgname}
@@ -58,13 +72,19 @@
 Dokumentacji w formacie ri dla %{pkgname}.
 
 %prep
-%setup -c
+%setup -q -c
 mv defunkt-mustache-*/* .
 rm -rf defunkt-mustache-*
 
 %build
 
-cp /usr/share/setup.rb .
+cp %{_datadir}/setup.rb .
+
+ruby setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
 
 rdoc --ri --op ri lib
 rdoc --op rdoc lib
@@ -76,10 +96,12 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
 
-cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
 
+ruby setup.rb install \
+    --prefix=$RPM_BUILD_ROOT
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -89,6 +111,10 @@
 %{ruby_rubylibdir}/%{pkgname}.rb
 %{ruby_rubylibdir}/%{pkgname}
 
+%files -n mustache
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mustache
+
 %files rdoc
 %defattr(644,root,root,755)
 %{ruby_rdocdir}/%{name}-%{version}
@@ -104,6 +130,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2010/06/24 14:59:13  pawelz
+- well, C code works a bit better when it is compiled.
+- install /usr/bin/mustache
+- adapterized
+
 Revision 1.1  2010/06/24 13:55:17  pawelz
 - initial PLD release, please review
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-mustache/ruby-mustache.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list