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

Name:           pywbem 
Version:        0.7.0
Release:        8.%{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 pywbem-20130128
#  tar -cJvf pywbem-20130128.tar.xz pywbem-20130128
Source0:        %{name}-%{revdate}.tar.xz
BuildRequires:  python-setuptools-devel 
BuildArch:      noarch
Requires:       python-twisted-core
Requires:       python-twisted-web
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.

%setup -q -n %{name}-%{revdate}

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}

%attr(755,root,root) %{_bindir}/mofcomp
%attr(755,root,root) %{_bindir}/pywbemcli

* 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
* Mon Jun 25 2009 David Nalley <> 0.7.0-1
- Initial packaging