Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
python-pywbem
python-pywbem.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pywbem.spec of Package python-pywbem
# # spec file for package python-pywbem # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define srcversion 0.7.0 Name: python-pywbem BuildRequires: python-devel BuildRequires: python-m2crypto %if 0%{?suse_version} BuildRequires: python-xml %endif Version: 0.7.0 Release: 4 Group: System/Management Summary: Python module for making CIM operation calls using the WBEM protocol License: LGPL-2.1 Url: http://pywbem.sf.net Source0: pywbem-%{srcversion}.tar.gz Requires: python-m2crypto %if 0%{?suse_version} Requires: python-xml %endif # upstream compatibility Provides: pywbem = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %{!?py_sitedir: %global py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?py_sitearch: %global py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?py_requires: %define py_requires Requires: python} %{py_requires} %description PyWBEM is a Python module for making CIM operation calls using the WBEM protocol to query and update managed objects. %prep %setup -q -n pywbem-%{srcversion} %build ln -s . pywbem python setup.py build %install %{__rm} -rf $RPM_BUILD_ROOT python setup.py install --prefix=%{_prefix} \ --root $RPM_BUILD_ROOT \ --install-purelib=%{py_sitedir} chmod +x $RPM_BUILD_ROOT%{py_sitedir}/pywbem/mof_compiler.py chmod +x $RPM_BUILD_ROOT%{py_sitedir}/pywbem/wbemcli.py install -d $RPM_BUILD_ROOT/usr/bin ln -s %{py_sitedir}/pywbem/mof_compiler.py $RPM_BUILD_ROOT/usr/bin/mofcomp ln -s %{py_sitedir}/pywbem/wbemcli.py $RPM_BUILD_ROOT/usr/bin/pywbemcli # END OF INSTALL %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %dir %{py_sitedir}/pywbem %{py_sitedir}/pywbem* %{_bindir}/mofcomp %{_bindir}/pywbemcli %doc README LICENSE.txt %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor