|
John Trowbridge |
eaf718c |
%{?!_licensedir:%global license %%doc}
|
|
John Trowbridge |
eaf718c |
%{!?upstream_version: %global upstream_version %{version}}
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
Name: ahc-tools
|
|
John Trowbridge |
eaf718c |
Summary: Tools for RDO-Manager automatic health checks
|
|
John Trowbridge |
eaf718c |
Version: 0.2.0
|
|
John Trowbridge |
eaf718c |
Release: 1%{?dist}
|
|
John Trowbridge |
eaf718c |
License: ASL 2.0
|
|
John Trowbridge |
eaf718c |
URL: https://pypi.python.org/pypi/ahc-tools
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
Source0: https://pypi.python.org/packages/source/a/ahc-tools/ahc-tools-%{upstream_version}.tar.gz
|
|
John Trowbridge |
eaf718c |
Source1: compute.specs
|
|
John Trowbridge |
eaf718c |
Source2: control.specs
|
|
John Trowbridge |
eaf718c |
Source3: state
|
|
John Trowbridge |
eaf718c |
Source4: compute.cmdb.example
|
|
John Trowbridge |
eaf718c |
Source5: control.cmdb.example
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
BuildArch: noarch
|
|
John Trowbridge |
eaf718c |
BuildRequires: python-setuptools
|
|
John Trowbridge |
eaf718c |
BuildRequires: python2-devel
|
|
John Trowbridge |
eaf718c |
BuildRequires: python-pbr
|
|
John Trowbridge |
eaf718c |
Requires: python-hardware
|
|
John Trowbridge |
eaf718c |
Requires: python-ironicclient
|
|
John Trowbridge |
eaf718c |
Requires: python-swiftclient
|
|
John Trowbridge |
eaf718c |
Requires: python-oslo-config
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
%description
|
|
John Trowbridge |
eaf718c |
Reporting and matching tools for RDO-manager automatic health checks.
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
%prep
|
|
John Trowbridge |
eaf718c |
%autosetup -v -p 1 -n %{name}-%{upstream_version}
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
rm -rf *.egg-info
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
# Remove the requirements file so that pbr hooks don't add it
|
|
John Trowbridge |
eaf718c |
# to distutils requires_dist config
|
|
John Trowbridge |
eaf718c |
rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
%build
|
|
John Trowbridge |
eaf718c |
%{__python2} setup.py build
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
%install
|
|
John Trowbridge |
eaf718c |
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
# configuration contains passwords, thus 640
|
|
John Trowbridge |
eaf718c |
install -p -D -m 640 example.conf %{buildroot}/%{_sysconfdir}/ahc-tools/ahc-tools.conf
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
# edeploy matching configuration files
|
|
John Trowbridge |
eaf718c |
install -p -D -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/compute.specs
|
|
John Trowbridge |
eaf718c |
install -p -D -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/control.specs
|
|
John Trowbridge |
eaf718c |
install -p -D -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/state
|
|
John Trowbridge |
eaf718c |
install -p -D -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/compute.cmdb.example
|
|
John Trowbridge |
eaf718c |
install -p -D -m 644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/ahc-tools/edeploy/control.cmdb.example
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
%files
|
|
John Trowbridge |
eaf718c |
%license LICENSE
|
|
John Trowbridge |
eaf718c |
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/ahc-tools
|
|
John Trowbridge |
eaf718c |
%doc README.rst
|
|
John Trowbridge |
eaf718c |
%{python2_sitelib}/ahc_tools*
|
|
John Trowbridge |
eaf718c |
%exclude %{python2_sitelib}/ahc_tools/test*
|
|
John Trowbridge |
eaf718c |
%{_bindir}/ahc-report
|
|
John Trowbridge |
eaf718c |
%{_bindir}/ahc-match
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
%changelog
|
|
John Trowbridge |
eaf718c |
* Fri Jun 19 2015 John Trowbridge <trown@redhat.com> - 0.2.0-1
|
|
John Trowbridge |
eaf718c |
- Add ahc-tools.conf to store Ironic and Swift API credentials
|
|
John Trowbridge |
eaf718c |
- Add dependency on python-swiftclient
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
* Fri May 08 2015 John Trowbridge <trown@redhat.com> - 0.1.1-1
|
|
John Trowbridge |
eaf718c |
- Add default configuration for using edeploy matching
|
|
John Trowbridge |
eaf718c |
|
|
John Trowbridge |
eaf718c |
* Tue Apr 28 2015 John Trowbridge <jtrowbri@redhat.com> - 0.1.0-1
|
|
John Trowbridge |
eaf718c |
- Initial package build
|
|
John Trowbridge |
eaf718c |
|