diff --git a/libnetfilter_cthelper.spec b/libnetfilter_cthelper.spec index 52b5bac..cd52f43 100644 --- a/libnetfilter_cthelper.spec +++ b/libnetfilter_cthelper.spec @@ -28,13 +28,18 @@ Group: Productivity/Networking/Security #Git-Clone: git://git.netfilter.org/libnetfilter_cthelper Source: %name-%version.tar.xz Source3: baselibs.conf -Patch1: libname.diff +Patch1: libname.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: autoconf, automake >= 1.6 -BuildRequires: libtool +BuildRequires: autoconf +BuildRequires: automake >= 1.6 +BuildRequires: libtool >= 2 BuildRequires: pkgconfig >= 0.21 +%if 0%{?suse_version} >= 1210 BuildRequires: pkgconfig(libmnl) >= 1.0.0 -BuildRequires: xz +%else +BuildRequires: libmnl-devel >= 1.0.0 +%endif +BuildRequires: xz %description This library provides the programming interface (API) to the @@ -58,7 +63,12 @@ This library provides the programming interface (API) to the Netfilter userspace helper infrastructure. %prep +%if 0%{?__xz:1} %setup -qn %name +%else +tar -xf "%{S:0}" --use=xz; +%setup -DTqn %name +%endif %patch -P 1 -p1 %build