]> git.pld-linux.org Git - packages/ruby-timers.git/commitdiff
new, version 1.0.2
authorElan Ruusamäe <glen@delfi.ee>
Sun, 14 Jul 2013 10:39:33 +0000 (13:39 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 14 Jul 2013 10:39:33 +0000 (13:39 +0300)
created with gem2rpm

ruby-timers.spec [new file with mode: 0644]

diff --git a/ruby-timers.spec b/ruby-timers.spec
new file mode 100644 (file)
index 0000000..c492048
--- /dev/null
@@ -0,0 +1,42 @@
+#
+# Conditional build:
+%bcond_with    tests           # build without tests
+
+%define        pkgname timers
+Summary:       Pure Ruby one-shot and periodic timers
+Name:          ruby-%{pkgname}
+Version:       1.0.2
+Release:       1
+License:       GPL v2+ or Ruby
+Group:         Development/Languages
+Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 967f11ab1c43982863fc0dba50b428f1
+URL:           https://github.com/tarcieri/timers
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-rake
+BuildRequires: ruby-rspec
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Schedule procs to run after a certain time, or at periodic intervals,
+using any API that accepts a timeout.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
This page took 0.10203 seconds and 4 git commands to generate.