2018-01-19 17:34:24 +00:00
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
|
|
# This spec file assumes you are building on a Fedora or RHEL version
|
|
|
|
# that's still supported by the vendor. It may work on other distros
|
|
|
|
# or versions, but no effort will be made to ensure that going forward
|
2021-10-01 12:50:58 +00:00
|
|
|
%define min_rhel 8
|
|
|
|
%define min_fedora 33
|
2018-01-19 17:34:24 +00:00
|
|
|
|
|
|
|
%if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} >= %{min_rhel})
|
|
|
|
%define supported_platform 1
|
|
|
|
%else
|
|
|
|
%define supported_platform 0
|
|
|
|
%endif
|
|
|
|
|
2020-01-15 17:11:37 +00:00
|
|
|
Summary: The libvirt virtualization API python3 binding
|
2013-12-03 15:08:14 +00:00
|
|
|
Name: libvirt-python
|
2024-01-16 20:43:01 +00:00
|
|
|
Version: 10.0.0
|
2023-08-01 14:42:10 +00:00
|
|
|
Release: 1%{?dist}
|
2021-06-01 14:12:12 +00:00
|
|
|
Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz
|
|
|
|
Url: https://libvirt.org
|
2023-04-26 16:53:57 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2018-01-19 17:34:24 +00:00
|
|
|
BuildRequires: libvirt-devel == %{version}
|
2014-01-21 12:06:30 +00:00
|
|
|
BuildRequires: python3-devel
|
2021-06-01 14:12:12 +00:00
|
|
|
BuildRequires: python3-pytest
|
2014-04-07 11:37:15 +00:00
|
|
|
BuildRequires: python3-lxml
|
2022-12-04 00:15:01 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2018-07-23 11:02:56 +00:00
|
|
|
BuildRequires: gcc
|
2014-01-21 12:06:30 +00:00
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
# Don't want provides for python shared objects
|
2018-01-19 17:34:24 +00:00
|
|
|
%{?filter_provides_in: %filter_provides_in %{python3_sitearch}/.*\.so}
|
2013-12-03 15:08:14 +00:00
|
|
|
%{?filter_setup}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The libvirt-python package contains a module that permits applications
|
|
|
|
written in the Python programming language to use the interface
|
|
|
|
supplied by the libvirt library to use the virtualization capabilities
|
|
|
|
of recent versions of Linux (and other OSes).
|
|
|
|
|
2017-08-11 08:58:12 +00:00
|
|
|
%package -n python3-libvirt
|
2014-08-15 19:14:52 +00:00
|
|
|
Summary: The libvirt virtualization API python3 binding
|
|
|
|
Url: http://libvirt.org
|
|
|
|
License: LGPLv2+
|
2017-08-11 08:58:12 +00:00
|
|
|
%{?python_provide:%python_provide python3-libvirt}
|
|
|
|
Provides: libvirt-python3 = %{version}-%{release}
|
|
|
|
Obsoletes: libvirt-python3 <= 3.6.0-1%{?dist}
|
2014-08-15 19:14:52 +00:00
|
|
|
|
2017-08-11 08:58:12 +00:00
|
|
|
%description -n python3-libvirt
|
|
|
|
The python3-libvirt package contains a module that permits applications
|
2020-01-15 17:11:37 +00:00
|
|
|
written in the Python 3.x programming language to use the interface
|
2014-01-21 12:06:30 +00:00
|
|
|
supplied by the libvirt library to use the virtualization capabilities
|
|
|
|
of recent versions of Linux (and other OSes).
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
%prep
|
2018-08-06 17:14:21 +00:00
|
|
|
%setup -q
|
2013-12-03 15:08:14 +00:00
|
|
|
|
2016-05-03 00:22:42 +00:00
|
|
|
# Unset execute bit for example scripts; it can introduce spurious
|
2020-01-15 17:11:37 +00:00
|
|
|
# RPM dependencies, like /usr/bin/python3
|
2016-05-03 00:22:42 +00:00
|
|
|
# for the -python3 package
|
2016-04-20 17:53:31 +00:00
|
|
|
find examples -type f -exec chmod 0644 \{\} \;
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
%build
|
2018-01-19 17:34:24 +00:00
|
|
|
%if ! %{supported_platform}
|
|
|
|
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
|
|
|
exit 1
|
|
|
|
%endif
|
|
|
|
|
2019-02-12 15:03:25 +00:00
|
|
|
%py3_build
|
2013-12-03 15:08:14 +00:00
|
|
|
|
|
|
|
%install
|
2019-02-12 15:03:25 +00:00
|
|
|
%py3_install
|
2013-12-03 15:08:14 +00:00
|
|
|
|
2014-04-07 11:37:15 +00:00
|
|
|
%check
|
2023-07-05 17:03:07 +00:00
|
|
|
%pytest
|
2014-04-07 11:37:15 +00:00
|
|
|
|
2017-08-11 08:58:12 +00:00
|
|
|
%files -n python3-libvirt
|
2023-07-05 17:03:07 +00:00
|
|
|
%doc ChangeLog AUTHORS README COPYING examples/
|
2018-01-19 17:34:24 +00:00
|
|
|
%{python3_sitearch}/libvirt.py*
|
|
|
|
%{python3_sitearch}/libvirtaio.py*
|
|
|
|
%{python3_sitearch}/libvirt_qemu.py*
|
|
|
|
%{python3_sitearch}/libvirt_lxc.py*
|
|
|
|
%{python3_sitearch}/__pycache__/libvirt.cpython-*.py*
|
|
|
|
%{python3_sitearch}/__pycache__/libvirt_qemu.cpython-*.py*
|
|
|
|
%{python3_sitearch}/__pycache__/libvirt_lxc.cpython-*.py*
|
|
|
|
%{python3_sitearch}/__pycache__/libvirtaio.cpython-*.py*
|
|
|
|
%{python3_sitearch}/libvirtmod*
|
|
|
|
%{python3_sitearch}/*egg-info
|
2013-12-03 15:08:14 +00:00
|
|
|
|
2023-10-06 11:57:54 +00:00
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
%changelog
|
2024-01-16 20:43:01 +00:00
|
|
|
* Tue Jan 16 2024 Cole Robinson <crobinso@redhat.com> - 10.0.0-1
|
|
|
|
- Update to version 10.0.0
|
|
|
|
|
2023-12-03 13:15:02 +00:00
|
|
|
* Sun Dec 03 2023 Cole Robinson <crobinso@redhat.com> - 9.10.0-1
|
|
|
|
- Update to version 9.10.0
|
|
|
|
|
2023-11-01 23:14:50 +00:00
|
|
|
* Wed Nov 01 2023 Cole Robinson <crobinso@redhat.com> - 9.9.0-1
|
|
|
|
- Update to version 9.9.0
|
|
|
|
|
2023-10-06 11:57:54 +00:00
|
|
|
* Fri Oct 06 2023 Cole Robinson <crobinso@redhat.com> - 9.8.0-1
|
|
|
|
- Update to version 9.8.0
|
|
|
|
|
2023-09-01 13:29:41 +00:00
|
|
|
* Fri Sep 1 2023 Daniel P. Berrangé <berrange@redhat.com> - 9.7.0-1
|
|
|
|
- Update to version 9.7.0
|
|
|
|
|
2023-08-01 14:42:10 +00:00
|
|
|
* Tue Aug 01 2023 Cole Robinson <crobinso@redhat.com> - 9.6.0-1
|
|
|
|
- Update to version 9.6.0
|
|
|
|
|
2023-07-20 12:29:08 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-07-05 17:03:07 +00:00
|
|
|
* Wed Jul 05 2023 Cole Robinson <crobinso@redhat.com> - 9.5.0-1
|
|
|
|
- Update to version 9.5.0
|
|
|
|
|
2023-06-29 04:49:13 +00:00
|
|
|
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 9.4.0-2
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-06-28 22:08:39 +00:00
|
|
|
* Wed Jun 28 2023 Cole Robinson <crobinso@redhat.com> - 9.4.0-1
|
|
|
|
- Update to version 9.4.0
|
|
|
|
|
2023-06-14 18:22:42 +00:00
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 9.3.0-2
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-05-02 14:37:54 +00:00
|
|
|
* Tue May 02 2023 Cole Robinson <crobinso@redhat.com> - 9.3.0-1
|
|
|
|
- Update to version 9.3.0
|
|
|
|
|
2023-04-05 19:59:32 +00:00
|
|
|
* Wed Apr 05 2023 Cole Robinson <crobinso@redhat.com> - 9.2.0-1
|
|
|
|
- Update to version 9.2.0
|
|
|
|
|
2023-03-05 17:57:35 +00:00
|
|
|
* Sun Mar 05 2023 Cole Robinson <crobinso@redhat.com> - 9.1.0-1
|
|
|
|
- Update to version 9.1.0
|
|
|
|
|
2023-01-19 17:46:57 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2023-01-16 18:53:19 +00:00
|
|
|
* Mon Jan 16 2023 Cole Robinson <crobinso@redhat.com> - 9.0.0-1
|
|
|
|
- Update to version 9.0.0
|
|
|
|
|
2022-12-04 00:15:01 +00:00
|
|
|
* Sat Dec 03 2022 Cole Robinson <crobinso@redhat.com> - 8.10.0-1
|
|
|
|
- Update to version 8.10.0
|
|
|
|
|
2022-11-05 15:01:11 +00:00
|
|
|
* Sat Nov 05 2022 Cole Robinson <crobinso@redhat.com> - 8.9.0-1
|
|
|
|
- Update to version 8.9.0
|
|
|
|
|
2022-10-04 15:05:10 +00:00
|
|
|
* Tue Oct 04 2022 Cole Robinson <crobinso@redhat.com> - 8.8.0-1
|
|
|
|
- Update to version 8.8.0
|
|
|
|
|
2022-09-06 19:35:23 +00:00
|
|
|
* Tue Sep 06 2022 Cole Robinson <crobinso@redhat.com> - 8.7.0-1
|
|
|
|
- Update to version 8.7.0
|
|
|
|
|
2022-08-02 13:42:29 +00:00
|
|
|
* Tue Aug 02 2022 Cole Robinson <crobinso@redhat.com> - 8.6.0-1
|
|
|
|
- Update to version 8.6.0
|
|
|
|
|
2022-07-21 16:23:49 +00:00
|
|
|
* Thu Jul 21 2022 Cole Robinson <crobinso@redhat.com> - 8.5.0-1
|
|
|
|
- Update to version 8.5.0
|
|
|
|
|
2022-06-13 15:12:05 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 8.4.0-2
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-06-02 15:46:47 +00:00
|
|
|
* Thu Jun 02 2022 Cole Robinson <crobinso@redhat.com> - 8.4.0-1
|
|
|
|
- Update to version 8.4.0
|
|
|
|
|
2022-05-02 19:21:35 +00:00
|
|
|
* Mon May 02 2022 Cole Robinson <crobinso@redhat.com> - 8.3.0-1
|
|
|
|
- Update to version 8.3.0
|
|
|
|
|
2022-04-01 16:44:59 +00:00
|
|
|
* Fri Apr 01 2022 Cole Robinson <crobinso@redhat.com> - 8.2.0-1
|
|
|
|
- Update to version 8.2.0
|
|
|
|
|
2022-03-01 14:16:02 +00:00
|
|
|
* Tue Mar 01 2022 Cole Robinson <crobinso@redhat.com> - 8.1.0-1
|
|
|
|
- Update to version 8.1.0
|
|
|
|
|
2022-01-20 17:35:20 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2022-01-14 16:38:42 +00:00
|
|
|
* Fri Jan 14 2022 Cole Robinson <crobinso@redhat.com> - 8.0.0-1
|
|
|
|
- Update to version 8.0.0
|
|
|
|
|
2022-01-11 15:53:31 +00:00
|
|
|
* Tue Jan 11 2022 Cole Robinson <crobinso@redhat.com> - 7.10.0-1
|
|
|
|
- Update to version 7.10.0
|
|
|
|
|
2021-11-03 15:25:50 +00:00
|
|
|
* Wed Nov 3 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.9.0-1
|
|
|
|
- Update to 7.9.0 release
|
|
|
|
|
2021-10-01 12:50:58 +00:00
|
|
|
* Fri Oct 1 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.8.0-1
|
|
|
|
- Update to 7.8.0 release
|
|
|
|
|
2021-08-02 12:07:02 +00:00
|
|
|
* Mon Aug 2 2021 Daniel P. Berrangé <berrange@redhat.com> - 7.6.0-1
|
|
|
|
- Update to 7.6.0 release
|
|
|
|
|
2021-07-22 12:42:16 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-01 16:31:16 +00:00
|
|
|
* Thu Jul 01 2021 Cole Robinson <crobinso@redhat.com> - 7.5.0-1
|
|
|
|
- Update to version 7.5.0
|
|
|
|
|
2021-06-04 18:10:23 +00:00
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 7.4.0-2
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-06-01 14:12:12 +00:00
|
|
|
* Tue Jun 01 2021 Cole Robinson <crobinso@redhat.com> - 7.4.0-1
|
|
|
|
- Update to version 7.4.0
|
|
|
|
|
2021-04-05 17:38:00 +00:00
|
|
|
* Mon Apr 05 2021 Cole Robinson <crobinso@redhat.com> - 7.2.0-1
|
|
|
|
- Update to version 7.2.0
|
|
|
|
|
2021-03-01 20:16:12 +00:00
|
|
|
* Mon Mar 01 2021 Cole Robinson <crobinso@redhat.com> - 7.1.0-1
|
|
|
|
- Update to version 7.1.0
|
|
|
|
|
2021-01-26 18:17:22 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-18 16:20:57 +00:00
|
|
|
* Mon Jan 18 2021 Cole Robinson <crobinso@redhat.com> - 7.0.0-1
|
|
|
|
- Update to version 7.0.0
|