# Generated from file-tail-1.0.5.gem by gem2rpm -*- rpm-spec -*- %global gem_name file-tail Name: rubygem-%{gem_name} Version: 1.1.0 Release: 3%{?dist} Summary: File::Tail for Ruby Group: Development/Languages License: GPLv2 URL: http://github.com/flori/file-tail Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(test-unit) BuildArch: noarch # Ruby 2.3 tests compatibility # https://github.com/flori/file-tail/pull/8.patch Patch0: rubygem-file-tail-1.1.0-fix-test-for-ruby-2.3.patch %description Library to tail files in Ruby. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec # Install rtail RubyGems stub. sed -i '/s\.test_files/a \ s.executables = ["rtail"]' %{gem_name}.gemspec %build gem build %{gem_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x # rpmlint issue find %{buildroot}%{gem_instdir}/tests -type f | \ xargs sed -i -e '\@^#!/usr.*ruby@d' %check pushd .%{gem_instdir} patch -p1 < %{PATCH0} ruby -Ilib -e 'Dir.glob "./tests/**/test_*.rb", &method(:require)' popd %files %{_bindir}/rtail %dir %{gem_instdir} %exclude %{gem_instdir}/.* %exclude %{gem_instdir}/file-tail.gemspec %license %{gem_instdir}/COPYING %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/CHANGES %{gem_instdir}/Rakefile %doc %{gem_instdir}/VERSION %{gem_instdir}/examples %{gem_instdir}/tests %changelog * Mon Apr 18 2016 Jun Aruga - 1.1.0-3 - Fix test suite for Ruby 2.3 compatibility. (rhbz#1308028) * Thu Feb 04 2016 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Nov 20 2015 Vít Ondruch - 1.1.0-1 - Update to file-tails 1.1.0. * Thu Jun 18 2015 Fedora Release Engineering - 1.0.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 23 2014 Vít Ondruch - 1.0.12-1 - Update to file-tails 1.0.12. * Sun Jun 08 2014 Fedora Release Engineering - 1.0.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.0.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 20 2013 Peng Wu - 1.0.5-8 - Fixes build * Thu Feb 14 2013 Fedora Release Engineering - 1.0.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.0.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Feb 02 2012 Vít Ondruch - 1.0.5-5 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 1.0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Apr 21 2011 Peng Wu - 1.0.5-3 - Run test suite * Wed Apr 20 2011 Peng Wu - 1.0.5-2 - Fixes the spec * Wed Apr 20 2011 Peng Wu - 1.0.5-1 - Initial package