73b575e
%{?python_enable_dependency_generator}
2329bad
2329bad
Name:           pywbem
5a02143
Version:        0.17.6
5a440cc
Epoch:          1
13ffcf0
Release:        3%{?dist}
e042a42
Summary:        Python WBEM client interface and related utilities
3c8d0eb
License:        LGPLv2
2329bad
URL:            https://github.com/pywbem/pywbem
e785ded
Source0:        https://github.com/pywbem/pywbem/archive/v%{version}/%{name}-%{version}.tar.gz
5a02143
Patch1:         0001-use-unittest-mock.patch
5a02143
Patch2:         0002-coverity-deadcode.patch
5a02143
Patch3:         0003-coverity-forward-null.patch
5a02143
Patch4:         0004-coverity-identifier-typo.patch
2329bad
BuildRequires:  python3-pip python3-PyYAML python3-ply python3-rpm-macros
25e2682
BuildRequires:  python3-devel
0d9f729
BuildRequires:  python3-setuptools
3c8d0eb
BuildArch:      noarch
5f26681
5c0c6a7
%description
3f6d859
A Python library for making CIM (Common Information Model) operations over HTTP\
3f6d859
using the WBEM CIM-XML protocol. It is based on the idea that a good WBEM\
3f6d859
client should be easy to use and not necessarily require a large amount of\
3f6d859
programming knowledge. It is suitable for a large range of tasks from simply\
3f6d859
poking around to writing web and GUI applications.\
3f6d859
\
3f6d859
WBEM, or Web Based Enterprise Management is a manageability protocol, like\
3f6d859
SNMP, standardized by the Distributed Management Task Force (DMTF) available\
3f6d859
at http://www.dmtf.org/standards/wbem.\
3f6d859
\
3f6d859
It also provides a Python provider interface, and is the fastest and\
3f6d859
easiest way to write providers on the planet.
2329bad
2329bad
%package -n python3-pywbem
2329bad
Summary:        Python3 WBEM Client and Provider Interface
2329bad
BuildArch:      noarch
2329bad
2329bad
%description -n python3-pywbem
2329bad
A WBEM client allows issuing operations to a WBEM server, using the CIM
2329bad
operations over HTTP (CIM-XML) protocol defined in the DMTF standards DSP0200
2329bad
and DSP0201. The CIM/WBEM infrastructure is used for a wide variety of systems
2329bad
management tasks supported by systems running WBEM servers. See WBEM Standards
2329bad
for more information about WBEM.
2329bad
3c8d0eb
%prep
2329bad
%setup -q -n %{name}-%{version}
a6387fd
%autosetup -p1
3c8d0eb
3c8d0eb
%build
0d9f729
CFLAGS="%{optflags}" %{__python3} setup.py build
e042a42
e042a42
3c8d0eb
%install
3c8d0eb
rm -rf %{buildroot}
3bbcf4d
env PYTHONPATH=%{buildroot}/%{python3_sitelib} \
3bbcf4d
    %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
3bbcf4d
rm -rf %{buildroot}/usr/bin/*.bat
995422d
# wbemcli are conflicting with sblim-wbemcli
995422d
mv -v %{buildroot}/%{_bindir}/wbemcli %{buildroot}/%{_bindir}/pywbemcli
995422d
sed -i -e 's/wbemcli/pywbemcli/' %{buildroot}/%{_bindir}/pywbemcli
995422d
mv -v %{buildroot}/%{_bindir}/wbemcli.py %{buildroot}/%{_bindir}/pywbemcli.py
3bbcf4d
2329bad
%files -n python3-pywbem
3bbcf4d
%license LICENSE.txt
2329bad
%{python3_sitelib}/*.egg-info
9e1a8ae
%{python3_sitelib}/pywbem/
f21e422
%{python3_sitelib}/pywbem_mock/
2329bad
%{_bindir}/mof_compiler
995422d
%{_bindir}/pywbemcli
995422d
%{_bindir}/pywbemcli.py
c90bc3c
%doc README.rst
3c8d0eb
3c8d0eb
%changelog
13ffcf0
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.17.6-3
13ffcf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
13ffcf0
edb068e
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:0.17.6-2
edb068e
- Rebuilt for Python 3.11
edb068e
5a02143
* Tue Apr 12 2022  Tony Asleson <tasleson@redhat.com> - 1:0.17.6-1
5a02143
- Update to 0.17.6 which is the latest release that doesn't introduce
5a02143
  dependencies which we don't have available.
5a02143
ab3524a
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.15.0-7
ab3524a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ab3524a
64e6970
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.15.0-6
64e6970
- Second attempt - Rebuilt for
64e6970
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
64e6970
0d9f729
* Wed Jun 23 2021 Tony Asleson <tasleson@redhat.com> - 1:0.15.0-5
0d9f729
- Remove python pbr build dependency
0d9f729
089a7e4
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1:0.15.0-4
089a7e4
- Rebuilt for Python 3.10
089a7e4
a6387fd
* Tue Feb 9 2021 Tony Asleson <tasleson@redhat.com> 1:0.15.0-3
a6387fd
- https://bugzilla.redhat.com/show_bug.cgi?id=1922368
a6387fd
36950bf
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.15.0-2
36950bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
36950bf
fb93d9c
* Fri Oct 23 2020 Tony Asleson <tasleson@redhat.com> - 0.15.0-1
fb93d9c
- Update to 0.15.0 for python 3.8 fixes
fb93d9c
af0a1aa
* Thu Oct 1 2020 Tony Asleson <tasleson@redhat.com> - 0.14.6-8
af0a1aa
- New build to do a multi-build
af0a1aa
5a440cc
* Wed Sep 30 2020 Tony Asleson <tasleson@redhat.com> - 0.14.6-7
5a440cc
- Add epoch to override the newer version that cannot be installed.
5a440cc
e785ded
* Tue Sep 1 2020 Tony Asleson <tasleson@redhat.com> - 0.14.6-6
e785ded
- Fix build failure
e785ded
  Bad source: /builddir/build/SOURCES/pywbem-0.14.6.tar.gz: No such file or directory
e785ded
995422d
* Tue Sep 1 2020 Tony Asleson <tasleson@redhat.com> - 0.14.6-5
995422d
- Go back to 0.14.6 ref. https://bugzilla.redhat.com/show_bug.cgi?id=1868128
995422d
Gris Ge 84ccac9
* Mon Aug 10 2020 Gris Ge <fge@redhat.com> - 1.0.1-1
Gris Ge 84ccac9
- Upgrade to 1.0.1
Gris Ge 84ccac9
daad95c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.6-4
daad95c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
daad95c
7e9fb51
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.6-3
7e9fb51
- Rebuilt for Python 3.9
7e9fb51
4bd754a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.6-2
4bd754a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4bd754a
4be5083
* Thu Oct 17 2019 Tony Asleson <tasleson@redhat.com> - 0.14.6-1
4be5083
- Upgrade to 0.14.6
4be5083
3b6b40c
* Mon Sep 23 2019 Gris Ge <fge@redhat.com> - 0.14.4-1
3b6b40c
- Upgrade to 0.14.4
3b6b40c
082e048
* Fri Sep 13 2019 Gris Ge <fge@redhat.com> - 0.14.3-5
082e048
- Fix pywbemcli ModuleNotFoundError: RHBZ #1743784
082e048
bb37b99
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.3-4
bb37b99
- Rebuilt for Python 3.8
bb37b99
9b628d2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-3
9b628d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9b628d2
5001a24
* Sat Jul 13 2019 Gris Ge <fge@redhat.com> - 0.14.3-2
5001a24
- Fix the conflict with sblim-wbemcli: RHBZ #1724104
5001a24
5c0c6a7
* Sat Jul 13 2019 Gris Ge <fge@redhat.com> - 0.14.3-1
5c0c6a7
- Upgrade to 0.14.3 and removed python2 stuff
5c0c6a7
30f3946
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.6-3
30f3946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
30f3946
73b575e
* Fri Jan 11 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.12.6-2
73b575e
- Enable python dependency generator
73b575e
4189e41
* Wed Dec 26 2018 Gris Ge <fge@redhat.com> - 0.12.6-1
4189e41
- Upgrade to 0.12.6
4189e41
9291719
* Tue Jul 24 2018 Gris Ge <fge@redhat.com> - 0.12.4-1
9291719
- Upgrade to 0.12.4
9291719
f7e695d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-6
f7e695d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f7e695d
ca75b53
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.12.3-5
ca75b53
- Rebuilt for Python 3.7
ca75b53
25e2682
* Tue Jun 26 2018 Gris Ge <fge@redhat.com> - 0.12.3-4
25e2682
- iAdd missing dependency -- python3-devel
25e2682
70b6051
* Tue Jun 26 2018 Gris Ge <fge@redhat.com> - 0.12.3-3
70b6051
- Rebuild again with --target=f29-python.
70b6051
d14ada5
* Thu Jun 21 2018 Gris Ge <fge@redhat.com> - 0.12.3-2
d14ada5
- Rebuilt for Python 3.7
d14ada5
527382b
* Tue May 22 2018 Gris Ge <fge@redhat.com> - 0.12.3-1
527382b
- Upgrade to 0.12.3
527382b
3bbcf4d
* Fri May 18 2018 Gris Ge <fge@redhat.com> - 0.12.2-3
3bbcf4d
- Fix build failure on F28- where python2 is enabled.
3bbcf4d
  Use %license macro.
3bbcf4d
e042a42
* Fri May 18 2018 Gris Ge <fge@redhat.com> - 0.12.2-2
e042a42
- Remove python2 for F29+. Add missing python3-pbr runtime requirement.
e042a42
f21e422
* Fri May 04 2018 Gris Ge <fge@redhat.com> - 0.12.2-1
f21e422
- Upgrade to 0.12.2.
f21e422
a34d4d7
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.11.0-6
a34d4d7
- Update Python 2 dependency declarations to new packaging standards
a34d4d7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a34d4d7
09ea1dd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-5
09ea1dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
09ea1dd
9e1a8ae
* Thu Jan 04 2018 Lumír Balhar <lbalhar@redhat.com> - 0.11.0-4
9e1a8ae
- Fix directory ownership
9e1a8ae
5b74417
* Thu Oct 19 2017 Gris Ge <fge@redhat.com> - 0.11.0-3
5b74417
- Fedora 25 does not have python2-pip, use python-pip instead.
5b74417
746c98f
* Thu Oct 19 2017 Gris Ge <fge@redhat.com> - 0.11.0-2
746c98f
- Add missing runtime dependency python2-ply and python3-ply
746c98f
c90bc3c
* Wed Oct 11 2017 Gris Ge <fge@redhat.com> - 0.11.0-1
c90bc3c
- Upgrade to 0.11.0
c90bc3c
3f6d859
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.10.0-3
3f6d859
- Python 2 binary package renamed to python2-pywbem
3f6d859
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
3f6d859
d7137fa
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
d7137fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d7137fa
9d8fd56
* Thu Feb 23 2017 Gris Ge <fge@redhat.com> - 0.10.0-1
9d8fd56
- Upgrade to 0.10.0
9d8fd56
4796ffe
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
4796ffe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4796ffe
c3b094f
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.1-2
c3b094f
- Rebuild for Python 3.6
c3b094f
Gris Ge 85abad0
* Thu Dec 08 2016 Gris Ge <fge@redhat.com> 0.9.1-1
Gris Ge 85abad0
- Upgrade to 0.9.1
Gris Ge 85abad0
3b7439d
* Wed Oct 19 2016 Gris Ge <fge@redhat.com> 0.9.0-3
3b7439d
- Add missing runtime dependency python3-six and python-six
3b7439d
c83d678
* Tue Sep 27 2016 Gris Ge <fge@redhat.com> 0.9.0-2
c83d678
- Add missing runtime dependency python3-PyYAML and PyYAML.
c83d678
2329bad
* Wed Sep 14 2016 Gris Ge <fge@redhat.com> - 0.9.0-1
2329bad
- Upgrade to 0.9.0 and add python3 pacakge -- python3-pywbem.
2329bad
5175cbb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-30.20131121svn626
5175cbb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5175cbb
467c69c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-29.20131121svn626
467c69c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
467c69c
e9ed7fa
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-28.20131121svn626
e9ed7fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e9ed7fa
d3a39f6
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.0-27.svn
d3a39f6
- Replace python-setuptools-devel BR with python-setuptools
d3a39f6
20dae26
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-26.20131121svn626
20dae26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
20dae26
3932b8b
* Mon Feb 24 2014 Michal Minar <miminar@redhat.com> 0.7.0-25.20131121svn656
3932b8b
- Fixed local authentication under root.
3932b8b
60ab8d4
* Thu Jan 23 2014 Michal Minar <miminar@redhat.com> 0.7.0-24.20131121svn656
60ab8d4
- Added support for non-ascii strings.
60ab8d4
39bb7a2
* Fri Jan 03 2014 Michal Minar <miminar@redhat.com> 0.7.0-23.20131121svn656
39bb7a2
- Skip hostname check when no verification is desired.
39bb7a2
5675d62
* Fri Dec 27 2013 Michal Minar <miminar@redhat.com> 0.7.0-22.20131121svn656
5675d62
- Work around M2Crypto's inability to handle unicode strings.
5675d62
754b796
* Wed Dec 18 2013 Michal Minar <miminar@redhat.com> 0.7.0-21.20131121svn656
754b796
- Adjusted default certificates paths searched for cert validation.
754b796
961fb49
* Tue Dec 17 2013 Michal Minar <miminar@redhat.com> 0.7.0-20.20131121svn656
414b922
- Tweaked the ssl_verify_host patch.
414b922
101fcb5
* Mon Dec 16 2013 Michal Minar <miminar@redhat.com> 0.7.0-18.20131121svn656
101fcb5
- Fixes TOCTOU vulnerability in certificate validation.
101fcb5
- Resolves: rhbz#1026891
101fcb5
b26970e
* Thu Nov 21 2013 Jan Safranek <jsafrane@redhat.com> 0.7.0-17.20131121svn626
b26970e
- Added '-d' option to /usr/bin/mofcomp to just check mof files and their
b26970e
  includes.
b26970e
b26970e
* 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
ce985a7
* Thu Jun 25 2009 David Nalley <david@gnsa.us> 0.7.0-1
3c8d0eb
- Initial packaging
3c8d0eb