I don't know exactly how all the client-side tools will be handled for
inclusion in Fedora, but I decided to take a stab at one. I cleaned
up jabberpy.spec and it now complies with Fedora guidelines. I think
it will still fine within the git tree as well.
I tested briefly on EL3, 4 and 5 (Centos/RHEL), and everything appears
to work fine.
The spec is quite a bit different, but now should look more Fedora-y.
Let me know if there are questions/concerns about the patch.
Also, if you want community members to start submitting these RPMs for
review in Fedora, I am happy to help.
stahnma
From 8aa539f9588e34383241338ff6b10a7b78ebe3cf Mon Sep 17 00:00:00 2001
From: stahnma <[EMAIL PROTECTED]>
Date: Tue, 14 Oct 2008 11:01:03 -0500
Subject: [PATCH] Readying jabberpy for Fedora inclusion.
Tested on EL 3 4 5
Should pass Fedora Package review
---
spec-tree/python/jabberpy/jabberpy.spec | 51 ++++++++++++++++++-------------
1 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/spec-tree/python/jabberpy/jabberpy.spec b/spec-tree/python/jabberpy/jabberpy.spec
index dea2eb0..eb3cb1d 100644
--- a/spec-tree/python/jabberpy/jabberpy.spec
+++ b/spec-tree/python/jabberpy/jabberpy.spec
@@ -1,17 +1,22 @@
-Summary: Python xmlstream and jabber IM protocol libs
-Name: jabberpy
-Version: 0.5
-Release: 0.15%{?dist}
-Source0: %{name}-%{version}-0.tar.gz
-Patch0: jabberpy-no-init.patch
-Patch1: jabberpy-clean-sockets.patch
-License: LGPL
-Group: Development/Libraries
-BuildRoot: %{_tmppath}/%{name}-buildroot
-Prefix: %{_prefix}
-BuildArchitectures: noarch
-Vendor: Matthew Allum <[EMAIL PROTECTED]>
-Url: http://jabberpy.sf.net/
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+Name: jabberpy
+Version: 0.5
+# Used like this because upstream releases like 0.5-0
+Release: 0.15%{?dist}
+Summary: Python xmlstream and jabber IM protocol libs
+
+Group: Development/Libraries
+License: LGPLv2+
+URL: http://sourceforge.net/projects/jabberpy/
+Source0: http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}-0.tar.gz
+Patch0: jabberpy-no-init.patch
+Patch1: jabberpy-clean-sockets.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: python
+Requires: python
%description
jabber.py is a Python module for the jabber instant messaging
@@ -20,27 +25,31 @@ leaving the programmer to concentrate on developing quality jabber
based applications with Python.
%prep
-%setup -n %{name}-%{version}-0
+%setup -q -n %{name}-%{version}-0
+chmod -x examples/*.py
%patch0 -p1 -b .no-init
%patch1 -p1 -b .clean-sockets
%build
-%{__python} setup.py build
+%{__python} setup.py build
%install
+rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
-%if 0%{?rhel} == 5
-sed -i -e '[EMAIL PROTECTED](.\+\)[EMAIL PROTECTED]@' INSTALLED_FILES
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f INSTALLED_FILES
+%files
%defattr(-,root,root)
+%doc examples README
+%{python_sitelib}/*
+
-# $Id: jabberpy.spec 150212 2008-03-27 15:16:33Z jpazdzio $
%changelog
+* Mon Oct 10 2008 Michael Stahnke <[EMAIL PROTECTED]> 0.5-0.16
+- Clean up for Fedora Review and submission
+
* Wed Sep 3 2008 Jesus Rodriguez <[EMAIL PROTECTED]> 0.5-0.15
- remove reliance on external version file
--
1.5.4.3
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel