%global _empty_manifest_terminate_build 0 Name: python-ironic-prometheus-exporter Version: 1.1.2 Release: 2 Summary: Prometheus Exporter for Ironic Hardware Sensor data License: Apache-2.0 URL: https://opendev.org/openstack/ironic-prometheus-exporter Source0: https://files.pythonhosted.org/packages/17/d4/39512786c9c33006b651a14edf7b00b0e28a9424994a953eca257feb20c4/ironic-prometheus-exporter-1.1.2.tar.gz BuildArch: noarch %description Ironic Prometheus Exporter Ironic Prometheus Exporter is a Tool to expose hardware sensor data in the Prometheus through an HTTP endpoint.The hardware sensor data come from bare metal machines deployed using OpenStack Bare Metal Service (ironic). %package -n python3-ironic-prometheus-exporter Summary: Prometheus Exporter for Ironic Hardware Sensor data Provides: python-ironic-prometheus-exporter # Base build requires BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel # General requires BuildRequires: python3-flask BuildRequires: python3-oslo-messaging BuildRequires: python3-prometheus-client BuildRequires: python3-stevedore # General requires Requires: python3-flask Requires: python3-oslo-messaging Requires: python3-pbr Requires: python3-prometheus-client Requires: python3-stevedore %description -n python3-ironic-prometheus-exporter Ironic Prometheus Exporter Ironic Prometheus Exporter is a Tool to expose hardware sensor data in the Prometheus format through an HTTP endpoint.The hardware sensor data come from bare metal machines deployed using OpenStack Bare Metal Service (ironic). %package help Summary: Prometheus Exporter for Ironic Hardware Sensor data Provides: python3-ironic-prometheus-exporter-doc %description help Ironic Prometheus Exporter Ironic Prometheus Exporter is a Tool to expose hardware sensor data in the Prometheus format through an HTTP endpoint.The hardware sensor data come from bare metal machines deployed using OpenStack Bare Metal Service (ironic). %prep %autosetup -n ironic-prometheus-exporter-%{version} %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-ironic-prometheus-exporter -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Nov 11 2021 OpenStack_SIG - 1.1.2-2 - Fix build issue * Mon Nov 08 2021 OpenStack_SIG - 1.1.2-1 - Init package python3-ironic-prometheus-exporter of version 1.1.2