3 %bcond_with tests # build without tests
6 Summary: Listen to file modifications
11 Group: Development/Languages
12 Source0: https://github.com/guard/listen/archive/v%{version}/%{pkgname}-%{version}.tar.gz
13 # Source0-md5: 2b1378df84cd0e5ab94d172c3a92d70d
15 URL: https://github.com/guard/listen
16 BuildRequires: rpm-rubyprov
17 BuildRequires: rpmbuild(macros) >= 1.656
19 BuildRequires: ruby-bundler >= 1.3.5
20 BuildRequires: ruby-rake
21 BuildRequires: ruby-rspec >= 2.14
22 BuildRequires: ruby-rspec-retry
24 Requires: ruby-celluloid >= 0.15.2
25 Requires: ruby-celluloid-io >= 0.15.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 The Listen gem listens to file modifications and notifies you about
31 the changes. Works everywhere!
34 %setup -q -n %{pkgname}-%{version}
38 # make gemspec self-contained
39 ruby -r rubygems -e 'spec = eval(File.read("%{pkgname}.gemspec"))
40 File.open("%{pkgname}-%{version}.gemspec", "w") do |file|
41 file.puts spec.to_ruby_for_cache
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
51 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
52 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc README.md CHANGELOG.md
60 %{ruby_vendorlibdir}/%{pkgname}.rb
61 %{ruby_vendorlibdir}/%{pkgname}
62 %{ruby_specdir}/%{pkgname}-%{version}.gemspec