fix BuildRequires/Requires/Provides
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
bca8735c76
commit
04921ce295
23
libxml2.spec
23
libxml2.spec
@ -13,11 +13,10 @@ Patch1: libxml2-2.9.0-do-not-check-crc.patch
|
||||
# http://bugs.python.org/issue23524
|
||||
Patch2: libxml2-2.9.4-remove-pyverify_fd.patch
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xz-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: cmake-rpm-macros
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
|
||||
%description
|
||||
This library allows to manipulate XML files. It includes support
|
||||
@ -32,10 +31,9 @@ URI library.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries, includes, etc. to develop XML and HTML applications
|
||||
Requires: libxml2 = %{version}-%{release}
|
||||
Requires: zlib-devel
|
||||
Requires: xz-devel
|
||||
Requires: pkgconfig
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: zlib-devel%{?_isa}
|
||||
Requires: xz-devel%{?_isa}
|
||||
|
||||
%description devel
|
||||
Libraries, include files, etc you can use to develop XML applications.
|
||||
@ -51,7 +49,6 @@ URI library.
|
||||
|
||||
%package static
|
||||
Summary: Static library for libxml2
|
||||
Requires: libxml2 = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
Static library for libxml2 provided for specific uses or shaving a few
|
||||
@ -60,7 +57,8 @@ microseconds when parsing, do not link to them for generic purpose packages.
|
||||
%package -n python2-%{name}
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
Summary: Python bindings for the libxml2 library
|
||||
Requires: libxml2 = %{version}-%{release}
|
||||
BuildRequires: python2-devel
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
|
||||
@ -76,7 +74,8 @@ at parse time or later once the document has been modified.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Python 3 bindings for the libxml2 library
|
||||
Requires: libxml2 = %{version}-%{release}
|
||||
BuildRequires: python3-devel
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python3 < %{version}-%{release}
|
||||
Provides: %{name}-python3 = %{version}-%{release}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user