# Generated from io-like-0.3.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name io-like Name: rubygem-%{gem_name} Version: 0.3.1 Release: 1%{?dist} Summary: A module which provides the functionality of an IO object to any including class which provides a couple of simple methods License: MIT URL: http://github.com/javanthropus/io-like Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.8.1 # BuildRequires: rubygem(mspec) >= 1.5 # BuildRequires: rubygem(mspec) < 2 # BuildRequires: rubygem(yard) >= 0.8 # BuildRequires: rubygem(yard) < 1 # BuildRequires: rubygem(yard-redcarpet-ext) # BuildRequires: rubygem(yard-redcarpet-ext) < 1 # BuildRequires: rubygem(github-markup) >= 1.2 # BuildRequires: rubygem(github-markup) < 2 BuildArch: noarch %description The IO::Like module provides all of the methods of typical IO implementations such as File; most importantly the read, write, and seek series of methods. A class which includes IO::Like needs to provide only a few methods in order to enable the higher level methods. Buffering is automatically provided by default for the methods which normally provide it in IO. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE %license %{gem_instdir}/LICENSE-rubyspec %{gem_instdir}/NEWS.md %{gem_libdir} %{gem_instdir}/ruby.1.8.mspec %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/spec %{gem_instdir}/spec_helper.rb %changelog * Tue Aug 24 2021 mockbuilder - 0.3.1-1 - Initial package