moksha.spec | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
New commits:
commit 2f38308adfe90d069dbef4c5dddd4a5389d29df9
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Wed May 27 17:49:01 2009 -0400
first pass at rpm spec file
diff --git a/moksha.spec b/moksha.spec
new file mode 100644
index 0000000..378e5e8
--- /dev/null
+++ b/moksha.spec
@@ -0,0 +1,85 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?pyver: %define pyver %(%{__python} -c "import sys ; print
sys.version[:3]")}
+
+Name: moksha
+Version: 0.1dev
+Release: 0.1%{?dist}
+Summary: A flexable platform for creating live collaborative web applications
+Group: Applications/Internet
+License: AGPLv3
+URL:
https://fedorahosted.org/moksha
+Source0: moksha-%{version}.tar.bz2
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: python-setuptools
+BuildRequires: python-setuptools-devel
+BuildRequires: python-devel
+BuildRequires: TurboGears2
+BuildRequires: python-pygments
+
+Requires: TurboGears2
+Requires: ToscaWidgets >= 0.9.1,
+Requires: zope.sqlalchemy,
+Requires: Shove,
+Requires: feedcache,
+Requires: feedparser,
+Requires: tw.jquery>=0.9.4.1,
+Requires: repoze.squeeze,
+Requires: repoze.profile,
+Requires: orbited,
+Requires: twisted,
+Requires: python-stomper,
+Requires: Sphinx,
+Requires: Paver,
+Requires: tw.forms,
+Requires: python-morbid
+Requires: ptz
+Requires: pyevent
+
+%description
+Moksha is a platform for creating real-time collaborative web applications. It
+provides a set of Python and JavaScript API's that make it simple to create
+rich applications that can acquire, manipulate, and visualize data from
+external services. It is a unified framework build using the best available
+open source technologies such as TurboGears2, jQuery, AMQP, and Orbited. More
+information can be found on the Moksha Project Page at
+
+%prep
+%setup -q
+
+%build
+%{__python} setup.py build
+
+%install
+%{__rm} -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build \
+ --install-data=%{_datadir} --root %{buildroot}
+
+%{__mkdir_p} %{buildroot}%{_datadir}/%{name}/apache
+%{__mkdir_p} -m 0755 %{buildroot}/%{_localstatedir}/log/%{name}
+%{__mkdir_p} -m 0700 %{buildroot}/%{_localstatedir}/cache/%{name}
+
+%{__install} -m 640 apache/%{name}.conf %{buildroot}%{_datadir}/%{name}/apache
+
+%{__install} apache/%{name}.wsgi %{buildroot}%{_datadir}/%{name}/%{name}.wsgi
+%{__install} sample-production.ini %{buildroot}%{_datadir}/%{name}/production.ini
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README
+%{python_sitelib}/%{name}/
+%attr(-,apache,root) %{_datadir}/%{name}
+%attr(-,apache,root) %{_localstatedir}/log/%{name}
+%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info/
+%attr(-,apache,apache) %dir %{_localstatedir}/cache/%{name}
+
+%changelog
+* Wed May 27 2009 John (J5) Palmieri <johnp(a)redhat.com> - 0.1-0.1
+- first package
+