init package
This commit is contained in:
parent
ded9d75e28
commit
8453eb7179
BIN
daemons-1.1.9.gem
Normal file
BIN
daemons-1.1.9.gem
Normal file
Binary file not shown.
58
rubygem-daemons.spec
Normal file
58
rubygem-daemons.spec
Normal file
@ -0,0 +1,58 @@
|
||||
%define gem_name daemons
|
||||
Summary: A toolkit to create and control daemons in different ways
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.1.9
|
||||
Release: 1
|
||||
License: MIT and (GPLv2+ or Ruby)
|
||||
URL: https://rubygems.org/gems/daemons
|
||||
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
||||
Requires: ruby(rubygems) ruby(release)
|
||||
BuildRequires: rubygems-devel
|
||||
BuildArch: noarch
|
||||
Provides: rubygem(%{gem_name}) = %{version}
|
||||
%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.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
%gem_install -n %{SOURCE0}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -pa .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{gem_instdir}/examples/
|
||||
%{gem_libdir}/
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/setup.rb
|
||||
%doc %{gem_instdir}/LICENSE
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%doc %{gem_instdir}/README
|
||||
%doc %{gem_instdir}/Releases
|
||||
%doc %{gem_instdir}/TODO
|
||||
|
||||
%changelog
|
||||
* Fri Aug 21 2020 fanjiachen <fanjiachen3@huawei.com> - 1.1.9-1
|
||||
- package init
|
||||
4
rubygem-daemons.yaml
Normal file
4
rubygem-daemons.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: thuehlinger/daemons
|
||||
tag_prefix: "v"
|
||||
src_repo: "."
|
||||
Loading…
x
Reference in New Issue
Block a user