SHA256
1
0
forked from pool/libnl3

Rip out dependence on patch

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnl3?expand=0&rev=31
This commit is contained in:
Jan Engelhardt 2012-06-29 22:41:34 +00:00 committed by Git OBS Bridge
parent d2aa32f206
commit d0bbe45460
2 changed files with 8 additions and 40 deletions

View File

@ -1,23 +0,0 @@
From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-09-14 10:16:16.747806482 +0200
Upstream: possibly not
Quick hack to make pkglibdir include the version.
---
configure.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libnl-3.2.8/configure.in
===================================================================
--- libnl-3.2.8.orig/configure.in
+++ libnl-3.2.8/configure.in
@@ -41,7 +41,7 @@ m4_define([libnl_lt_age], [6])
m4_define([libnl_version],
[libnl_major_version.libnl_minor_version.libnl_micro_version])
-AC_INIT(libnl, [libnl_version], [http://www.infradead.org/~tgr/libnl/])
+AC_INIT(libnl3-200, [libnl_version], [http://www.infradead.org/~tgr/libnl/])
AC_CONFIG_HEADERS([lib/defs.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])

View File

@ -30,17 +30,15 @@ Url: http://people.suug.ch/~tgr/libnl/
#Git-Clone: git://git.infradead.org/users/tgr/libnl
Source: libnl-%version.tar.bz2
Source2: baselibs.conf
Patch1: libdir.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: flex >= 2.5.19
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.23
BuildRequires: python-devel
BuildRequires: xz
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
%description
The libnl suite is a collection of libraries providing APIs to
@ -99,33 +97,26 @@ demonstrated.
%endif
%prep
%if 0%{?__xz:1}
%setup -qn libnl-%version
%else
tar -xf "%{S:0}" --use=xz;
%setup -DTqn libnl-%version
%endif
%patch -P 1 -p1
%build
# we do have patches
autoreconf -fi;
if [ ! -e configure ]; then
autoreconf -fi;
fi;
%configure --disable-static
make %{?_smp_mflags};
make %{?_smp_mflags} pkglibdir="%_libdir/%lname";
%install
b="%buildroot";
%makeinstall
make install DESTDIR="%buildroot" pkglibdir="%_libdir/%lname";
find "$b" -iname "*.la" -delete;
%if !%with_tools
rm -Rf "$b/%_sysconfdir/libnl";
rm -Rf "$b/%_sbindir" "$b/%_mandir/man8";
%endif
%if "%{?fudes:1}"
%fdupes %buildroot
%endif
%post -n %lname -p /sbin/ldconfig