rpms/pyactivemq/devel import.log, NONE, 1.1 pyactivemq-use-activemq-cpp-config.patch, NONE, 1.1 pyactivemq.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

stevetraylen stevetraylen at fedoraproject.org
Mon Dec 14 18:46:24 UTC 2009


Author: stevetraylen

Update of /cvs/pkgs/rpms/pyactivemq/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11544/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log pyactivemq-use-activemq-cpp-config.patch 
	pyactivemq.spec 
Log Message:
Inital Import: rhbz#538172



--- NEW FILE import.log ---
pyactivemq-0_1_0-1_fc13:HEAD:pyactivemq-0.1.0-1.fc13.src.rpm:1260816295

pyactivemq-use-activemq-cpp-config.patch:
 setup.py |   25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

--- NEW FILE pyactivemq-use-activemq-cpp-config.patch ---
diff -uNr pyactivemq-0.1.0.ORIG/setup.py pyactivemq-0.1.0/setup.py
--- pyactivemq-0.1.0.ORIG/setup.py	2009-11-14 11:58:55.567999708 +0100
+++ pyactivemq-0.1.0/setup.py	2009-11-17 20:53:58.450618046 +0100
@@ -17,6 +17,8 @@
 from distutils.util import get_platform
 import os.path
 import sys
+import subprocess
+from subprocess import Popen, PIPE
 
 if get_platform().startswith('win'):
     include_dirs = [
@@ -66,21 +68,26 @@
         ('PYACTIVEMQ_ENABLE_DOCSTRINGS', 0)
         ]
 else:
-    include_dirs = [
-        '/opt/activemq-cpp-2.2.1/include/activemq-cpp-2.2.1'
-        ]
+    if os.path.exists('/usr/bin/activemqcpp-config'):
+        include_dirs = [ subprocess.Popen(['/usr/bin/activemqcpp-config','--includes'],stdout=PIPE).communicate()[0][2:-1] ]
+        library_dirs = [ subprocess.Popen(['/usr/bin/activemqcpp-config','--libs'],stdout=PIPE).communicate()[0][2:-1] ]
+        extra_link_args = [] 
+    else:
+        include_dirs = [
+              '/opt/activemq-cpp-2.2.1/include/activemq-cpp-2.2.1'
+               ]
+        library_dirs = [
+              '/opt/activemq-cpp-2.2.1/lib'
+               ]
+        extra_link_args = [
+             '-Wl,-rpath,/opt/activemq-cpp-2.2.1/lib' ]
+
     libraries = [
         'activemq-cpp',
         'uuid',
         'boost_python'
         ]
-    library_dirs = [
-        '/opt/activemq-cpp-2.2.1/lib'
-        ]
     extra_compile_args = []
-    extra_link_args = [
-        '-Wl,-rpath,/opt/activemq-cpp-2.2.1/lib'
-        ]
     define_macros = [
         ('BOOST_PYTHON_NO_PY_SIGNATURES', 1),
         ('PYACTIVEMQ_ENABLE_DOCSTRINGS', 0)


--- NEW FILE pyactivemq.spec ---
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           pyactivemq
Version:        0.1.0
Release:        1%{?dist}
Summary:        Python wrapper around activemq-cpp for messaging

Group:          Development/Languages
License:        ASL 2.0
URL:            http://code.google.com/p/pyactivemq/
Source0:        http://pyactivemq.googlecode.com/files/pyactivemq-%{version}.tar.gz
# Allow setup.py to use activemq-cpp-config to file include paths etc.
# http://code.google.com/p/pyactivemq/issues/detail?id=30
Patch0:         pyactivemq-use-activemq-cpp-config.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel
BuildRequires:  boost-devel
BuildRequires:  activemq-cpp-devel

%description
pyactivemq is a Python module for communicating with the 
message brokers which implement the Java Message Service 
specification or stomp.

%prep
%setup -q
%patch0 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt
%{python_sitearch}/*

%changelog
* Tue Nov 17 2009 Steve Traylen <steve.traylen at cern.ch> - 0.1.0-1
First version of package.



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pyactivemq/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	14 Dec 2009 17:30:14 -0000	1.1
+++ .cvsignore	14 Dec 2009 18:46:23 -0000	1.2
@@ -0,0 +1 @@
+pyactivemq-0.1.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pyactivemq/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	14 Dec 2009 17:30:14 -0000	1.1
+++ sources	14 Dec 2009 18:46:23 -0000	1.2
@@ -0,0 +1 @@
+2ba32ab034c91a6fc6d0deb581d6ea27  pyactivemq-0.1.0.tar.gz




More information about the fedora-extras-commits mailing list