2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 10:18:20 +00:00
Files
xcat-core/xCAT-openbmc-py/xCAT-openbmc-py.spec
yangsong d0ed517ee2 merge master to 2.13 branch (#4916)
* Add section for OpenBMC rflash in admin-guide, link this section to CORAL reference section

* enhance rflash unattended doc

* Add libnl3 to ib.rhels7.ppc64le.pkglist

* Reverse installing xCAT-openbmc-py by default so we can require python dependencies

* Adding documentation for installing xCAT-openbmc-py

* enhance rflash doc

* Fix indent problem for the comment lines

For the usability issue, add more spaces to avoid of
some errors when deleting the `#`.

* Install first, then performance section

* Modify all fullwidth colon in test case

* remove the dependency, Load SOAP module dynamically

* Add doc to enable goconserver by default

Add the steps in documentation to enable goconserver by default.

* Use makegocons instead of makeconservercf during discovery and provision

* check if agent exists in process_request and give more clear message.

* add usercase for xcat-inventory

* Not start agent when no valid nodes (#4915)
2018-03-09 19:21:30 +08:00

64 lines
1.7 KiB
RPMSpec

Summary: xCAT openbmc python
Name: xCAT-openbmc-py
Version: %{?version:%{version}}%{!?version:%(cat Version)}
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
Epoch: 1
License: EPL
Group: Applications/System
Source: xCAT-openbmc-py-%{version}.tar.gz
Packager: IBM Corp.
Vendor: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: /opt/xcat
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
%ifnos linux
AutoReqProv: no
%endif
BuildArch: noarch
Requires: xCAT-server
Requires: python-gevent >= 1.2.2-2
Requires: python-greenlet >= 0.4.13-2
Requires: python2-docopt python-requests python-paramiko python-scp
%description
xCAT-openbmc-py provides openbmc related functions.
%prep
%setup -q -n xCAT-openbmc-py
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{prefix}/lib/python/agent
install -d $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/xcatagent
install -d $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/common
install -d $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/hwctl
install -d $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/hwctl/executor
install -m755 lib/python/agent/*.py $RPM_BUILD_ROOT/%{prefix}/lib/python/agent
install -m644 lib/python/agent/xcatagent/*.py $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/xcatagent
install -m644 lib/python/agent/common/*.py $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/common
install -m644 lib/python/agent/hwctl/*.py $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/hwctl
install -m644 lib/python/agent/hwctl/executor/*.py $RPM_BUILD_ROOT/%{prefix}/lib/python/agent/hwctl/executor
%ifnos linux
rm -rf $RPM_BUILD_ROOT/%{prefix}/lib/python/agent
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{prefix}
%changelog
%pre
%post
%preun