diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-20 16:09:20 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-20 16:09:20 -0400 |
commit | 7a70b5bb80c69dafc345dfd4df577bfb1e983ee9 (patch) | |
tree | 2b3ebe15ab9c14a438b4cea2b61b31d0512450c8 /func.spec | |
parent | 322c6fd1fe1aa02b740d646a3c02f8ec46515fa3 (diff) | |
download | func-7a70b5bb80c69dafc345dfd4df577bfb1e983ee9.tar.gz func-7a70b5bb80c69dafc345dfd4df577bfb1e983ee9.tar.xz func-7a70b5bb80c69dafc345dfd4df577bfb1e983ee9.zip |
first pass at packaging stuff
version is 0.11-1 (this one goes to .11)
"make rpms" should build a rpm from the setup.py and func.spec
Diffstat (limited to 'func.spec')
-rw-r--r-- | func.spec | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/func.spec b/func.spec new file mode 100644 index 0000000..2ad7d6f --- /dev/null +++ b/func.spec @@ -0,0 +1,61 @@ + +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Summary: func 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 + +%files +%{_bindir}/funcd +/etc/init.d/funcd +#%dir /var/lib/virt-factory +%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 %{python_sitelib}/func/server/yaml +%{python_sitelib}/func/server/yaml/*.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 Adrian Likins <alikins@redhat.com> - 0.0.11-1 +- initial release (this one goes to .11) |