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}