1 |
%define oname shoulda-context |
2 |
|
3 |
Name: ruby-%{oname} |
4 |
Version: 1.1.5 |
5 |
Release: %mkrel 1 |
6 |
Summary: Context framework extracted from Shoulda |
7 |
Group: Development/Ruby |
8 |
License: GPLv2 |
9 |
URL: http://thoughtbot.com/community/ |
10 |
Source0: http://rubygems.org/downloads/%{oname}-%{version}.gem |
11 |
BuildRequires: rubygems |
12 |
BuildArch: noarch |
13 |
Conflicts: ruby-shoulda < 3 |
14 |
|
15 |
%description |
16 |
Context framework extracted from Shoulda. |
17 |
|
18 |
#------------------------------------------------------------------------------- |
19 |
%package doc |
20 |
Summary: Documentation for %{name} |
21 |
Group: Development/Ruby |
22 |
Requires: %{name} = %{version}-%{release} |
23 |
|
24 |
%description doc |
25 |
Documents, Rdoc & RI documentation for %{name}. |
26 |
#------------------------------------------------------------------------------- |
27 |
|
28 |
%prep |
29 |
%gem_setup |
30 |
|
31 |
%build |
32 |
%gem_build |
33 |
|
34 |
%install |
35 |
%gem_install |
36 |
|
37 |
%files |
38 |
%{_bindir}/convert_to_should_syntax |
39 |
%{ruby_gemdir}/gems/%{oname}-%{version}/ |
40 |
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec |
41 |
|
42 |
%files doc |
43 |
%doc %{ruby_gemdir}/doc/%{oname}-%{version} |