From 04921ce29557970f294264660eb2f65ad0349f50 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 07:12:55 +0100 Subject: [PATCH] fix BuildRequires/Requires/Provides Signed-off-by: Igor Gnatenko --- libxml2.spec | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/libxml2.spec b/libxml2.spec index 815155f..ca4826f 100644 --- a/libxml2.spec +++ b/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}