Rename the Python 3 subpackage to python3-libxml2 as per guidelines
https://fedoraproject.org/wiki/Packaging:Python#Naming
This commit is contained in:
parent
0b44910786
commit
17b11ef9e8
21
libxml2.spec
21
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: 5%{?dist}%{?extra_release}
|
Release: 6%{?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
|
||||||
@ -60,12 +60,14 @@ Requires: libxml2 = %{version}-%{release}
|
|||||||
Static library for libxml2 provided for specific uses or shaving a few
|
Static library for libxml2 provided for specific uses or shaving a few
|
||||||
microseconds when parsing, do not link to them for generic purpose packages.
|
microseconds when parsing, do not link to them for generic purpose packages.
|
||||||
|
|
||||||
%package python
|
%package -n python-%{name}
|
||||||
Summary: Python bindings for the libxml2 library
|
Summary: Python bindings for the libxml2 library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libxml2 = %{version}-%{release}
|
Requires: libxml2 = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-python < 2.9.2-6
|
||||||
|
Provides: %{name}-python = %{version}-%{release}
|
||||||
|
|
||||||
%description python
|
%description -n python-%{name}
|
||||||
The libxml2-python package contains a Python 2 module that permits applications
|
The libxml2-python package contains a Python 2 module that permits applications
|
||||||
written in the Python programming language, version 2, to use the interface
|
written in the Python programming language, version 2, to use the interface
|
||||||
supplied by the libxml2 library to manipulate XML files.
|
supplied by the libxml2 library to manipulate XML files.
|
||||||
@ -76,12 +78,14 @@ this includes parsing and validation even with complex DTDs, either
|
|||||||
at parse time or later once the document has been modified.
|
at parse time or later once the document has been modified.
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%package python3
|
%package -n python3-%{name}
|
||||||
Summary: Python 3 bindings for the libxml2 library
|
Summary: Python 3 bindings for the libxml2 library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libxml2 = %{version}-%{release}
|
Requires: libxml2 = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-python3 < 2.9.2-6
|
||||||
|
Provides: %{name}-python3 = %{version}-%{release}
|
||||||
|
|
||||||
%description python3
|
%description -n python3-%{name}
|
||||||
The libxml2-python3 package contains a Python 3 module that permits
|
The libxml2-python3 package contains a Python 3 module that permits
|
||||||
applications written in the Python programming language, version 3, to use the
|
applications written in the Python programming language, version 3, to use the
|
||||||
interface supplied by the libxml2 library to manipulate XML files.
|
interface supplied by the libxml2 library to manipulate XML files.
|
||||||
@ -176,7 +180,7 @@ rm -fr %{buildroot}
|
|||||||
|
|
||||||
%{_libdir}/*a
|
%{_libdir}/*a
|
||||||
|
|
||||||
%files python
|
%files -n python-%{name}
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
|
||||||
%{_libdir}/python2*/site-packages/libxml2.py*
|
%{_libdir}/python2*/site-packages/libxml2.py*
|
||||||
@ -189,7 +193,7 @@ rm -fr %{buildroot}
|
|||||||
%doc doc/python.html
|
%doc doc/python.html
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files python3
|
%files -n python3-%{name}
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
|
||||||
%{_libdir}/python3*/site-packages/libxml2.py*
|
%{_libdir}/python3*/site-packages/libxml2.py*
|
||||||
@ -206,6 +210,9 @@ rm -fr %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 22 2015 Kalev Lember <klember@redhat.com> - 2.9.2-6
|
||||||
|
- Rename the Python 3 subpackage to python3-libxml2 as per guidelines
|
||||||
|
|
||||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.2-5
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.2-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user