2013-12-03 15:08:14 +00:00
|
|
|
|
2014-01-21 12:06:30 +00:00
|
|
|
%define with_python3 0
|
|
|
|
%if 0%{?fedora} > 18
|
|
|
|
%define with_python3 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: The libvirt virtualization API python2 binding
|
2013-12-03 15:08:14 +00:00
|
|
|
Name: libvirt-python
|
2016-03-01 15:47:07 +00:00
|
|
|
Version: 1.3.2
|
|
|
|
Release: 1%{?dist}%{?extra_release}
|
2013-12-03 15:08:14 +00:00
|
|
|
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
|
|
|
|
Url: http://libvirt.org
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRequires: libvirt-devel >= 0.9.11
|
|
|
|
BuildRequires: python-devel
|
2014-04-07 11:37:15 +00:00
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-lxml
|
2014-01-21 12:06:30 +00:00
|
|
|
%if %{with_python3}
|
|
|
|
BuildRequires: python3-devel
|
2014-04-07 11:37:15 +00:00
|
|
|
BuildRequires: python3-nose
|
|
|
|
BuildRequires: python3-lxml
|
2014-01-21 12:06:30 +00:00
|
|
|
%endif
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
# Don't want provides for python shared objects
|
|
|
|
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
|
|
|
|
%{?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).
|
|
|
|
|
2014-01-21 12:06:30 +00:00
|
|
|
%if %{with_python3}
|
2014-08-15 19:14:52 +00:00
|
|
|
%package -n libvirt-python3
|
|
|
|
Summary: The libvirt virtualization API python3 binding
|
|
|
|
Url: http://libvirt.org
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
2014-01-21 12:06:30 +00:00
|
|
|
%description -n libvirt-python3
|
|
|
|
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).
|
|
|
|
%endif
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
2014-01-21 12:06:30 +00:00
|
|
|
%if %{with_python3}
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
|
%endif
|
2013-12-03 15:08:14 +00:00
|
|
|
|
2015-11-04 06:01:06 +00:00
|
|
|
find examples -type f -exec chmod 0644 \{\} \;
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
%install
|
|
|
|
%{__python} setup.py install --skip-build --root=%{buildroot}
|
2014-01-21 12:06:30 +00:00
|
|
|
%if %{with_python3}
|
|
|
|
%{__python3} setup.py install --skip-build --root=%{buildroot}
|
|
|
|
%endif
|
2013-12-03 15:08:14 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info
|
|
|
|
|
2015-11-04 06:01:06 +00:00
|
|
|
|
2014-04-07 11:37:15 +00:00
|
|
|
%check
|
|
|
|
%{__python} setup.py test
|
|
|
|
%if %{with_python3}
|
|
|
|
%{__python3} setup.py test
|
|
|
|
%endif
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
|
2014-01-21 12:06:30 +00:00
|
|
|
%{_libdir}/python2*/site-packages/libvirt.py*
|
|
|
|
%{_libdir}/python2*/site-packages/libvirt_qemu.py*
|
|
|
|
%{_libdir}/python2*/site-packages/libvirt_lxc.py*
|
|
|
|
%{_libdir}/python2*/site-packages/libvirtmod*
|
|
|
|
|
|
|
|
%if %{with_python3}
|
|
|
|
%files -n libvirt-python3
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
|
|
|
|
%{_libdir}/python3*/site-packages/libvirt.py*
|
|
|
|
%{_libdir}/python3*/site-packages/libvirt_qemu.py*
|
|
|
|
%{_libdir}/python3*/site-packages/libvirt_lxc.py*
|
|
|
|
%{_libdir}/python3*/site-packages/__pycache__/libvirt.cpython-*.py*
|
|
|
|
%{_libdir}/python3*/site-packages/__pycache__/libvirt_qemu.cpython-*.py*
|
|
|
|
%{_libdir}/python3*/site-packages/__pycache__/libvirt_lxc.cpython-*.py*
|
|
|
|
%{_libdir}/python3*/site-packages/libvirtmod*
|
|
|
|
%endif
|
2013-12-03 15:08:14 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-03-01 15:47:07 +00:00
|
|
|
* Tue Mar 1 2016 Daniel P. Berrange <berrange@redhat.com> - 1.3.2-1
|
|
|
|
- Update to 1.3.2 release
|
|
|
|
|
2016-02-04 04:07:20 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-20 10:17:43 +00:00
|
|
|
* Wed Jan 20 2016 Daniel P. Berrange <berrange@redhat.com> - 1.3.1-1
|
|
|
|
- Update to 1.3.1 release
|
|
|
|
|
2015-12-11 12:22:34 +00:00
|
|
|
* Fri Dec 11 2015 Daniel P. Berrange <berrange@redhat.com> - 1.3.0-1
|
|
|
|
- Update to 1.3.0 release
|
|
|
|
|
2015-11-12 11:16:41 +00:00
|
|
|
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.21-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-11-11 13:34:53 +00:00
|
|
|
* Wed Nov 11 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.21-1
|
|
|
|
- Update to 1.2.21 release
|
|
|
|
|
2015-11-10 14:43:29 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.20-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-11-04 06:01:06 +00:00
|
|
|
* Tue Nov 3 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.20-2
|
|
|
|
- Remove executable bit on documentation so it doesn't pull in extra
|
|
|
|
dependencies. This satisfies guidelines and fixes the problem of
|
|
|
|
the libvirt-python3 package requiring python2.
|
|
|
|
|
2015-10-02 15:34:39 +00:00
|
|
|
* Fri Oct 02 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.20-1
|
|
|
|
- Update to 1.2.20 release
|
|
|
|
|
2015-09-03 09:05:08 +00:00
|
|
|
* Thu Sep 03 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.19-1
|
|
|
|
- Update to 1.2.19 release
|
|
|
|
|
2015-08-09 19:58:45 +00:00
|
|
|
* Sun Aug 09 2015 Cole Robinson <crobinso@redhat.com> - 1.2.18-1
|
|
|
|
- Rebased to version 1.2.18
|
|
|
|
|
2015-06-17 17:32:41 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.16-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-01 09:09:32 +00:00
|
|
|
* Mon Jun 01 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.16-1
|
|
|
|
- Update to 1.2.16 release
|
|
|
|
|
2015-05-04 17:17:57 +00:00
|
|
|
* Mon May 04 2015 Cole Robinson <crobinso@redhat.com> - 1.2.15-1
|
|
|
|
- Rebased to version 1.2.15
|
|
|
|
|
2015-04-02 16:33:52 +00:00
|
|
|
* Thu Apr 02 2015 Cole Robinson <crobinso@redhat.com> - 1.2.14-1
|
|
|
|
- Rebased to version 1.2.14
|
|
|
|
|
2015-03-22 17:23:19 +00:00
|
|
|
* Sun Mar 22 2015 Cole Robinson <crobinso@redhat.com> - 1.2.13-1
|
|
|
|
- Rebased to version 1.2.13
|
|
|
|
|
2015-01-27 11:10:35 +00:00
|
|
|
* Tue Jan 27 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.12-1
|
|
|
|
- Update to v1.2.12 release
|
|
|
|
|
2014-12-15 15:43:26 +00:00
|
|
|
* Mon Dec 15 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.11-1
|
|
|
|
- Update to v1.2.11 release
|
|
|
|
|
2014-12-12 14:24:00 +00:00
|
|
|
* Fri Dec 12 2014 Richard W.M. Jones <rjones@redhat.com> - 1.2.10-2
|
|
|
|
- Include upstream patch to add .c_pointer() method to classes.
|
|
|
|
|
2014-11-16 01:57:42 +00:00
|
|
|
* Sat Nov 15 2014 Cole Robinson <crobinso@redhat.com> - 1.2.10-1
|
|
|
|
- Update to v1.2.10
|
|
|
|
|
2014-10-01 17:17:22 +00:00
|
|
|
* Wed Oct 1 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.9-1
|
|
|
|
- Update to 1.2.9 release
|
|
|
|
|
2014-09-08 11:15:05 +00:00
|
|
|
* Mon Sep 8 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.8-1
|
|
|
|
- Update to 1.2.8 release
|
|
|
|
|
2014-08-17 06:40:35 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-15 19:14:52 +00:00
|
|
|
* Fri Aug 15 2014 Cole Robinson <crobinso@redhat.com> - 1.2.7-1
|
|
|
|
- Rebased to version 1.2.7
|
|
|
|
|
2014-07-02 16:39:41 +00:00
|
|
|
* Wed Jul 2 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.6-1
|
|
|
|
- Update to 1.2.6 release
|
|
|
|
|
2014-06-07 05:57:08 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-06-02 15:02:59 +00:00
|
|
|
* Mon Jun 2 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.5-1
|
|
|
|
- Update to 1.2.5 release
|
|
|
|
|
2014-05-27 18:24:59 +00:00
|
|
|
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.2.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-05-06 16:22:55 +00:00
|
|
|
* Tue May 6 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.4-1
|
|
|
|
- Update to 1.2.4 release
|
|
|
|
|
2014-04-07 11:37:15 +00:00
|
|
|
* Mon Apr 7 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.3-1
|
|
|
|
- Update to 1.2.3 release
|
|
|
|
- Run tests during build
|
|
|
|
|
2014-03-03 13:54:02 +00:00
|
|
|
* Mon Mar 3 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.2-1
|
|
|
|
- Update to 1.2.2 release
|
|
|
|
|
2014-01-21 12:06:30 +00:00
|
|
|
* Tue Jan 21 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.1-1
|
|
|
|
- Update to 1.2.1 release
|
|
|
|
- Add libvirt-python3 package
|
|
|
|
|
2013-12-03 15:08:14 +00:00
|
|
|
* Mon Nov 25 2013 Daniel P. Berrange <berrange@redhat.com> - 1.2.0-1
|
|
|
|
- Initial package after split from libvirt RPM (rhbz #1034347)
|