/[packages]/cauldron/ruby-haml/current/SPECS/ruby-haml.spec
ViewVC logotype

Contents of /cauldron/ruby-haml/current/SPECS/ruby-haml.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50838 - (show annotations) (download)
Sat Feb 12 14:17:37 2011 UTC (13 years, 2 months ago) by shikamaru
File size: 2169 byte(s)
imported package ruby-haml
1 %define oname haml
2
3 Name: ruby-%{oname}
4 Version: 3.0.25
5 Release: %mkrel 1
6 Summary: An elegant, structured XHTML/XML templating engine
7 License: GPLv2+
8 Group: Development/Ruby
9 URL: http://haml-lang.com/
10 Source0: http://rubygems.org/downloads/%{oname}-%{version}.gem
11 BuildRequires: rubygems
12 BuildRequires: rubygem(yard) >= 0.5.3
13 BuildRequires: rubygem(maruku) >= 0.5.9
14 Requires: rubygem(fssm) = 0.1.4
15 Requires: ruby(abi) = 1.8
16 BuildArch: noarch
17
18 %description
19 Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or
20 XML
21 that's designed to express the structure of XHTML or XML documents
22 in a non-repetitive, elegant, easy way,
23 using indentation rather than closing tags
24 and allowing Ruby to be embedded with ease.
25 It was originally envisioned as a plugin for Ruby on Rails,
26 but it can function as a stand-alone templating engine.
27
28 %files
29 %defattr(-, root, root, -)
30 %{_bindir}/haml
31 %{_bindir}/html2haml
32 %{_bindir}/sass
33 %{_bindir}/css2sass
34 %{_bindir}/sass-convert
35 %dir %{ruby_gemdir}/gems/%{oname}-%{version}/
36 %{ruby_gemdir}/gems/%{oname}-%{version}/bin
37 %{ruby_gemdir}/gems/%{oname}-%{version}/lib
38 %{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec
39 %{_datadir}/emacs/site-lisp/*.el
40
41 #-------------------------------------------------------------------------------
42 %package doc
43 Summary: Documentation for %{name}
44 Group: Development/Ruby
45 Requires: %{name} = %{version}-%{release}
46
47 %description doc
48 Documents, Rdoc & RI documentation for %{name}.
49 %files doc
50 %defattr(-,root,root,-)
51 %doc %{ruby_gemdir}/doc/%{oname}-%{version}
52 #-------------------------------------------------------------------------------
53
54 %prep
55 %setup -q
56 tar xmf data.tar.gz
57
58 %build
59 %gem_build
60
61 %install
62 rm -rf %{buildroot}
63 %gem_install
64
65 rm -rf %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/.yardoc
66 chmod 644 %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/lib/sass/less.rb
67
68 install -d %{buildroot}%{_datadir}/emacs/site-lisp
69 install -D -m644 extra/haml-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/
70 install -D -m644 extra/sass-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/
71
72 %clean
73 rm -rf %{buildroot}
74

  ViewVC Help
Powered by ViewVC 1.1.30