Remove dependency on python2 from python3 subpackage, rhbz#1250940
This commit is contained in:
parent
17b11ef9e8
commit
75100bcfac
13
libxml2.spec
13
libxml2.spec
@ -3,7 +3,7 @@
|
|||||||
Summary: Library providing XML and HTML support
|
Summary: Library providing XML and HTML support
|
||||||
Name: libxml2
|
Name: libxml2
|
||||||
Version: 2.9.2
|
Version: 2.9.2
|
||||||
Release: 6%{?dist}%{?extra_release}
|
Release: 7%{?dist}%{?extra_release}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
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
|
%patch1 -p1 -b .do-not-check-crc
|
||||||
%patch2 -p1 -b .catalog-revert
|
%patch2 -p1 -b .catalog-revert
|
||||||
|
|
||||||
|
mkdir py3doc
|
||||||
|
cp doc/*.py py3doc
|
||||||
|
sed -i 's|#!/usr/bin/python |#!%{__python3} |' py3doc/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{_smp_mflags}
|
make %{_smp_mflags}
|
||||||
@ -188,7 +192,6 @@ rm -fr %{buildroot}
|
|||||||
%{_libdir}/python2*/site-packages/libxml2mod*
|
%{_libdir}/python2*/site-packages/libxml2mod*
|
||||||
%doc python/TODO
|
%doc python/TODO
|
||||||
%doc python/libxml2class.txt
|
%doc python/libxml2class.txt
|
||||||
%doc python/tests/*.py
|
|
||||||
%doc doc/*.py
|
%doc doc/*.py
|
||||||
%doc doc/python.html
|
%doc doc/python.html
|
||||||
|
|
||||||
@ -203,13 +206,15 @@ rm -fr %{buildroot}
|
|||||||
%{_libdir}/python3*/site-packages/libxml2mod*
|
%{_libdir}/python3*/site-packages/libxml2mod*
|
||||||
%doc python/TODO
|
%doc python/TODO
|
||||||
%doc python/libxml2class.txt
|
%doc python/libxml2class.txt
|
||||||
%doc python/tests/*.py
|
%doc py3doc/*.py
|
||||||
%doc doc/*.py
|
|
||||||
%doc doc/python.html
|
%doc doc/python.html
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Aug 22 2015 Kalev Lember <klember@redhat.com> - 2.9.2-6
|
||||||
- Rename the Python 3 subpackage to python3-libxml2 as per guidelines
|
- Rename the Python 3 subpackage to python3-libxml2 as per guidelines
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user