1 %define pkgname io-like
2 Summary: IO::Like - in the Likeness of IO
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
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 The IO::Like module provides all of the methods of typical IO
18 implementations such as File; most importantly the read, write, and
19 seek series of methods. A class which includes IO::Like needs to
20 provide only a few methods in order to enable the higher level
21 methods. Buffering is automatically provided by default for the
22 methods which normally provide it in IO.
25 %setup -q -n %{pkgname}-%{version}
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
34 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
35 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
38 rm -rf $RPM_BUILD_ROOT
41 %defattr(644,root,root,755)
42 %dir %{ruby_vendorlibdir}/io
43 %{ruby_vendorlibdir}/io/like.rb
44 %{ruby_specdir}/%{pkgname}-%{version}.gemspec