1 |
%define oname activesupport |
2 |
|
3 |
Name: ruby-%{oname} |
4 |
Version: 2.3.15 |
5 |
Release: %mkrel 1 |
6 |
Summary: Support and utility classes used by the Rails framework |
7 |
Group: Development/Ruby |
8 |
License: MIT |
9 |
URL: http://www.rubyonrails.org |
10 |
Source0: http://rubygems.org/downloads/%{oname}-%{version}.gem |
11 |
BuildRequires: rubygems |
12 |
Requires: rubygem(builder) >= 2.1.2 |
13 |
Requires: rubygem(i18n) >= 0.4.1 |
14 |
Requires: rubygem(tzinfo) >= 0.3.13 |
15 |
Requires: rubygem(memcache-client) >= 1.7.5 |
16 |
BuildArch: noarch |
17 |
|
18 |
%description |
19 |
Utility library which carries commonly used classes and goodies from the |
20 |
Rails framework |
21 |
|
22 |
%files |
23 |
%defattr(-, root, root, -) |
24 |
%dir %{ruby_gemdir}/gems/%{oname}-%{version}/ |
25 |
%{ruby_gemdir}/gems/%{oname}-%{version}/lib |
26 |
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec |
27 |
|
28 |
#------------------------------------------------------------------------------- |
29 |
%package doc |
30 |
Summary: Documentation for %{name} |
31 |
Group: Development/Ruby |
32 |
Requires: %{name} = %{version}-%{release} |
33 |
|
34 |
%description doc |
35 |
Documents, Rdoc & RI documentation for %{name}. |
36 |
%files doc |
37 |
%defattr(-,root,root,-) |
38 |
%doc %{ruby_gemdir}/doc/%{oname}-%{version} |
39 |
#------------------------------------------------------------------------------- |
40 |
|
41 |
%prep |
42 |
%setup -q |
43 |
tar xmf data.tar.gz |
44 |
|
45 |
%build |
46 |
#don’t include vendor when possible |
47 |
rm -rf lib/vendor/ |
48 |
%gem_build |
49 |
|
50 |
%install |
51 |
rm -rf %{buildroot} |
52 |
%gem_install |
53 |
|
54 |
%clean |
55 |
rm -rf %{buildroot} |
56 |
|