summaryrefslogtreecommitdiffstats
path: root/func.spec
diff options
context:
space:
mode:
authorSeth Vidal <skvidal@fedoraproject.org>2007-09-20 21:28:51 -0400
committerSeth Vidal <skvidal@fedoraproject.org>2007-09-20 21:28:51 -0400
commit8d168259f1cb0af25a7ee342bd1c32cd5bfdd424 (patch)
tree9c1d80b6da18a902b03ba7b21ec6bd0a60aabbfa /func.spec
parenta83c4bcc40aae7c8b8058d831667ee1e07a969dc (diff)
parent98010f591948fb4bf297c1c0c32def42f766edca (diff)
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/func
* 'master' of ssh://git.fedoraproject.org/git/hosted/func: (27 commits) just a friendly reminder we are not vf_server, change I!*N domain Add virt module. Add test code for virt. add a very simple, very dumb commandline client: Remove messages.pot from po dir, since its automatically generated Get rid of extra / in module loading error pychecker cleanups Add po dir to git Prevent XMLRPC server from printing to console. Catch FuncException when the config file is missing and exit gracefully Implement a quickie service control module Removing VF items + misc cleanup Clean up some speclint warnings Baseobj bites the dust. remove all the --debug "try to run from the src tree" crap debug spew cleanup to protect the unwashed masses from foo poisoning fix up config_data to use ConfigParser correctly attempt to let us run with --debug flag to run from src checkout attempts at letting us run from a installed, or local modules ...
Diffstat (limited to 'func.spec')
-rw-r--r--func.spec66
1 files changed, 66 insertions, 0 deletions
diff --git a/func.spec b/func.spec
new file mode 100644
index 0000000..71c2dcf
--- /dev/null
+++ b/func.spec
@@ -0,0 +1,66 @@
+
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Summary: Remote config, monitoring, and management api
+Name: func
+Source1: version
+Version: %(echo `awk '{ print $1 }' %{SOURCE1}`)
+Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist}
+Source0: %{name}-%{version}.tar.gz
+License: GPL+
+Group: Applications/System
+Requires: python >= 2.3
+Requires: rhpl
+Requires: yum-utils
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildArch: noarch
+Url: https://hosted.fedoraproject.org/projects/func/
+
+%description
+
+func is a remote api for mangement, configation, and monitoring of systems.
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --root=$RPM_BUILD_ROOT
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+
+%files
+%{_bindir}/funcd
+/etc/init.d/funcd
+%config(noreplace) /etc/func/settings
+%dir %{python_sitelib}/func
+%dir %{python_sitelib}/func/server
+%dir %{python_sitelib}/func/client
+%{python_sitelib}/func/server/*.py*
+%{python_sitelib}/func/client/*.py*
+
+%dir %{python_sitelib}/func/server/modules
+%{python_sitelib}/func/server/modules/*.py*
+%dir /var/log/func
+
+%post
+/sbin/chkconfig --add funcd
+exit 0
+
+%preun
+if [ "$1" = 0 ] ; then
+ /sbin/service funcd stop > /dev/null 2>&1
+ /sbin/chkconfig --del funcd
+fi
+
+
+%changelog
+* Thu Sep 20 2007 James Bowes <jbowes@redhat.com> - 0.0.11-2
+- Clean up some speclint warnings
+
+* Thu Sep 20 2007 Adrian Likins <alikins@redhat.com> - 0.0.11-1
+- initial release (this one goes to .11)