[rhmessaging-commits] rhmessaging commits: r1577 - mgmt.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Jan 18 17:04:29 EST 2008


Author: nunofsantos
Date: 2008-01-18 17:04:29 -0500 (Fri, 18 Jan 2008)
New Revision: 1577

Added:
   mgmt/cumin.spec
Log:
add specfile for RPM packaging

Added: mgmt/cumin.spec
===================================================================
--- mgmt/cumin.spec	                        (rev 0)
+++ mgmt/cumin.spec	2008-01-18 22:04:29 UTC (rev 1577)
@@ -0,0 +1,78 @@
+Summary:        management component of MRG
+Name:           cumin
+Version:        0.1
+Release:        1%{?dist}
+License:        LGPL
+Group:          System Environment/Libraries
+URL:            http://redhat.com/mrg
+Source0:        %{name}-%{version}.tar.gz
+# svn co http://anonsvn.jboss.org/repos/rhmessaging/mgmt mgmt
+# cd mgmt; make dist
+# tar -cvzhf cumin-0.1.tar.gz dist
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+BuildRequires:  python
+BuildRequires:  python-devel
+
+Requires:       python
+
+%description
+Cumin is the management component of MRG - Messaging, Realtime and Grid.
+Provides a unified management interface for the Messaging, Realtime and Grid
+components of MRG.
+
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%prep
+%setup -q -n dist
+
+%build
+#empty
+
+%install
+rm -rf $RPM_BUILD_ROOT
+CUMIN_HOME=%{_datadir}/cumin
+install -d ${RPM_BUILD_ROOT}${CUMIN_HOME}
+
+install -d ${RPM_BUILD_ROOT}${CUMIN_HOME}/resources
+install -pm 0644 resources/* ${RPM_BUILD_ROOT}${CUMIN_HOME}/resources
+
+install -d ${RPM_BUILD_ROOT}${CUMIN_HOME}/sql
+install -pm 0644 sql/* ${RPM_BUILD_ROOT}${CUMIN_HOME}/sql
+
+install -d ${RPM_BUILD_ROOT}${CUMIN_HOME}/doc
+install -pm 0644 doc/* ${RPM_BUILD_ROOT}${CUMIN_HOME}/doc
+
+install -d ${RPM_BUILD_ROOT}%{_bindir}
+install -pm 0644 bin/* $RPM_BUILD_ROOT%{_bindir}
+
+install -d ${RPM_BUILD_ROOT}%{_sysconfdir}
+install -pm 0644 etc/* $RPM_BUILD_ROOT%{_sysconfdir}
+
+install -d ${RPM_BUILD_ROOT}${CUMIN_HOME}/lib/python
+cd lib/python
+for dir in cumin mint wooly; do
+  install -d $RPM_BUILD_ROOT%{python_sitelib}/$dir
+  install -pm 0644 $dir/* $RPM_BUILD_ROOT%{python_sitelib}/$dir
+  ln -s %{python_sitelib}/$dir ${RPM_BUILD_ROOT}${CUMIN_HOME}/lib/python/$dir 
+done
+cd ../..
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc doc/*
+%{_bindir}/cumin*
+%{_sysconfdir}/cumin.conf
+%{_datadir}/cumin
+%{python_sitelib}/cumin
+%{python_sitelib}/mint
+%{python_sitelib}/wooly
+
+%changelog
+* Fri Jan 18 2008 Nuno Santos <nsantos at redhat.com> - 0.1-1
+- Initial build.
+




More information about the rhmessaging-commits mailing list