3 %bcond_with tests # build without tests
6 Summary: Pure Ruby one-shot and periodic timers
10 License: GPL v2+ or Ruby
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 5bf756f4d6d838c626f9b47ea281d765
14 URL: https://github.com/tarcieri/timers
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-rake
19 BuildRequires: ruby-rspec
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Schedule procs to run after a certain time, or at periodic intervals,
26 using any API that accepts a timeout.
29 %setup -q -n %{pkgname}-%{version}
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
34 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %{ruby_vendorlibdir}/%{pkgname}.rb
42 %{ruby_vendorlibdir}/%{pkgname}