1 |
%define oname sass |
2 |
|
3 |
Name: ruby-%{oname} |
4 |
Version: 3.1.19 |
5 |
Release: %mkrel 1 |
6 |
Summary: CSS Generator |
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(maruku) >= 0.5.9 |
13 |
Requires: rubygem(fssm) = 0.1.4 |
14 |
Requires: ruby(abi) = 1.8 |
15 |
BuildArch: noarch |
16 |
|
17 |
%description |
18 |
Sass makes CSS fun again. Sass is an extension of CSS3, adding nested rules, |
19 |
variables, mixins, selector inheritance, and more. It's translated to |
20 |
well-formatted, standard CSS using the command line tool or a web-framework |
21 |
plugin. |
22 |
|
23 |
#------------------------------------------------------------------------------- |
24 |
%package doc |
25 |
Summary: Documentation for %{name} |
26 |
Group: Development/Ruby |
27 |
Requires: %{name} = %{version}-%{release} |
28 |
|
29 |
%description doc |
30 |
Documents, Rdoc & RI documentation for %{name}. |
31 |
#------------------------------------------------------------------------------- |
32 |
|
33 |
%prep |
34 |
%setup -q |
35 |
tar xmf data.tar.gz |
36 |
|
37 |
%build |
38 |
%gem_build -f^VERSION |
39 |
|
40 |
%install |
41 |
rm -rf %{buildroot} |
42 |
%gem_install |
43 |
|
44 |
rm -rf %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/.yardoc |
45 |
|
46 |
%files |
47 |
%defattr(-,root,root,-) |
48 |
%{_bindir}/sass |
49 |
%{_bindir}/sass-convert |
50 |
%{_bindir}/scss |
51 |
%dir %{ruby_gemdir}/gems/%{oname}-%{version}/ |
52 |
%{ruby_gemdir}/gems/%{oname}-%{version}/bin |
53 |
%{ruby_gemdir}/gems/%{oname}-%{version}/lib |
54 |
%{ruby_gemdir}/gems/%{oname}-%{version}/VERSION* |
55 |
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec |
56 |
|
57 |
%files doc |
58 |
%defattr(-,root,root,-) |
59 |
%doc %{ruby_gemdir}/doc/%{oname}-%{version} |