diff --git a/libnl-3.2.22.tar.gz b/libnl-3.2.22.tar.gz deleted file mode 100644 index de06eac..0000000 --- a/libnl-3.2.22.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7c5f267dfeae0c1a530bf96b71fb7c8dbbb07d54beef49b6712d8d6166f629b -size 730249 diff --git a/libnl-3.2.22.tar.xz b/libnl-3.2.22.tar.xz new file mode 100644 index 0000000..733c707 --- /dev/null +++ b/libnl-3.2.22.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9189e42ee96085df0e8838d8a85160d760c56bab2fef9a9b83cc6afd694da331 +size 498716 diff --git a/libnl3.spec b/libnl3.spec index 220d437..90507d1 100644 --- a/libnl3.spec +++ b/libnl3.spec @@ -29,7 +29,7 @@ Url: http://www.carisma.slowglass.com/~tgr/libnl/ #Git-Clone: git://git.infradead.org/users/tgr/libnl #Git-Clone: git://github.com/tgraf/libnl #DL-URL: http://www.carisma.slowglass.com/~tgr/libnl/files/ -Source: http://www.carisma.slowglass.com/~tgr/libnl/files/libnl-3.2.22.tar.gz +Source: libnl-%version.tar.xz Source2: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf @@ -39,6 +39,7 @@ BuildRequires: flex >= 2.5.19 BuildRequires: libtool BuildRequires: pkgconfig >= 0.21 BuildRequires: python-devel >= 2.6 +BuildRequires: xz %if 0%{?suse_version} BuildRequires: fdupes %endif @@ -100,7 +101,12 @@ demonstrated. %endif %prep +%if 0%{?__xz:1} %setup -qn libnl-%version +%else +tar -xf "%{S:0}" --use=xz; +%setup -DTqn libnl-%version +%endif %build autoreconf -fi;