3c8d0eb
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
4c04cce
%global svnrev  625
f1f55c4
%global revdate 20130827
d0182e5
3c8d0eb
Name:           pywbem 
3c8d0eb
Version:        0.7.0
4c04cce
Release:        16.%{revdate}svn%{svnrev}%{?dist}
3c8d0eb
Summary:        Python WBEM Client and Provider Interface
3c8d0eb
Group:          Development/Libraries
3c8d0eb
License:        LGPLv2
3c8d0eb
URL:            http://pywbem.sourceforge.net
d0182e5
# The source for this package was pulled from upstream svn repository.
d0182e5
# Use the following commands to get the archive:
85241d2
#  svn export -r 613 svn://svn.code.sf.net/p/pywbem/code/pywbem/trunk pywbem-20130128
d0182e5
#  tar -cJvf pywbem-20130128.tar.xz pywbem-20130128
d0182e5
Source0:        %{name}-%{revdate}.tar.xz
3c8d0eb
BuildRequires:  python-setuptools-devel 
3c8d0eb
BuildArch:      noarch
5f26681
f0a5083
# fix module imports in /usr/bin/mofcomp
f0a5083
Patch0:         pywbem-20130411-mof_compiler-import.patch
f0a5083
3c8d0eb
%description
3c8d0eb
A Python library for making CIM (Common Information Model) operations over HTTP 
3c8d0eb
using the WBEM CIM-XML protocol. It is based on the idea that a good WBEM 
3c8d0eb
client should be easy to use and not necessarily require a large amount of 
3c8d0eb
programming knowledge. It is suitable for a large range of tasks from simply 
3c8d0eb
poking around to writing web and GUI applications. 
3c8d0eb
3c8d0eb
WBEM, or Web Based Enterprise Management is a manageability protocol, like 
3c8d0eb
SNMP, standardised by the Distributed Management Task Force (DMTF) available 
3c8d0eb
at http://www.dmtf.org/standards/wbem.
3c8d0eb
3c8d0eb
It also provides a Python provider interface, and is the fastest and 
3c8d0eb
easiest way to write providers on the planet.
3c8d0eb
8ae78c9
%package twisted
8ae78c9
Group:          Development/Libraries
8ae78c9
Summary:        WBEM client bindings for Twisted Python
8ae78c9
Requires:       python-twisted-core
8ae78c9
Requires:       python-twisted-web
8ae78c9
Requires:       %{name} = %{version}-%{release}
8ae78c9
BuildArch:      noarch
8ae78c9
8ae78c9
%description twisted
8ae78c9
This module contains factory classes that produce WBEM5Client instances
8ae78c9
that perform WBEM requests over HTTP using the
8ae78c9
twisted.protocols.http.HTTPClient base class.
8ae78c9
3c8d0eb
%prep
d0182e5
%setup -q -n %{name}-%{revdate}
f0a5083
%patch0 -p1 -b .mofcomp-imports
3c8d0eb
3c8d0eb
%build
588c99f
# dirty workaround to fix the mof_compiler.py module path
588c99f
ln -s . pywbem
3c8d0eb
CFLAGS="%{optflags}" %{__python} setup.py build
3c8d0eb
3c8d0eb
%install
3c8d0eb
rm -rf %{buildroot}
3c8d0eb
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
3c8d0eb
mkdir -p -m755 %{buildroot}%{_bindir}
3c8d0eb
mv %{buildroot}/%{python_sitelib}/%{name}/wbemcli.py %{buildroot}/%{_bindir}/pywbemcli
3c8d0eb
mv %{buildroot}/%{python_sitelib}/%{name}/mof_compiler.py %{buildroot}/%{_bindir}/mofcomp
d0182e5
rm %{buildroot}/%{python_sitelib}/%{name}/wbemcli.py[co]
d0182e5
rm %{buildroot}/%{python_sitelib}/%{name}/mof_compiler.py[co]
3c8d0eb
3c8d0eb
%clean 
3c8d0eb
rm -rf %{buildroot}
3c8d0eb
3c8d0eb
%files
8ae78c9
# everything except twisted_client.py*
8ae78c9
%{python_sitelib}/*.egg-info
8ae78c9
%{python_sitelib}/pywbem/?[^w]*.py*
3c8d0eb
%attr(755,root,root) %{_bindir}/mofcomp
3c8d0eb
%attr(755,root,root) %{_bindir}/pywbemcli
3c8d0eb
%doc README
3c8d0eb
8ae78c9
%files twisted
8ae78c9
%{python_sitelib}/pywbem/twisted_client.py*
8ae78c9
3c8d0eb
%changelog
4c04cce
* Tue Aug 27 2013 Jan Safranek <jsafrane@redhat.com>0.7.0-16.20130827svn625
4c04cce
- Fixed parsing of IPv6 addresses.
4c04cce
7d22617
* Fri Aug 09 2013 Michal Minar <miminar@redhat.com> 0.7.0-15.20130723svn623
7d22617
- Fixed certificate verification issue.
7d22617
a4ad0fb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-14.20130723svn623
a4ad0fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a4ad0fb
8ae78c9
* Wed Jul 24 2013  <jsafrane@redhat.com> 0.7.0-13.20130702svn623
8ae78c9
- Added subpackage with Twisted module to reduce dependencies of the main package.
8ae78c9
8ae78c9
* Tue Jul 23 2013  <jsafrane@redhat.com> 0.7.0-12.20130702svn623
5fcd245
- Fixed checking of CIMVERSION in CIM-XML.
5fcd245
85241d2
* Tue Jul  2 2013 Jan Safranek <jsafrane@redhat.com> 0.7.0-11.20130702svn622
85241d2
- New upstream version.
85241d2
- Method parameters are now case-insensitive.
85241d2
f0a5083
* Fri May 24 2013 Tomas Bzatek <tbzatek@redhat.com> 0.7.0-10.20130411svn619
f0a5083
- Fix module imports in /usr/bin/mofcomp
f0a5083
5f26681
* Thu Apr 11 2013 Jan Safranek <jsafrane@redhat.com> 0.7.0-9.20130411svn619
5f26681
- New upstream version.
5f26681
- Removed debug 'print' statements.
5f26681
d0182e5
* Mon Jan 28 2013 Michal Minar <miminar@redhat.com> 0.7.0-8.20130128svn613
d0182e5
- New upstream version.
d0182e5
- Added post-release snapshot version info.
d0182e5
- Removed obsoleted BuildRoot,
d0182e5
1887365
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-7
1887365
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1887365
679418c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-6
679418c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
679418c
f33208f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
f33208f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f33208f
863c8ab
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.0-4
863c8ab
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
863c8ab
a2d2ef6
* Fri Jan 01 2010 David Nalley <david@gnsa.us> 0.7.0-3
a2d2ef6
- refined requires for epel compat
3c8d0eb
* Sun Jun 28 2009 David Nalley <david@gnsa.us> 0.7.0-2
3c8d0eb
- Added some verbiage regarding what WBEM is and expanding WBEM and CIM acronyms
3c8d0eb
- Added python-twisted as a dependency
3c8d0eb
* Mon Jun 25 2009 David Nalley <david@gnsa.us> 0.7.0-1
3c8d0eb
- Initial packaging
3c8d0eb