%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gemname rb-inotify %global geminstdir %{gemdir}/gems/%{gemname}-%{version} Summary: A Ruby wrapper for Linux's inotify, using FFI Name: rubygem-%{gemname} Version: 0.8.1 Release: 3%{?dist} Group: Development/Languages License: MIT URL: http://github.com/nex3/rb-inotify Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem Requires: rubygems Requires: ruby(abi) = 1.8 Requires: rubygem(ffi) BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description A Ruby wrapper for Linux's inotify, using FFI %prep %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ --force --rdoc %{SOURCE0} rm -f %{buildroot}/%{geminstdir}/.gitignore rm -f %{buildroot}/%{geminstdir}/.yardopts %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %dir %{geminstdir} %{geminstdir}/lib %doc %{geminstdir}/Rakefile %doc %{gemdir}/doc/%{gemname}-%{version} %doc %{geminstdir}/README.md %doc %{geminstdir}/MIT-LICENSE %doc %{geminstdir}/VERSION %doc %{geminstdir}/%{gemname}.gemspec %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog * Wed Feb 09 2011 Fedora Release Engineering - 0.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Oct 11 2010 Michal Fojtik - 0.8.1-2 - Removed unused macros - Moved Rakefile into doc * Tue Oct 05 2010 Michal Fojtik - 0.8.1-1 - Initial package