]>
Commit | Line | Data |
---|---|---|
1 | %define pkgname abstract | |
2 | Summary: Allows you to define an abstract method in Ruby | |
3 | Name: ruby-%{pkgname} | |
4 | Version: 1.0.0 | |
5 | Release: 3 | |
6 | License: GPL v2 or Ruby | |
7 | Group: Development/Languages | |
8 | Source0: http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem | |
9 | # Source0-md5: ea26d93f0a47a530631da430c9e9b7e5 | |
10 | URL: http://rubyforge.org/projects/abstract | |
11 | BuildRequires: rpm-rubyprov | |
12 | BuildRequires: rpmbuild(macros) >= 1.665 | |
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 | # write .gemspec | |
32 | %__gem_helper spec | |
33 | ||
34 | %if %{with tests} | |
35 | ruby test/test.rb | |
36 | %endif | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}} | |
41 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
42 | cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir} | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc README.txt ChangeLog | |
50 | %{ruby_vendorlibdir}/abstract.rb | |
51 | %{ruby_specdir}/%{pkgname}-%{version}.gemspec | |
52 | ||
53 | %if 0 | |
54 | %files doc | |
55 | %defattr(644,root,root,755) | |
56 | %endif |