Blob Blame Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global svnrev  626
%global revdate 20131121

Name:           pywbem 
Version:        0.7.0
Release:        17.%{revdate}svn%{svnrev}%{?dist}
Summary:        Python WBEM Client and Provider Interface
Group:          Development/Libraries
License:        LGPLv2
# The source for this package was pulled from upstream svn repository.
# Use the following commands to get the archive:
#  svn export -r 613 svn:// pywbem-20130128
#  tar -cJvf pywbem-20130128.tar.xz pywbem-20130128
Source0:        %{name}-%{revdate}.tar.xz
BuildRequires:  python-setuptools-devel 
BuildArch:      noarch

# fix module imports in /usr/bin/mofcomp
Patch0:         pywbem-20130411-mof_compiler-import.patch

A Python library for making CIM (Common Information Model) operations over HTTP 
using the WBEM CIM-XML protocol. It is based on the idea that a good WBEM 
client should be easy to use and not necessarily require a large amount of 
programming knowledge. It is suitable for a large range of tasks from simply 
poking around to writing web and GUI applications. 

WBEM, or Web Based Enterprise Management is a manageability protocol, like 
SNMP, standardised by the Distributed Management Task Force (DMTF) available 

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.

%setup -q -n %{name}-%{revdate}
%patch0 -p1 -b .mofcomp-imports

# dirty workaround to fix the module path
ln -s . pywbem
CFLAGS="%{optflags}" %{__python} build

rm -rf %{buildroot}
%{__python} install -O1 --skip-build --root %{buildroot}
mkdir -p -m755 %{buildroot}%{_bindir}
mv %{buildroot}/%{python_sitelib}/%{name}/ %{buildroot}/%{_bindir}/pywbemcli
mv %{buildroot}/%{python_sitelib}/%{name}/ %{buildroot}/%{_bindir}/mofcomp
rm %{buildroot}/%{python_sitelib}/%{name}/[co]
rm %{buildroot}/%{python_sitelib}/%{name}/[co]

rm -rf %{buildroot}

# everything except*
%attr(755,root,root) %{_bindir}/mofcomp
%attr(755,root,root) %{_bindir}/pywbemcli

%files twisted

* Thu Nov 21 2013 Jan Safranek <> 0.7.0-17.20131121svn626
- Added '-d' option to /usr/bin/mofcomp to just check mof files and their

* Tue Aug 27 2013 Jan Safranek <> 0.7.0-16.20130827svn625
- Fixed parsing of IPv6 addresses.

* Fri Aug 09 2013 Michal Minar <> 0.7.0-15.20130723svn623
- Fixed certificate verification issue.

* Sun Aug 04 2013 Fedora Release Engineering <> - 0.7.0-14.20130723svn623
- Rebuilt for

* Wed Jul 24 2013  <> 0.7.0-13.20130702svn623
- Added subpackage with Twisted module to reduce dependencies of the main package.

* Tue Jul 23 2013  <> 0.7.0-12.20130702svn623
- Fixed checking of CIMVERSION in CIM-XML.

* Tue Jul  2 2013 Jan Safranek <> 0.7.0-11.20130702svn622
- New upstream version.
- Method parameters are now case-insensitive.

* Fri May 24 2013 Tomas Bzatek <> 0.7.0-10.20130411svn619
- Fix module imports in /usr/bin/mofcomp

* Thu Apr 11 2013 Jan Safranek <> 0.7.0-9.20130411svn619
- New upstream version.
- Removed debug 'print' statements.

* Mon Jan 28 2013 Michal Minar <> 0.7.0-8.20130128svn613
- New upstream version.
- Added post-release snapshot version info.
- Removed obsoleted BuildRoot,

* Sat Jul 21 2012 Fedora Release Engineering <> - 0.7.0-7
- Rebuilt for

* Sat Jan 14 2012 Fedora Release Engineering <> - 0.7.0-6
- Rebuilt for

* Wed Feb 09 2011 Fedora Release Engineering <> - 0.7.0-5
- Rebuilt for

* Thu Jul 22 2010 David Malcolm <> - 0.7.0-4
- Rebuilt for

* Fri Jan 01 2010 David Nalley <> 0.7.0-3
- refined requires for epel compat
* Sun Jun 28 2009 David Nalley <> 0.7.0-2
- Added some verbiage regarding what WBEM is and expanding WBEM and CIM acronyms
- Added python-twisted as a dependency
* Thu Jun 25 2009 David Nalley <> 0.7.0-1
- Initial packaging