]>
Commit | Line | Data |
---|---|---|
cf6995ad ER |
1 | %define gem_name abstract |
2 | Summary: Allows you to define an abstract method in Ruby | |
3 | Name: ruby-%{gem_name} | |
4 | Version: 1.0.0 | |
5 | Release: 1 | |
6 | License: GPL v2 or Ruby | |
7 | Group: Development/Languages | |
8 | URL: http://rubyforge.org/projects/abstract | |
9 | Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem | |
10 | # Source0-md5: ea26d93f0a47a530631da430c9e9b7e5 | |
11 | BuildRequires: rpm-rubyprov | |
12 | BuildRequires: rpmbuild(macros) >= 1.656 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | Small library that allows you to define an abstract method in Ruby. | |
18 | ||
19 | %package doc | |
20 | Summary: Documentation for %{name} | |
21 | Group: Documentation | |
22 | Requires: %{name} = %{version}-%{release} | |
23 | ||
24 | %description doc | |
25 | This package contains documentation for %{name}. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | %if %{with tests} | |
32 | ruby test/test.rb | |
33 | %endif | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
38 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc README.txt ChangeLog | |
46 | %{ruby_vendorlibdir}/abstract.rb | |
47 | ||
48 | %if 0 | |
49 | %files doc | |
50 | %defattr(644,root,root,755) | |
51 | %endif |