[qpid-cpp] Add qpid-tools subpackage (to be moved out at a later date)
Nuno Santos
nsantos at fedoraproject.org
Tue Jan 11 17:11:12 UTC 2011
commit 59b3ee331e6ce9081a234785386986632d8b809d
Author: Nuno Santos <nsantos at redhat.com>
Date: Tue Jan 11 12:10:42 2011 -0500
Add qpid-tools subpackage (to be moved out at a later date)
qpid-cpp.spec | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/qpid-cpp.spec b/qpid-cpp.spec
index 4a92d7a..82ee8d5 100644
--- a/qpid-cpp.spec
+++ b/qpid-cpp.spec
@@ -79,8 +79,10 @@
%global server_store %{MRG_non_core}
%if %{fedora}
%global rh_tests 0
+%global qpid_tools 1
%else
%global rh_tests %{MRG_non_core}
+%global qpid_tools 0
%endif
%global name qpid-cpp
@@ -772,8 +774,40 @@ to receive at all.
%endif
+# === Package: qpid-tools ===
+
+%if %{qpid_tools}
+
+%package -n qpid-tools
+Summary: Management and diagnostic tools for Apache Qpid
+Group: System Environment/Tools
+Requires: python-qpid >= 0.8
+Requires: python-qmf = %{version}
+BuildArch: noarch
+
+%description -n qpid-tools
+Management and diagnostic tools for Apache Qpid brokers and clients.
+
+%files -n qpid-tools
+%defattr(-,root,root,-)
+%{_bindir}/qpid-cluster
+%{_bindir}/qpid-cluster-store
+%{_bindir}/qpid-config
+%{_bindir}/qpid-printevents
+%{_bindir}/qpid-queue-stats
+%{_bindir}/qpid-route
+%{_bindir}/qpid-stat
+%{_bindir}/qpid-tool
+%doc LICENSE NOTICE
+%if "%{python_version}" >= "2.6"
+%{python_sitelib}/qpid_tools-*.egg-info
+%endif
+
+%endif
+
# ===
+
%prep
%setup -q -n qpid-%{version}
%setup -q -T -D -b 1 -n qpid-%{version}
@@ -862,7 +896,6 @@ pushd ../extras/qmf
popd
%endif
-
# Store
pushd ../../store-%{qpid_release}.%{store_svnrev}
%if %{rhel_4}
@@ -913,6 +946,9 @@ pushd docs/api
make html
popd
+pushd ../tools
+./setup.py install --skip-build --root $RPM_BUILD_ROOT
+popd
# remove things we don't want to package
rm -f %{buildroot}%_libdir/*.a
More information about the scm-commits
mailing list