SPECS: ruby-daemons.spec (NEW), god.spec (NEW) - added

aredridel aredridel at pld-linux.org
Tue Jul 10 03:25:56 CEST 2007


Author: aredridel                    Date: Tue Jul 10 01:25:56 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

---- Files affected:
SPECS:
   ruby-daemons.spec (NONE -> 1.1)  (NEW), god.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ruby-daemons.spec
diff -u /dev/null SPECS/ruby-daemons.spec:1.1
--- /dev/null	Tue Jul 10 03:25:56 2007
+++ SPECS/ruby-daemons.spec	Tue Jul 10 03:25:50 2007
@@ -0,0 +1,78 @@
+# $Revision$, $Date$
+Summary:	A library to aid daemonizing ruby programs
+Name:		ruby-daemons
+Version:	1.0.7
+Release:	1
+License:	Ruby's
+Group:		Development/Languages
+Source0:	http://gems.rubyforge.org/gems/daemons-%{version}.gem
+# Source0-md5:	33d0e02514281f7f29b19a594382fc61
+#Patch0: %{name}-nogems.patch
+URL:		http://daemons.rubyforge.org
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	setup.rb = 3.3.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+If you want, you can also use daemons to run blocks of ruby code in a
+daemon process and to control these processes from the main
+application.
+
+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.
+
+Daemons includes the daemonize.rb script written by Travis Whitton to
+do the daemonization process.
+
+
+%prep
+%setup -q -c
+tar xf %{SOURCE0} -O data.tar.gz | tar xzv-
+#%patch0 -p1
+cp %{_datadir}/setup.rb .
+
+%build
+ruby setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc --op rdoc lib
+rdoc --ri --op ri lib
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+
+ruby setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
+
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%{ruby_rubylibdir}/daemons.rb
+%{ruby_rubylibdir}/daemons
+%{ruby_ridir}/Daemonize
+%{ruby_ridir}/Daemons
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/07/10 01:25:50  aredridel
+- added
+

================================================================
Index: SPECS/god.spec
diff -u /dev/null SPECS/god.spec:1.1
--- /dev/null	Tue Jul 10 03:25:56 2007
+++ SPECS/god.spec	Tue Jul 10 03:25:50 2007
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+Summary:	A monitoring system like Monit only awesome
+Name:		god
+Version:	0.1.0
+Release:	1
+License:	Ruby's
+Group:		Development/Languages
+Source0:	http://gems.rubyforge.org/gems/%{name}-%{version}.gem
+# Source0-md5:	fc71bda162d2d6b5b8a2dea1a21e2b38
+Patch0:	%{name}-nogems.patch
+URL:		http://god.rubyforge.org
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	setup.rb = 3.3.1
+Requires:	ruby-daemons
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+God is an easy to configure, easy to extend monitoring framework
+written in Ruby.
+
+Keeping your server processes and tasks running should be a simple
+part of your deployment process. God aims to be the simplest, most
+powerful monitoring application available.
+
+%prep
+%setup -q -c
+tar xf %{SOURCE0} -O data.tar.gz | tar xzv-
+%patch0 -p1
+cp %{_datadir}/setup.rb .
+
+%build
+ruby setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc --op rdoc lib
+rdoc --ri --op ri lib
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+
+ruby setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
+
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%attr(755,root,root) %{_bindir}/god
+%{ruby_rubylibdir}/god.rb
+%{ruby_rubylibdir}/god
+%{ruby_ridir}/God
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/07/10 01:25:50  aredridel
+- added
+
================================================================


More information about the pld-cvs-commit mailing list