From cf8b005ddda32995fccd42429ebb2778a2e6c46c Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 3 Nov 2015 22:01:06 -0800 Subject: [PATCH] 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. --- libvirt-python.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libvirt-python.spec b/libvirt-python.spec index 4115fbb..cfcf855 100644 --- a/libvirt-python.spec +++ b/libvirt-python.spec @@ -7,7 +7,7 @@ Summary: The libvirt virtualization API python2 binding Name: libvirt-python Version: 1.2.20 -Release: 1%{?dist}%{?extra_release} +Release: 2%{?dist}%{?extra_release} Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz Url: http://libvirt.org License: LGPLv2+ @@ -55,6 +55,8 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %endif +find examples -type f -exec chmod 0644 \{\} \; + %install %{__python} setup.py install --skip-build --root=%{buildroot} %if %{with_python3} @@ -62,6 +64,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %endif rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info + %check %{__python} setup.py test %if %{with_python3} @@ -90,6 +93,11 @@ rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info %endif %changelog +* Tue Nov 3 2015 Toshio Kuratomi - 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. + * Fri Oct 02 2015 Daniel P. Berrange - 1.2.20-1 - Update to 1.2.20 release