Remove dependency on python2 from python3 subpackage, rhbz#1250940

This commit is contained in:
Miro Hrončok 2015-08-27 13:01:22 +02:00
parent 17b11ef9e8
commit 75100bcfac

View File

@ -3,7 +3,7 @@
Summary: Library providing XML and HTML support
Name: libxml2
Version: 2.9.2
Release: 6%{?dist}%{?extra_release}
Release: 7%{?dist}%{?extra_release}
License: MIT
Group: Development/Libraries
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
@ -103,6 +103,10 @@ at parse time or later once the document has been modified.
%patch1 -p1 -b .do-not-check-crc
%patch2 -p1 -b .catalog-revert
mkdir py3doc
cp doc/*.py py3doc
sed -i 's|#!/usr/bin/python |#!%{__python3} |' py3doc/*.py
%build
%configure
make %{_smp_mflags}
@ -188,7 +192,6 @@ rm -fr %{buildroot}
%{_libdir}/python2*/site-packages/libxml2mod*
%doc python/TODO
%doc python/libxml2class.txt
%doc python/tests/*.py
%doc doc/*.py
%doc doc/python.html
@ -203,13 +206,15 @@ rm -fr %{buildroot}
%{_libdir}/python3*/site-packages/libxml2mod*
%doc python/TODO
%doc python/libxml2class.txt
%doc python/tests/*.py
%doc doc/*.py
%doc py3doc/*.py
%doc doc/python.html
%endif # with_python3
%changelog
* Thu Aug 27 2015 Miro Hrončok <mhroncok@redhat.com> - 2.9.2-7
- Remove dependency on python2 from python3 subpackage, rhbz#1250940
* Sat Aug 22 2015 Kalev Lember <klember@redhat.com> - 2.9.2-6
- Rename the Python 3 subpackage to python3-libxml2 as per guidelines