3 %bcond_with tests # build without tests
5 %define pkgname rb-inotify
6 Summary: A Ruby wrapper for Linux's inotify, using FFI
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 865ed70ff9f90d5d23dc4ab906358650
14 URL: http://github.com/nex3/rb-inotify
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-yard >= 0.4.0
20 Requires: ruby-ffi >= 0.5.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A Ruby wrapper for Linux's inotify, using FFI
28 %setup -q -n %{pkgname}-%{version}
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
37 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
38 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %doc README.md MIT-LICENSE VERSION
46 %{ruby_vendorlibdir}/rb-inotify.rb
47 %{ruby_vendorlibdir}/rb-inotify
48 %{ruby_specdir}/%{pkgname}-%{version}.gemspec