diff --git a/.gitignore b/.gitignore index e69de29..c6fb842 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rb-inotify-0.8.1.gem diff --git a/rubygem-rb-inotify.spec b/rubygem-rb-inotify.spec new file mode 100644 index 0000000..9191af7 --- /dev/null +++ b/rubygem-rb-inotify.spec @@ -0,0 +1,59 @@ +%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: 2%{?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 +* 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 diff --git a/sources b/sources index e69de29..7a35632 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bdda71fa9eddcc0aa16811001f797b33 rb-inotify-0.8.1.gem