]>
Commit | Line | Data |
---|---|---|
9e6177ad ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build without tests | |
4 | ||
5 | %define pkgname timers | |
6 | Summary: Pure Ruby one-shot and periodic timers | |
7 | Name: ruby-%{pkgname} | |
892d8484 | 8 | Version: 1.1.0 |
9e6177ad ER |
9 | Release: 1 |
10 | License: GPL v2+ or Ruby | |
11 | Group: Development/Languages | |
12 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem | |
892d8484 | 13 | # Source0-md5: 5bf756f4d6d838c626f9b47ea281d765 |
9e6177ad ER |
14 | URL: https://github.com/tarcieri/timers |
15 | BuildRequires: rpm-rubyprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.656 | |
17 | %if %{with tests} | |
18 | BuildRequires: ruby-rake | |
19 | BuildRequires: ruby-rspec | |
20 | %endif | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Schedule procs to run after a certain time, or at periodic intervals, | |
26 | using any API that accepts a timeout. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{pkgname}-%{version} | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
34 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %{ruby_vendorlibdir}/%{pkgname}.rb | |
42 | %{ruby_vendorlibdir}/%{pkgname} |