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