|
|
2fd1617 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
2fd1617 |
|
|
|
2fd1617 |
Name: python-stomper
|
|
|
2fd1617 |
Version: 0.2.2
|
|
|
8dcdbe0 |
Release: 9%{?dist}
|
|
|
2fd1617 |
Summary: A python client implementation of the STOMP protocol
|
|
|
2fd1617 |
|
|
|
2fd1617 |
Group: Development/Languages
|
|
|
2fd1617 |
License: ASL 2.0
|
|
|
2fd1617 |
URL: http://code.google.com/p/stomper/
|
|
|
2fd1617 |
Source0: http://stomper.googlecode.com/files/stomper-%{version}.tar.gz
|
|
|
8dcdbe0 |
Patch0: %{name}-uuid.patch
|
|
|
2fd1617 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
2fd1617 |
|
|
|
2fd1617 |
BuildArch: noarch
|
|
|
2fd1617 |
BuildRequires: python-devel
|
|
|
2fd1617 |
BuildRequires: python-setuptools
|
|
|
8dcdbe0 |
BuildRequires: python-nose
|
|
|
8dcdbe0 |
|
|
|
8dcdbe0 |
%if 0%{?el5}
|
|
|
8dcdbe0 |
BuildRequires: python-uuid
|
|
|
8dcdbe0 |
Requires: python-uuid
|
|
|
8dcdbe0 |
%endif
|
|
|
2fd1617 |
|
|
|
2fd1617 |
%description
|
|
|
2fd1617 |
This is a python client implementation of the STOMP protocol. The client is
|
|
|
2fd1617 |
attempting to be transport layer neutral. This module provides functions to
|
|
|
2fd1617 |
create and parse STOMP messages in a programatic fashion.
|
|
|
2fd1617 |
|
|
|
2fd1617 |
%prep
|
|
|
2fd1617 |
%setup -q -n stomper-%{version}
|
|
|
8dcdbe0 |
%patch0 -p0 -b .uuid
|
|
|
2fd1617 |
|
|
|
2fd1617 |
%build
|
|
|
2fd1617 |
%{__python} setup.py build
|
|
|
2fd1617 |
|
|
|
2fd1617 |
%install
|
|
|
2fd1617 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2fd1617 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
2fd1617 |
rm -rf $RPM_BUILD_ROOT%{python_sitelib}/stomper/examples
|
|
|
2fd1617 |
rm -rf $RPM_BUILD_ROOT%{python_sitelib}/stomper/tests
|
|
|
2fd1617 |
|
|
|
8dcdbe0 |
%check
|
|
|
8dcdbe0 |
PYTHONPATH=$(pwd) nosetests
|
|
|
8dcdbe0 |
|
|
|
2fd1617 |
%clean
|
|
|
2fd1617 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2fd1617 |
|
|
|
2fd1617 |
%files
|
|
|
2fd1617 |
%defattr(-,root,root,-)
|
|
|
2fd1617 |
%doc lib/stomper/doc lib/stomper/examples lib/stomper/tests
|
|
|
2fd1617 |
%{python_sitelib}/*
|
|
|
2fd1617 |
|
|
|
2fd1617 |
%changelog
|
|
|
8dcdbe0 |
* Thu Sep 03 2009 Luke Macken <lmacken@redhat.com> - 0.2.2-9
|
|
|
8dcdbe0 |
- Require python-uuid when using Python2.4 only
|
|
|
8dcdbe0 |
- Run the test suite in %%check
|
|
|
8dcdbe0 |
|
|
|
8dcdbe0 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-8
|
|
|
8dcdbe0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
8dcdbe0 |
|
|
|
2fd1617 |
* Thu Apr 09 2009 Silas Sewell <silas at sewell ch> - 0.2.2-7
|
|
|
2fd1617 |
- Remove Python version dependency
|
|
|
2fd1617 |
|
|
|
2fd1617 |
* Sun Mar 29 2009 Silas Sewell <silas at sewell ch> - 0.2.2-6
|
|
|
2fd1617 |
- Fix dependencies
|
|
|
2fd1617 |
|
|
|
2fd1617 |
* Thu Mar 26 2009 Silas Sewell <silas at sewell ch> - 0.2.2-5
|
|
|
2fd1617 |
- Update package name to conform to Fedora naming standards
|
|
|
2fd1617 |
- Change define to global
|
|
|
2fd1617 |
|
|
|
2fd1617 |
* Fri Mar 20 2009 Silas Sewell <silas at sewell ch> - 0.2.2-4
|
|
|
2fd1617 |
- Update upstream package to remove hidden files
|
|
|
2fd1617 |
|
|
|
2fd1617 |
* Thu Mar 05 2009 Silas Sewell <silas at sewell ch> - 0.2.2-3
|
|
|
2fd1617 |
- Manually remove hidden files
|
|
|
2fd1617 |
|
|
|
2fd1617 |
* Wed Dec 17 2008 Silas Sewell <silas at sewell ch> - 0.2.2-2
|
|
|
2fd1617 |
- Increase Python requirements to 2.5 because stomper uses uuid
|
|
|
2fd1617 |
|
|
|
2fd1617 |
* Wed Dec 17 2008 Silas Sewell <silas at sewell ch> - 0.2.2-1
|
|
|
2fd1617 |
- Initial package
|