[pywbem] Added subpackage with Twisted module to reduce dependencies of the main package.

Jan Šafránek jsafrane at fedoraproject.org
Wed Jul 24 14:04:29 UTC 2013


commit 8ae78c9f48c04e6f54d104c61b0867325afe4cc7
Author: Jan Safranek <jsafrane at redhat.com>
Date:   Wed Jul 24 16:04:15 2013 +0200

    Added subpackage with Twisted module to reduce dependencies of the main package.

 pywbem.spec |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/pywbem.spec b/pywbem.spec
index 1fb9ece..9f01b6e 100644
--- a/pywbem.spec
+++ b/pywbem.spec
@@ -4,7 +4,7 @@
 
 Name:           pywbem 
 Version:        0.7.0
-Release:        12.%{revdate}svn%{svnrev}%{?dist}
+Release:        13.%{revdate}svn%{svnrev}%{?dist}
 Summary:        Python WBEM Client and Provider Interface
 Group:          Development/Libraries
 License:        LGPLv2
@@ -16,8 +16,6 @@ URL:            http://pywbem.sourceforge.net
 Source0:        %{name}-%{revdate}.tar.xz
 BuildRequires:  python-setuptools-devel 
 BuildArch:      noarch
-Requires:       python-twisted-core
-Requires:       python-twisted-web
 
 # fix module imports in /usr/bin/mofcomp
 Patch0:         pywbem-20130411-mof_compiler-import.patch
@@ -36,6 +34,19 @@ at http://www.dmtf.org/standards/wbem.
 It also provides a Python provider interface, and is the fastest and 
 easiest way to write providers on the planet.
 
+%package twisted
+Group:          Development/Libraries
+Summary:        WBEM client bindings for Twisted Python
+Requires:       python-twisted-core
+Requires:       python-twisted-web
+Requires:       %{name} = %{version}-%{release}
+BuildArch:      noarch
+
+%description twisted
+This module contains factory classes that produce WBEM5Client instances
+that perform WBEM requests over HTTP using the
+twisted.protocols.http.HTTPClient base class.
+
 %prep
 %setup -q -n %{name}-%{revdate}
 %patch0 -p1 -b .mofcomp-imports
@@ -58,13 +69,21 @@ rm %{buildroot}/%{python_sitelib}/%{name}/mof_compiler.py[co]
 rm -rf %{buildroot}
 
 %files
-%{python_sitelib}/*
+# everything except twisted_client.py*
+%{python_sitelib}/*.egg-info
+%{python_sitelib}/pywbem/?[^w]*.py*
 %attr(755,root,root) %{_bindir}/mofcomp
 %attr(755,root,root) %{_bindir}/pywbemcli
 %doc README
 
+%files twisted
+%{python_sitelib}/pywbem/twisted_client.py*
+
 %changelog
-* Tue Jul 23 2013  <jsafrane at redhat.com> 0.7.0-11.20130702svn623
+* Wed Jul 24 2013  <jsafrane at redhat.com> 0.7.0-13.20130702svn623
+- Added subpackage with Twisted module to reduce dependencies of the main package.
+
+* Tue Jul 23 2013  <jsafrane at redhat.com> 0.7.0-12.20130702svn623
 - Fixed checking of CIMVERSION in CIM-XML.
 
 * Tue Jul  2 2013 Jan Safranek <jsafrane at redhat.com> 0.7.0-11.20130702svn622


More information about the scm-commits mailing list