[aeolus-audrey-agent/f17] pushing agent 0.5.0

Dan Radez radez at fedoraproject.org
Fri May 4 19:55:43 UTC 2012


commit 85afbde38cf1a13fe1bb0cd046185341f14cb607
Author: Dan Radez <dradez at redhat.com>
Date:   Fri May 4 15:54:18 2012 -0400

    pushing agent 0.5.0

 .gitignore               |    1 +
 aeolus-audrey-agent.spec |   78 ++++++++++++++++++++++++++++++++++++++-------
 sources                  |    2 +-
 3 files changed, 68 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 98c9fe2..731a1f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /aeolus-audrey-agent-0.4.0.tar.gz
 /aeolus-audrey-agent-0.4.2.tar.gz
+/aeolus-audrey-agent-0.5.0.tar.gz
diff --git a/aeolus-audrey-agent.spec b/aeolus-audrey-agent.spec
index d12245b..0ab7033 100644
--- a/aeolus-audrey-agent.spec
+++ b/aeolus-audrey-agent.spec
@@ -13,31 +13,37 @@
 #   See the License for the specific language governing permissions and
 #  limitations under the License.
 #
+
+%if 0%{?rhel} == 5
+# sitelib for noarch packages
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
+
 Name:       aeolus-audrey-agent
-Version:    0.4.2
-Release:    15%{?dist}
+Version:    0.5.0
+Release:    0%{?dist}.20120504194102git64749bf
 Summary:    The Aeolus Audrey Startup Agent
 
 Group:      Applications/System
 License:    ASL 2.0
 URL:        http://aeolusproject.org
-Source0:    http://joev.fedorapeople.org/audrey-agent/aeolus-audrey-agent-%{version}.tar.gz
+Source0:    https://github.com/aeolusproject/audrey/tarball/master/aeolus-audrey-agent-%{version}.tar.gz
 
 # All of these are required for building since during the build
 # process "audrey --help" is executed to generate the man page.
 BuildRequires: help2man
 BuildRequires: facter python-httplib2 python-oauth2
-%if (0%{?fedora} <= 14 || 0%{?rhel} <= 6)
-BuildRequires: python-argparse
-BuildRequires: python-setuptools
-%endif
-
 Requires:   facter python-httplib2 python-oauth2
 Requires:   python-argparse
-%if (0%{?fedora} <= 14 || 0%{?rhel} <= 6)
+
+%if 0%{?rhel} == 5 || 0%{?rhel} == 6
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires: python-argparse
+BuildRequires: python-setuptools
 Requires:   python-argparse
 Requires:   python-setuptools
+%else
+BuildRequires: systemd-units
 %endif
 
 BuildArch:  noarch
@@ -55,19 +61,67 @@ make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
+
+# copy over the audrey agent bits
+mkdir -p %{buildroot}%{python_sitelib}/audrey
 mkdir -p %{buildroot}%{_bindir}
+install -m644 src/audrey/*py* %{buildroot}%{python_sitelib}/audrey
+install -m755 scripts/audrey %{buildroot}%{_bindir}/audrey
+
+#install man files
 mkdir -p %{buildroot}%{_mandir}/man8
+install -m644 audrey.8 %{buildroot}%{_mandir}/man8
 
-# copy over the audrey agent bits
-install audrey_agent.py %{buildroot}%{_bindir}/audrey
-cp audrey.8 %{buildroot}%{_mandir}/man8
+if [ 0%{?rhel} == 05 ] || [ 0%{?rhel} == 06 ]; then
+  # install the sysv service script
+  mkdir -p %{buildroot}/%{_initrddir}
+  install -Dp -m755 scripts/audrey.sysv %{buildroot}%{_initrddir}/audrey
+else
+  # install the systemd unit file
+  mkdir -p %{buildroot}/%{_unitdir}/
+  install -m644 scripts/audrey.service %{buildroot}/%{_unitdir}/
+fi
+
+%post
+if [ 0%{?rhel} == 05 ] || [ 0%{?rhel} == 06 ]; then
+/sbin/chkconfig --add audrey
+/sbin/chkconfig audrey on
+else
+/bin/systemctl enable audrey.service > /dev/null
+fi
+
+
+%preun
+if [ "$1" = 0 ] ; then
+if [ 0%{?rhel} == 05 ] || [ 0%{?rhel} == 06 ]; then
+/sbin/chkconfig --del audrey
+else
+/bin/systemctl disable audrey.service > /dev/null
+fi
+fi
 
 %files
+%defattr(-,root,root,-)
 %{_bindir}/audrey
+%{python_sitelib}/audrey/*
 %{_mandir}/man8/audrey.8*
+%if 0%{?rhel} == 5 || 0%{?rhel} == 6
+%{_initrddir}/audrey
+%else
+%{_unitdir}/audrey.service
+%endif
 %doc COPYING
 
 %changelog
+* Fri Mar 16 2012 Joe VLcek <jvlcek at redhat.com> 0.4.4-4
+- Added auto cloud-info identification
+* Mon Mar 05 2012 Dan Radez <dradez at redhat.com> 0.4.4-3
+- https://bugzilla.redhat.com/show_bug.cgi?id=798787
+- chkconfig on for http and configserver
+* Wed Jan 25 2012 Dan Radez <dradez at redhat.com> 0.4.4-2
+- adding rc.local modifications
+- putting the agent files in site-packages now that it's split up
+- adding cloud-info file support for each provider
 * Wed Dec 07 2011 Joe VLcek <jvlcek at redhat.com> 0.4.0-14
 - Define BuildRoot to address RHEL5 rpmbuild incompatibility
 * Tue Dec 06 2011 Joe VLcek <jvlcek at redhat.com> 0.4.0-13
diff --git a/sources b/sources
index 2036ad0..0bf050b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fd9a9d385a9d7435f94e0538f4e680d3  aeolus-audrey-agent-0.4.2.tar.gz
+4063f187c2eff62a9cd20c92a4211e59  aeolus-audrey-agent-0.5.0.tar.gz


More information about the scm-commits mailing list