From f89de3cdba4d46a1381964bf534010a5796f24e0b5728488d3dd637b4406013c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 20 Jan 2014 23:36:37 +0000 Subject: [PATCH] Fedora has no mxml OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnftnl?expand=0&rev=4 --- libnftnl.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libnftnl.spec b/libnftnl.spec index b005e1e..192944a 100644 --- a/libnftnl.spec +++ b/libnftnl.spec @@ -32,7 +32,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig >= 0.21 BuildRequires: pkgconfig(jansson) >= 2.3 BuildRequires: pkgconfig(libmnl) >= 1.0.3 +%if 0%{?suse_version} +# Fedora does not have BuildRequires: pkgconfig(mxml) >= 2.6 +%endif %description libnftnl is a userspace library providing a low-level netlink @@ -62,7 +65,10 @@ applications that want to make use of libnftnl. %setup -qn %name %build -%configure --includedir="%_includedir/pkg" --with-xml-parsing \ +%configure --includedir="%_includedir/pkg" \ +%if 0%{?suse_version} + --with-xml-parsing \ +%endif --with-json-parsing make %{?_smp_mflags}