Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
6372a670c7
!19 Update to 1.6.1
From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2023-06-02 09:52:25 +00:00
starlet-dx
24f7a32964 Update to 1.6.1 2023-06-02 17:11:40 +08:00
openeuler-ci-bot
b342c161ad
!17 upgrade to 1.4.1
From: @zhangy1317 
Reviewed-by: @licihua, @huangtianhua 
Signed-off-by: @licihua
2022-07-20 03:45:41 +00:00
zhangy1317
122f38de9f upgrade to 1.4.1 2022-07-20 10:18:55 +08:00
openeuler-ci-bot
8ecad1eaef !14 update version to 1.1.3
From: @ffrog
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-08-18 08:43:53 +00:00
FFrog
e0dd0f1ed0 update version to 1.1.3 2021-08-12 17:22:40 +08:00
openeuler-ci-bot
4a8347978b !11 Fix source0
From: @kkkl12
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-11 17:12:50 +08:00
kkkl12
9946b5af5c Fix Source0 2020-09-11 15:40:04 +08:00
openeuler-ci-bot
aa83c0cbdd !10 add yaml file
Merge pull request !10 from sugarfillet/master
2020-05-11 20:24:28 +08:00
sugarfillet
06bf391091 add yaml file 2020-05-08 15:56:01 +08:00
4 changed files with 21 additions and 67 deletions

Binary file not shown.

BIN
pywbem-1.6.1.tar.gz Normal file

Binary file not shown.

View File

@ -3,17 +3,14 @@
%global __requires_exclude ^.*python[2|3]*.7dist\\(.*\\).*$
Name: pywbem
Version: 0.12.4
Release: 5
Version: 1.6.1
Release: 1
Summary: WBEM client and WBEM indication listener
License: LGPLv2
URL: https://github.com/pywbem/pywbem
Source0: pywbem-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/82/06/8ec1c9213b011132404ea245aed079a6b9c4404300dae32d586810032087/pywbem-1.6.1.tar.gz
%if 0%{?with_python2}
BuildRequires: python2-pip python2-pbr python2-pyyaml python2-ply python2-rpm-macros python2-devel
%endif
BuildRequires: python3-pip python3-PyYAML python3-ply python3-rpm-macros python3-pbr python3-devel git
BuildRequires: python3-pip python3-PyYAML python3-ply python3-rpm-macros python3-pbr python3-devel git python3-wheel
BuildArch: noarch
@ -24,25 +21,9 @@ standards DSP0200 and DSP0201. The CIM/WBEM infrastructure is used for a wide
variety of systems management tasks supported by systems running WBEM servers.
A WBEM indication listener allows receiving indications generated by a WBEM server.
%if 0%{?with_python2}
%package -n python2-pywbem
Summary: Python2 WBEM client and WBEM indication listener
Requires: m2crypto python2-pyyaml python2-six python2-ply python2-mock python2-pbr
Provides: pywbem = %{version}-%{release}
Obsoletes: pywbem < %{version}-%{release}
%{?python_provide:%python_provide python2-pywbem}
%description -n python2-pywbem
A WBEM client allows issuing operations to a WBEM server, using the CIM (Common
Information Model) operations over HTTP (CIM-XML) protocol defined in the DMTF
standards DSP0200 and DSP0201. The CIM/WBEM infrastructure is used for a wide
variety of systems management tasks supported by systems running WBEM servers.
A WBEM indication listener allows receiving indications generated by a WBEM server.
%endif
%package -n python3-pywbem
Summary: Python3 WBEM client and WBEM indication listenex
Requires: python3-PyYAML python3-six python3-ply python3-mock python3-pbr
Requires: python3-PyYAML python3-six python3-ply python3-mock python3-pbr python3-nocasedict python3-nocaselist python3-yamlloader
BuildArch: noarch
%description -n python3-pywbem
@ -52,59 +33,16 @@ standards DSP0200 and DSP0201. The CIM/WBEM infrastructure is used for a wide
variety of systems management tasks supported by systems running WBEM servers.
A WBEM indication listener allows receiving indications generated by a WBEM server.
%if 0%{?with_python2}
%package twisted
Summary: Python2 WBEM client bindings for Twisted Python
Requires: python2-twisted %{name} = %{version}-%{release}
BuildArch: noarch
%description twisted
Twisted is an event-driven networking engine written in Python and licensed under
the open source MIT license.
%endif
%prep
%autosetup -n %{name}-%{version} -p1
%build
%if 0%{?with_python2}
cp -a . %{py2_build_dir}
%endif
PBR_VERSION="%{version}" CFLAGS="%{optflags}" %{__python3} setup.py build
%if 0%{?with_python2}
cd %{py2_build_dir}
PBR_VERSION="%{version}" CFLAGS="%{optflags}" %{__python2} setup.py build
cd -
%endif
%install
%if 0%{?with_python2}
cd %{py2_build_dir}
env PYTHONPATH=%{buildroot}/%{python2_sitelib} PBR_VERSION="%{version}" \
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
install -m644 attic/twisted_client.py %{buildroot}/%{python2_sitelib}/pywbem/twisted_client.py
cd -
rm -rf %{buildroot}/usr/bin/
%endif
env PYTHONPATH=%{buildroot}/%{python3_sitelib} PBR_VERSION="%{version}" \
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%if 0%{?with_python2}
%files -n python2-pywbem
%doc LICENSE.txt
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/pywbem*
%files twisted
%{python2_sitelib}/pywbem/twisted_client.py*
%endif
%files -n python3-pywbem
%{python3_sitelib}/*
%{_bindir}/*
@ -113,6 +51,18 @@ env PYTHONPATH=%{buildroot}/%{python3_sitelib} PBR_VERSION="%{version}" \
%changelog
* Fri Jun 02 2023 yaoxin <yao_xin001@hoperun.com> - 1.6.1-1
- Update to 1.6.1
* Thu Jun 16 2022 zhangy1317 <zhangy1317@foxmail.com> - 1.4.1-1
- Upgrade version for openstack yoga
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 1.1.3-1
- Update version to 1.1.3
* Fri Sep 11 2020 liuweibo<liuweibo10@huawei.com> - 0.12.4-6
- Fix Source0
* Sat Mar 14 2020 gulining<gulining1@huawei.com> - 0.12.4-5
- remove python2

4
pywbem.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: pywbem/pywbem
tag_prefix: ^v
seperator: .