[gofer] Update to 1.3.0.

Jeff Ortel jortel at fedoraproject.org
Fri Jun 20 15:06:32 UTC 2014


commit 095c01fe5a586ce71251b899f552b42c0aaacd77
Author: Jeff Ortel <jortel at redhat.com>
Date:   Fri Jun 20 10:06:22 2014 -0500

    Update to 1.3.0.

 .gitignore |    1 +
 gofer.spec |  255 ++++++++++++++++++++++++++++++++++++++++++++++--------------
 sources    |    2 +-
 3 files changed, 198 insertions(+), 60 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b17371c..bd4c635 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
 /gofer-0.75.tar.gz
 /gofer-0.77.tar.gz
 /gofer-0.77.1.tar.gz
+/gofer-1.3.0.tar.gz
diff --git a/gofer.spec b/gofer.spec
index 4757011..d79755c 100644
--- a/gofer.spec
+++ b/gofer.spec
@@ -1,9 +1,14 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig  -e 'puts Config::CONFIG["sitelibdir"]')}
 
+# Determine supported
+%if 0%{?rhel} >= 7 || 0%{?fedora} >= 18
+%define systemd 1
+%endif
+
 Name: gofer
-Version: 0.77.1
-Release: 2%{?dist}
+Version: 1.3.0
+Release: 1%{?dist}
 Summary: A lightweight, extensible python agent
 Group:   Development/Languages
 License: LGPLv2
@@ -17,13 +22,19 @@ BuildRequires: python-setuptools
 BuildRequires: rpm-python
 Requires: python-%{name} = %{version}
 Requires: python-iniparse
+%if 0%{?systemd}
+BuildRequires: systemd
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+%endif
 %description
 Gofer provides an extensible, light weight, universal python agent.
 The gofer core agent is a python daemon (service) that provides
 infrastructure for exposing a remote API and for running Recurring
 Actions. The APIs contributed by plug-ins are accessible by Remote
-Method Invocation (RMI). The transport for RMI is AMQP using the
-QPID message broker. Actions are also provided by plug-ins and are
+Method Invocation (RMI). The transport for RMI is AMQP using an
+AMQP message broker. Actions are also provided by plug-ins and are
 executed at the specified interval.
 
 %prep
@@ -62,19 +73,23 @@ mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
 mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/plugins
 mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/conf.d
 mkdir -p %{buildroot}/%{_sysconfdir}/init.d
-mkdir -p %{buildroot}/%{_var}/log/%{name}
-mkdir -p %{buildroot}/%{_var}/lib/%{name}/journal/watchdog
+mkdir -p %{buildroot}/%{_unitdir}
 mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins
 mkdir -p %{buildroot}/%{_usr}/share/%{name}/plugins
 mkdir -p %{buildroot}/%{_mandir}/man1
 
 cp bin/%{name}d %{buildroot}/usr/bin
-cp etc/init.d/%{name}d %{buildroot}/%{_sysconfdir}/init.d
 cp etc/%{name}/*.conf %{buildroot}/%{_sysconfdir}/%{name}
 cp etc/%{name}/plugins/*.conf %{buildroot}/%{_sysconfdir}/%{name}/plugins
 cp src/plugins/*.py %{buildroot}/%{_usr}/share/%{name}/plugins
 cp docs/man/man1/* %{buildroot}/%{_mandir}/man1
 
+%if 0%{?systemd}
+cp usr/lib/systemd/system/* %{buildroot}/%{_unitdir}
+%else
+cp etc/init.d/%{name}d %{buildroot}/%{_sysconfdir}/init.d
+%endif
+
 rm -rf %{buildroot}/%{python_sitelib}/%{name}*.egg-info
 
 %clean
@@ -86,10 +101,13 @@ rm -rf %{buildroot}
 %dir %{_usr}/lib/%{name}/plugins/
 %dir %{_usr}/share/%{name}/plugins/
 %dir %{_sysconfdir}/%{name}/conf.d/
-%dir %{_var}/log/%{name}/
 %{python_sitelib}/%{name}/agent/
 %{_bindir}/%{name}d
+%if 0%{?systemd}
+%attr(755,root,root) %{_unitdir}/%{name}d.service
+%else
 %attr(755,root,root) %{_sysconfdir}/init.d/%{name}d
+%endif
 %config(noreplace) %{_sysconfdir}/%{name}/agent.conf
 %config(noreplace) %{_sysconfdir}/%{name}/plugins/builtin.conf
 %{_usr}/share/%{name}/plugins/builtin.*
@@ -97,46 +115,93 @@ rm -rf %{buildroot}
 %doc %{_mandir}/man1/gofer*
 
 %post
+%if 0%{?systemd}
+%systemd_post %{name}d.service
+%else
 chkconfig --add %{name}d
+%endif
 
 %preun
+%if 0%{?systemd}
+%systemd_preun %{name}d.service
+%else
 if [ $1 = 0 ] ; then
    /sbin/service %{name}d stop >/dev/null 2>&1
    /sbin/chkconfig --del %{name}d
 fi
+%endif
+
+%postun
+%if 0%{?systemd}
+%systemd_postun_with_restart %{name}d.service
+%endif
 
 
-###############################################################################
-# python lib
-###############################################################################
+# --- python lib -------------------------------------------------------------
 
 %package -n python-%{name}
 Summary: Gofer python lib modules
 Group: Development/Languages
 Obsoletes: %{name}-lib
 BuildRequires: python
-Requires: python-simplejson
-Requires: python-qpid >= 0.18
 Requires: PyPAM
 %if 0%{?rhel} && 0%{?rhel} < 6
+Requires: python-simplejson
 Requires: python-hashlib
 Requires: python-uuid
-Requires: python-ssl
 %endif
 
 %description -n python-%{name}
-Contains gofer python lib modules.
+Provides gofer python lib modules.
 
 %files -n python-%{name}
 %defattr(-,root,root,-)
 %{python_sitelib}/%{name}/*.py*
 %{python_sitelib}/%{name}/rmi/
 %{python_sitelib}/%{name}/messaging/
+%dir %{python_sitelib}/%{name}/transport/
+%{python_sitelib}/%{name}/transport/*.*
+%doc LICENSE
+
+
+# --- python qpid transport --------------------------------------------------
+
+%package -n python-%{name}-qpid
+Summary: Gofer Qpid transport python package
+Group: Development/Languages
+BuildRequires: python
+Requires: python-%{name} >= %{version}
+Requires: python-qpid >= 0.18
+%if 0%{?rhel} && 0%{?rhel} < 6
+Requires: python-ssl
+%endif
+
+%description -n python-%{name}-qpid
+Provides the gofer qpid transport package.
+
+%files -n python-%{name}-qpid
+%{python_sitelib}/%{name}/transport/qpid
 %doc LICENSE
 
-###############################################################################
-# ruby lib
-###############################################################################
+
+# --- python amqplib transport -----------------------------------------------
+
+%package -n python-%{name}-amqplib
+Summary: Gofer amqplib transport python package
+Group: Development/Languages
+BuildRequires: python
+Requires: python-%{name} >= %{version}
+Requires: python-amqplib >= 1.0.2
+
+%description -n python-%{name}-amqplib
+Provides the gofer amqplib transport package.
+
+%files -n python-%{name}-amqplib
+%{python_sitelib}/%{name}/transport/amqplib
+%doc LICENSE
+
+
+# --- ruby lib ---------------------------------------------------------------
 
 %package -n ruby-%{name}
 Summary: Gofer ruby lib modules
@@ -147,7 +212,7 @@ Requires: rubygem(json)
 Requires: rubygem(qpid) >= 0.16.0
 
 %description -n ruby-%{name}
-Contains gofer ruby lib modules.
+Provides gofer ruby lib modules.
 
 %files -n ruby-%{name}
 %defattr(-,root,root,-)
@@ -158,9 +223,7 @@ Contains gofer ruby lib modules.
 %doc LICENSE
 
 
-###############################################################################
-# plugin: system
-###############################################################################
+# --- plugin: system ---------------------------------------------------------
 
 %package -n gofer-system
 Summary: The system plug-in
@@ -169,7 +232,7 @@ BuildRequires: python
 Requires: %{name} >= %{version}
 
 %description -n gofer-system
-Contains the system plug-in.
+Provides the system plug-in.
 The system plug-in provides system functionality.
 
 %files -n gofer-system
@@ -179,32 +242,7 @@ The system plug-in provides system functionality.
 %doc LICENSE
 
 
-###############################################################################
-# plugin: watchdog
-###############################################################################
-
-%package -n gofer-watchdog
-Summary: The watchdog plug-in
-Group: Development/Languages
-BuildRequires: python
-Requires: %{name} >= %{version}
-
-%description -n gofer-watchdog
-Contains the watchdog plug-in.
-This plug-in is used to support time out
-for asynchronous RMI calls.
-
-%files -n gofer-watchdog
-%defattr(-,root,root,-)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/watchdog.conf
-%{_usr}/share/%{name}/plugins/watchdog.*
-%{_var}/lib/%{name}/journal/watchdog
-%doc LICENSE
-
-
-###############################################################################
-# plugin: virt
-###############################################################################
+# --- plugin: virt -----------------------------------------------------------
 
 %package -n gofer-virt
 Summary: The virtualization plugin
@@ -214,7 +252,7 @@ Requires: libvirt-python
 Requires: %{name} >= %{version}
 
 %description -n gofer-virt
-Contains the virtualization plugin.
+Provides the virtualization plugin.
 This plug-in provides RMI access to libvirt functionality.
 
 %files -n gofer-virt
@@ -224,9 +262,7 @@ This plug-in provides RMI access to libvirt functionality.
 %doc LICENSE
 
 
-###############################################################################
-# plugin: package
-###############################################################################
+# --- plugin: package --------------------------------------------------------
 
 %package -n gofer-package
 Summary: The package (RPM) plugin
@@ -236,7 +272,7 @@ Requires: yum
 Requires: %{name} >= %{version}
 
 %description -n gofer-package
-Contains the package plugin.
+Provides the package plugin.
 This plug-in provides RMI access to package (RPM) management.
 
 %files -n gofer-package
@@ -246,13 +282,114 @@ This plug-in provides RMI access to package (RPM) management.
 %doc LICENSE
 
 
+# --- changelog --------------------------------------------------------------
+
 
 %changelog
-* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.77.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+* Mon Jun 16 2014 Jeff Ortel <jortel at redhat.com> 1.3.0-1
+- Update man page to reference github. (jortel at redhat.com)
+- Replace --console option with --foreground and use in systemd unit.
+  (jortel at redhat.com)
+- systemd support. (jortel at redhat.com)
 
-* Fri Nov 01 2013 Jeff Ortel <jortel at redhat.com> 0.77.1-1
-- 1023056 - use qpid builtin SSL transport. (jortel at redhat.com)
+* Mon Jun 09 2014 Jeff Ortel <jortel at redhat.com> 1.2.1-1
+- 1107244 - python 2.4 compat issues. (jortel at redhat.com)
+* Thu May 29 2014 Jeff Ortel <jortel at redhat.com> 1.2.0-1
+- Add authenticator param to ReplyConsumer constructor. (jortel at redhat.com)
+- python 2.4 compat. (jortel at redhat.com)
+
+* Wed May 28 2014 Jeff Ortel <jortel at redhat.com> 1.1.0-1
+- Pass original document during auth validation instead of destination uuid.
+  (jortel at redhat.com)
+- Better support for associating an authenticator with a consumer.
+  (jortel at redhat.com)
+
+* Tue May 20 2014 Jeff Ortel <jortel at redhat.com> 1.0.13-1
+- Fix setting logging levels in agent.conf. (jortel at redhat.com)
+- In the amqplib transport, message durable=True. (jortel at redhat.com)
+
+* Wed May 14 2014 Jeff Ortel <jortel at redhat.com> 1.0.12-1
+- 1097732 - broker configured during attach. (jortel at redhat.com)
+- Support loading plugins from the PYTHON path. (jortel at redhat.com)
+- Support custom plugin naming. (jortel at redhat.com)
+
+* Tue May 06 2014 Jeff Ortel <jortel at redhat.com> 1.0.10-1
+- Condition Requires: and import of simplejson. (jortel at redhat.com)
+* Fri May 02 2014 Jeff Ortel <jortel at redhat.com> 1.0.9-1
+- Fix url syntax for userid:password; get vhost from url path component.
+  (jortel at redhat.com)
+
+* Thu May 01 2014 Jeff Ortel <jortel at redhat.com> 1.0.8-1
+- Inject inbound_url to support reply when plugin is not found.
+  (jortel at redhat.com)
+- Pass and store transport by name (instead of object). (jortel at redhat.com)
+- Set transport package based on actual packaged. (jortel at redhat.com)
+- Declare agent (target) queue in RMI policy send. (jortel at redhat.com)
+- Create queues in the consumer instead of the reader. (jortel at redhat.com)
+
+* Tue Apr 22 2014 Jeff Ortel <jortel at redhat.com> 1.0.7-1
+- Support extends= in plugin descriptors.  Defines another plugin to extend.
+  (jortel at redhat.com)
+
+* Thu Apr 17 2014 Jeff Ortel <jortel at redhat.com> 1.0.6-1
+- Inject inbound transport name on request receipt and used to reply when
+  unable to route to a plugin. (jortel at redhat.com)
+- Trash plugin implements get_url() and get_transport(). (jortel at redhat.com)
+- Log when plugin not found and request is trashed. (jortel at redhat.com)
+- PathMonitor initialized to prevent initial notification. (jortel at redhat.com)
+- Add @initializer decorator and plugin support. (jortel at redhat.com)
+- Fix pending message leak when uuid not matched to a plugin.
+  (jortel at redhat.com)
+* Mon Mar 31 2014 Jeff Ortel <jortel at redhat.com> 1.0.5-1
+- Log to syslog instead of /var/log/gofer/. (jortel at redhat.com)
+- Support userid/password in the broker url. (jortel at redhat.com)
+- Remove librabbitmq transport. (jortel at redhat.com)
+- Add support for skipping SSL validation. (jortel at redhat.com)
+- Use qpid builtin SSL transport. (jortel at redhat.com)
+* Wed Mar 12 2014 Jeff Ortel <jortel at redhat.com> 1.0.4-1
+- Improved import between plugins. (jortel at redhat.com)
+
+* Tue Mar 11 2014 Jeff Ortel <jortel at redhat.com> 1.0.3-1
+- make queue non-exclusive by default. (jortel at redhat.com)
+
+* Mon Mar 10 2014 Jeff Ortel <jortel at redhat.com> 1.0.2-1
+- Log consumed messages. (jortel at redhat.com)
+
+* Mon Mar 10 2014 Jeff Ortel <jortel at redhat.com> 1.0.1-1
+- Improved agent logging. (jortel at redhat.com)
+
+* Mon Mar 10 2014 Jeff Ortel <jortel at redhat.com> 1.0.0-1
+- Detach before attach and make detach idempotent. (jortel at redhat.com)
+- Explicit manual plugin attach; get rid of plugin monitor thread.
+  (jortel at redhat.com)
+- Support virtual_host and host_validation configuration options.
+  (jortel at redhat.com)
+- Support userid and password configuration options. (jortel at redhat.com)
+- Change envelope/document and Envelope/Document. (jortel at redhat.com)
+- Support pluggable message authentication. (jortel at redhat.com)
+- Send 'accepted' status when RMI request is added to the pending queue.
+  (jortel at redhat.com)
+- Send 'rejected' status report when message validation failed.
+  (jortel at redhat.com)
+- Direct routing by uuid; no more blending of plugin APIs. (jortel at redhat.com)
+- Move Admin class from builtin plugin to internal. (jortel at redhat.com)
+- Improved pending queue. (jortel at redhat.com)
+- Improved thread pool. (jortel at redhat.com)
+- Purge unused filter in configuration. (jortel at redhat.com)
+- Discontinue support for configuration directives. (jortel at redhat.com)
+- Purge mocks in favor of python mock. (jortel at redhat.com)
+- Support multiple transports (amqplib, rabbmitmq, python-qpid).
+- Discontinue support for deprectated watchdog. (jortel at redhat.com)
+- Simplified RMI timeout.  No longer supporting timeout for RMI completion.
+  (jortel at redhat.com)
+* Tue Jan 14 2014 Jeff Ortel <jortel at redhat.com> 1.0.0-0.1
+- default asynchronous timeout to None. (jortel at redhat.com)
+  add 'send' as required by transports. (jortel at redhat.com)
+- watchdog removed; timeout flows revised. watchdog removed; add 'accepted'
+  status; add 'wait' option; redefine timeout option as single integer
+  pertaining to the accepted. (jortel at redhat.com)
+- Add 'match' criteria operator. (jortel at redhat.com)
+- Support plugable transports. (jortel at redhat.com)
 * Mon Sep 30 2013 Jeff Ortel <jortel at redhat.com> 0.77-1
 - Reduce logging do DEBUG on frequent messaging and RMI processing events.
   (jortel at redhat.com)
diff --git a/sources b/sources
index ec48ad8..2c6335e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-52ff0f9b63f091895c45615a88521a33  gofer-0.77.1.tar.gz
+ee1a97f0b53f7e2b6ea7cc1e0356499d  gofer-1.3.0.tar.gz


More information about the scm-commits mailing list