08a2e08
756adb4
%define with_python3 0
756adb4
%if 0%{?fedora} > 18
756adb4
%define with_python3 1
756adb4
%endif
756adb4
756adb4
Summary: The libvirt virtualization API python2 binding
08a2e08
Name: libvirt-python
fead210
Version: 1.3.4
fead210
Release: 1%{?dist}%{?extra_release}
08a2e08
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
08a2e08
Url: http://libvirt.org
08a2e08
License: LGPLv2+
08a2e08
Group: Development/Libraries
b4255a3
BuildRequires: libvirt-devel >= %{version}
08a2e08
BuildRequires: python-devel
ee59e45
BuildRequires: python-nose
ee59e45
BuildRequires: python-lxml
756adb4
%if %{with_python3}
756adb4
BuildRequires: python3-devel
ee59e45
BuildRequires: python3-nose
ee59e45
BuildRequires: python3-lxml
756adb4
%endif
756adb4
08a2e08
# Don't want provides for python shared objects
08a2e08
%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so}
08a2e08
%{?filter_setup}
08a2e08
08a2e08
%description
08a2e08
The libvirt-python package contains a module that permits applications
08a2e08
written in the Python programming language to use the interface
08a2e08
supplied by the libvirt library to use the virtualization capabilities
08a2e08
of recent versions of Linux (and other OSes).
08a2e08
756adb4
%if %{with_python3}
d4cdac2
%package -n libvirt-python3
d4cdac2
Summary: The libvirt virtualization API python3 binding
d4cdac2
Url: http://libvirt.org
d4cdac2
License: LGPLv2+
d4cdac2
Group: Development/Libraries
d4cdac2
756adb4
%description -n libvirt-python3
756adb4
The libvirt-python package contains a module that permits applications
756adb4
written in the Python programming language to use the interface
756adb4
supplied by the libvirt library to use the virtualization capabilities
756adb4
of recent versions of Linux (and other OSes).
756adb4
%endif
756adb4
08a2e08
%prep
08a2e08
%setup -q
08a2e08
fead210
# Unset execute bit for example scripts; it can introduce spurious
fead210
# RPM dependencies, like /usr/bin/python which can pull in python2
fead210
# for the -python3 package
78763e0
find examples -type f -exec chmod 0644 \{\} \;
78763e0
08a2e08
%build
08a2e08
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
756adb4
%if %{with_python3}
756adb4
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
756adb4
%endif
08a2e08
08a2e08
%install
08a2e08
%{__python} setup.py install --skip-build --root=%{buildroot}
756adb4
%if %{with_python3}
756adb4
%{__python3} setup.py install --skip-build --root=%{buildroot}
756adb4
%endif
08a2e08
rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info
08a2e08
ee59e45
%check
ee59e45
%{__python} setup.py test
ee59e45
%if %{with_python3}
ee59e45
%{__python3} setup.py test
ee59e45
%endif
ee59e45
08a2e08
%files
08a2e08
%defattr(-,root,root)
08a2e08
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
756adb4
%{_libdir}/python2*/site-packages/libvirt.py*
756adb4
%{_libdir}/python2*/site-packages/libvirt_qemu.py*
756adb4
%{_libdir}/python2*/site-packages/libvirt_lxc.py*
756adb4
%{_libdir}/python2*/site-packages/libvirtmod*
756adb4
756adb4
%if %{with_python3}
756adb4
%files -n libvirt-python3
756adb4
%defattr(-,root,root)
756adb4
%doc ChangeLog AUTHORS NEWS README COPYING COPYING.LESSER examples/
756adb4
%{_libdir}/python3*/site-packages/libvirt.py*
756adb4
%{_libdir}/python3*/site-packages/libvirt_qemu.py*
756adb4
%{_libdir}/python3*/site-packages/libvirt_lxc.py*
756adb4
%{_libdir}/python3*/site-packages/__pycache__/libvirt.cpython-*.py*
756adb4
%{_libdir}/python3*/site-packages/__pycache__/libvirt_qemu.cpython-*.py*
756adb4
%{_libdir}/python3*/site-packages/__pycache__/libvirt_lxc.cpython-*.py*
756adb4
%{_libdir}/python3*/site-packages/libvirtmod*
756adb4
%endif
08a2e08
08a2e08
%changelog
fead210
* Mon May 02 2016 Cole Robinson <crobinso@redhat.com> - 1.3.4-1
fead210
- Rebased to version 1.3.4
fead210
78763e0
* Wed Apr 20 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.3-2
78763e0
- Restore the setting of documentation to be non-executable.  Executable
78763e0
  documentation introduces spurious dependencies (in this case, making
78763e0
  the python3 package depend on python2).
78763e0
e7face9
* Thu Apr 07 2016 Cole Robinson <crobinso@redhat.com> - 1.3.3-1
e7face9
- Rebased to version 1.3.3
e7face9
b4255a3
* Tue Mar  1 2016 Daniel P. Berrange <berrange@redhat.com> - 1.3.2-2
b4255a3
- Ensure we build against new enough libvirt
b4255a3
4b2a8ba
* Tue Mar  1 2016 Daniel P. Berrange <berrange@redhat.com> - 1.3.2-1
4b2a8ba
- Update to 1.3.2 release
4b2a8ba
4193d07
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
4193d07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4193d07
c8b9aec
* Wed Jan 20 2016 Daniel P. Berrange <berrange@redhat.com> - 1.3.1-1
c8b9aec
- Update to 1.3.1 release
c8b9aec
7128e9c
* Fri Dec 11 2015 Daniel P. Berrange <berrange@redhat.com> - 1.3.0-1
7128e9c
- Update to 1.3.0 release
7128e9c
0f8983f
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.21-2
0f8983f
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
0f8983f
dbdb925
* Wed Nov 11 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.21-1
dbdb925
- Update to 1.2.21 release
dbdb925
f5472f9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.20-3
f5472f9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f5472f9
cf8b005
* Tue Nov  3 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.20-2
cf8b005
- Remove executable bit on documentation so it doesn't pull in extra
cf8b005
  dependencies.  This satisfies guidelines and fixes the problem of
cf8b005
  the libvirt-python3 package requiring python2.
cf8b005
a173dbd
* Fri Oct 02 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.20-1
a173dbd
- Update to 1.2.20 release
a173dbd
71df765
* Thu Sep 03 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.19-1
71df765
- Update to 1.2.19 release
71df765
24b6943
* Sun Aug 09 2015 Cole Robinson <crobinso@redhat.com> - 1.2.18-1
24b6943
- Rebased to version 1.2.18
24b6943
5ef5fc8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.16-2
5ef5fc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5ef5fc8
d006ef9
* Mon Jun 01 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.16-1
d006ef9
- Update to 1.2.16 release
d006ef9
f57172f
* Mon May 04 2015 Cole Robinson <crobinso@redhat.com> - 1.2.15-1
f57172f
- Rebased to version 1.2.15
f57172f
559c01f
* Thu Apr 02 2015 Cole Robinson <crobinso@redhat.com> - 1.2.14-1
559c01f
- Rebased to version 1.2.14
559c01f
b9019c0
* Sun Mar 22 2015 Cole Robinson <crobinso@redhat.com> - 1.2.13-1
b9019c0
- Rebased to version 1.2.13
b9019c0
2844186
* Tue Jan 27 2015 Daniel P. Berrange <berrange@redhat.com> - 1.2.12-1
2844186
- Update to v1.2.12 release
2844186
e6bf25c
* Mon Dec 15 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.11-1
e6bf25c
- Update to v1.2.11 release
e6bf25c
f64654b
* Fri Dec 12 2014 Richard W.M. Jones <rjones@redhat.com> - 1.2.10-2
f64654b
- Include upstream patch to add .c_pointer() method to classes.
f64654b
dd6d2a4
* Sat Nov 15 2014 Cole Robinson <crobinso@redhat.com> - 1.2.10-1
dd6d2a4
- Update to v1.2.10
dd6d2a4
57a2ca3
* Wed Oct  1 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.9-1
57a2ca3
- Update to 1.2.9 release
57a2ca3
292a9c5
* Mon Sep  8 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.8-1
292a9c5
- Update to 1.2.8 release
292a9c5
41b36bf
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.7-2
41b36bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
41b36bf
d4cdac2
* Fri Aug 15 2014 Cole Robinson <crobinso@redhat.com> - 1.2.7-1
d4cdac2
- Rebased to version 1.2.7
d4cdac2
afd9b39
* Wed Jul  2 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.6-1
afd9b39
- Update to 1.2.6 release
afd9b39
56ae837
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-2
56ae837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
56ae837
e2166af
* Mon Jun  2 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.5-1
e2166af
- Update to 1.2.5 release
e2166af
16f380e
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.2.4-2
16f380e
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
16f380e
d81c9c6
* Tue May  6 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.4-1
d81c9c6
- Update to 1.2.4 release
d81c9c6
ee59e45
* Mon Apr  7 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.3-1
ee59e45
- Update to 1.2.3 release
ee59e45
- Run tests during build
ee59e45
3f8f9a5
* Mon Mar  3 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.2-1
3f8f9a5
- Update to 1.2.2 release
3f8f9a5
756adb4
* Tue Jan 21 2014 Daniel P. Berrange <berrange@redhat.com> - 1.2.1-1
756adb4
- Update to 1.2.1 release
756adb4
- Add libvirt-python3 package
756adb4
08a2e08
* Mon Nov 25 2013 Daniel P. Berrange <berrange@redhat.com> - 1.2.0-1
08a2e08
- Initial package after split from libvirt RPM (rhbz #1034347)