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