]>
Commit | Line | Data |
---|---|---|
16ca1114 ER |
1 | %define pkgname io-like |
2 | Summary: A module which provides the functionality of an IO object to any class which provides a couple of simple methods | |
3 | Name: ruby-%{pkgname} | |
4 | Version: 0.3.0 | |
5 | Release: 1 | |
6 | License: GPL v2+ or Ruby | |
7 | Group: Development/Languages | |
8 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem | |
9 | # Source0-md5: 7a16ea4dfd897a9af9855d19416f3e4a | |
10 | URL: http://io-like.rubyforge.org/ | |
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 | The IO::Like module provides the methods of an IO object based upon on | |
18 | a few simple methods provided by the including class: unbuffered_read, | |
19 | unbuffered_write, and unbuffered_seek. | |
20 | ||
21 | %prep | |
22 | %setup -q -n %{pkgname}-%{version} | |
23 | ||
24 | %build | |
25 | # write .gemspec | |
26 | %__gem_helper spec | |
27 | ||
28 | %install | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}} | |
31 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
32 | cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir} | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
39 | %dir %{ruby_vendorlibdir}/io | |
40 | %{ruby_vendorlibdir}/io/like.rb | |
41 | %{ruby_specdir}/%{pkgname}-%{version}.gemspec |