Project

General

Profile

Download (3.2 KB) Statistics
| Branch: | Tag: | Revision:
05be91cb Dominic Cleal
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}

%define gem_name daemons

Summary: A toolkit to create and control daemons in different ways
Name: %{?scl_prefix}rubygem-%{gem_name}
b16c2121 Dominic Cleal
Version: 1.2.3
6c262281 Dominic Cleal
Release: 1%{?dist}
05be91cb Dominic Cleal
Group: Development/Languages
License: GPLv2+ or Ruby
URL: http://daemons.rubyforge.org
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
b319e683 Dominic Cleal
Requires: %{?scl_prefix_ruby}rubygems
BuildRequires: %{?scl_prefix_ruby}rubygems
05be91cb Dominic Cleal
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
b319e683 Dominic Cleal
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
Requires: %{?scl_prefix_ruby}ruby(abi) = 1.9.1
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
05be91cb Dominic Cleal
%description
Daemons provides an easy way to wrap existing ruby scripts (for example a
self-written server) to be run as a daemon and to be controlled by simple
start/stop/restart commands. You can also call blocks as daemons and control
them from the parent or just daemonize the current process. Besides this
basic functionality, daemons offers many advanced features like exception
backtracing and logging (in case your ruby script crashes) and monitoring and
automatic restarting of your processes if they crash.

6c262281 Dominic Cleal
%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
b319e683 Dominic Cleal
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
6c262281 Dominic Cleal
BuildArch: noarch

%description doc
Documentation for %{name}

05be91cb Dominic Cleal
%prep
%setup -q -c -T -n %{gem_name}-%{version}

%build
mkdir -p .%{gem_dir}

%{?scl:scl enable %{scl} "}
gem install -V \
--local \
--install-dir ./%{gem_dir} \
--force \
--rdoc \
%{SOURCE0}
%{?scl:"}

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/

%files
6c262281 Dominic Cleal
%dir %{gem_instdir}
%{gem_libdir}
%{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/LICENSE

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/examples
05be91cb Dominic Cleal
%doc %{gem_instdir}/Releases
6c262281 Dominic Cleal
%doc %{gem_instdir}/README.md
05be91cb Dominic Cleal
%changelog
3733f8f6 Dominic Cleal
* Tue Jul 07 2015 Dominic Cleal <dcleal@redhat.com> 1.2.3-1
- Update daemons to 1.2.3 (dcleal@redhat.com)

4b40f8b5 Dominic Cleal
* Tue May 12 2015 Dominic Cleal <dcleal@redhat.com> 1.2.2-1
- Fixes #10362 - Update daemons to 1.2.2 (inecas@redhat.com)

c259f410 Dominic Cleal
* Tue Mar 17 2015 Dominic Cleal <dcleal@redhat.com> 1.2.1-1
- Update daemons to 1.2.1 (dcleal@redhat.com)
- Split docs into separate subpackage

05be91cb Dominic Cleal
* Tue Feb 26 2013 Miroslav Suchý <msuchy@redhat.com> 1.1.4-7
- BR rubygems-devel (msuchy@redhat.com)

* Tue Feb 26 2013 Miroslav Suchý <msuchy@redhat.com> 1.1.4-6
- do not regenerate gemspec (msuchy@redhat.com)

* Tue Feb 26 2013 Miroslav Suchý <msuchy@redhat.com> 1.1.4-5
- wrap up generating gemspec in SC environment (msuchy@redhat.com)

* Tue Feb 26 2013 Miroslav Suchý <msuchy@redhat.com> 1.1.4-4
- new package built with tito

* Mon Jul 16 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.4-3
- edit spec for fedora (msuchy@redhat.com)

* Mon Jul 11 2011 Mike McCune <mmccune@redhat.com> 1.1.4-2
- fixed new-lines in daemon.spec (dmitri@redhat.com)

* Wed Jul 06 2011 Dmitri Dolguikh <dmitri@redhat.com> 1.1.4-1
- new package built with tito

* Wed Jul 06 2011 <wb@killing-time.appliedlogic.ca> - 1.1.4-1
- Initial package