|
Peng Wu |
a9e1384 |
# Generated from file-tail-1.0.5.gem by gem2rpm -*- rpm-spec -*-
|
|
Peng Wu |
a9e1384 |
%global rubyabi 1.8
|
|
Peng Wu |
a9e1384 |
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
|
|
Peng Wu |
a9e1384 |
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
Peng Wu |
a9e1384 |
%define gemname file-tail
|
|
Peng Wu |
a9e1384 |
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
Summary: File::Tail for Ruby
|
|
Peng Wu |
a9e1384 |
Name: rubygem-%{gemname}
|
|
Peng Wu |
a9e1384 |
Version: 1.0.5
|
|
Peng Wu |
a9e1384 |
Release: 3%{?dist}
|
|
Peng Wu |
a9e1384 |
Group: Development/Languages
|
|
Peng Wu |
a9e1384 |
License: GPLv2+
|
|
Peng Wu |
a9e1384 |
URL: http://flori.github.com/file-tail
|
|
Peng Wu |
a9e1384 |
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
Peng Wu |
a9e1384 |
Requires: ruby(abi) = %{rubyabi}
|
|
Peng Wu |
a9e1384 |
Requires: rubygems
|
|
Peng Wu |
a9e1384 |
Requires: rubygem(spruz)
|
|
Peng Wu |
a9e1384 |
BuildRequires: ruby rubygems
|
|
Peng Wu |
a9e1384 |
BuildArch: noarch
|
|
Peng Wu |
a9e1384 |
Provides: rubygem(%{gemname}) = %{version}
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%description
|
|
Peng Wu |
a9e1384 |
Library to tail files in Ruby
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%package doc
|
|
Peng Wu |
a9e1384 |
Summary: Documentation for %{name}
|
|
Peng Wu |
a9e1384 |
Group: Documentation
|
|
Peng Wu |
a9e1384 |
Requires: %{name} = %{version}-%{release}
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%description doc
|
|
Peng Wu |
a9e1384 |
Documentation for %{name}
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%prep
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%build
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%install
|
|
Peng Wu |
a9e1384 |
mkdir -p %{buildroot}%{gemdir}
|
|
Peng Wu |
a9e1384 |
gem install --local --install-dir %{buildroot}%{gemdir} \
|
|
Peng Wu |
a9e1384 |
--force --rdoc %{SOURCE0}
|
|
Peng Wu |
a9e1384 |
mkdir -p %{buildroot}/%{_bindir}
|
|
Peng Wu |
a9e1384 |
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
|
|
Peng Wu |
a9e1384 |
rmdir %{buildroot}%{gemdir}/bin
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
# rpmlint issue
|
|
Peng Wu |
a9e1384 |
find %{buildroot}%{geminstdir}/{lib,examples,tests} -type f | \
|
|
Peng Wu |
a9e1384 |
xargs sed -i -e '\@^#!/usr.*ruby@d'
|
|
Peng Wu |
a9e1384 |
sed -i -e '\@^#!/usr.*ruby@d' %{buildroot}%{geminstdir}/*.rb
|
|
Peng Wu |
a9e1384 |
find %{buildroot}%{geminstdir}/{lib,examples,tests} -type f | xargs chmod 0644
|
|
Peng Wu |
a9e1384 |
chmod 755 %{buildroot}%{geminstdir}/bin/rtail
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%check
|
|
Peng Wu |
a9e1384 |
pushd %{buildroot}%{geminstdir}
|
|
Peng Wu |
a9e1384 |
RUBYOPT="I%{buildroot}%{geminstdir}/lib Itest" testrb tests/test_*
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%files
|
|
Peng Wu |
a9e1384 |
%defattr(-, root, root, -)
|
|
Peng Wu |
a9e1384 |
%{_bindir}/rtail
|
|
Peng Wu |
a9e1384 |
%dir %{geminstdir}
|
|
Peng Wu |
a9e1384 |
%{geminstdir}/lib
|
|
Peng Wu |
a9e1384 |
%doc %{geminstdir}/README
|
|
Peng Wu |
a9e1384 |
%doc %{geminstdir}/CHANGES
|
|
Peng Wu |
a9e1384 |
%doc %{geminstdir}/COPYING
|
|
Peng Wu |
a9e1384 |
%doc %{geminstdir}/VERSION
|
|
Peng Wu |
a9e1384 |
%{geminstdir}/bin
|
|
Peng Wu |
a9e1384 |
%{geminstdir}/*.rb
|
|
Peng Wu |
a9e1384 |
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
Peng Wu |
a9e1384 |
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
Peng Wu |
a9e1384 |
%exclude %{geminstdir}/Rakefile
|
|
Peng Wu |
a9e1384 |
%exclude %{geminstdir}/examples
|
|
Peng Wu |
a9e1384 |
%exclude %{geminstdir}/tests
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%files doc
|
|
Peng Wu |
a9e1384 |
%defattr(-, root, root, -)
|
|
Peng Wu |
a9e1384 |
%{geminstdir}/examples
|
|
Peng Wu |
a9e1384 |
%{geminstdir}/Rakefile
|
|
Peng Wu |
a9e1384 |
%{geminstdir}/tests
|
|
Peng Wu |
a9e1384 |
%{gemdir}/doc/%{gemname}-%{version}
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
%changelog
|
|
Peng Wu |
a9e1384 |
* Thu Apr 21 2011 Peng Wu <pwu@redhat.com> - 1.0.5-3
|
|
Peng Wu |
a9e1384 |
- Run test suite
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
* Wed Apr 20 2011 Peng Wu <pwu@redhat.com> - 1.0.5-2
|
|
Peng Wu |
a9e1384 |
- Fixes the spec
|
|
Peng Wu |
a9e1384 |
|
|
Peng Wu |
a9e1384 |
* Wed Apr 20 2011 Peng Wu <pwu@redhat.com> - 1.0.5-1
|
|
Peng Wu |
a9e1384 |
- Initial package
|