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