Package libnetfilter_queue: Specfile

Name: libnetfilter_queue
Version: 0.0.15
Release: alt1.4

Summary: API to packets that have been queued by the kernel packet filter
Url: http://netfilter.org/projects/libnetfilter_queue/
Packager: Avramenko Andrew <liks@altlinux.ru>
License: GPL
Group: System/Libraries
Source: %name-%version.tar
Source1: ip_queue.h
Patch0: libnetfilter_queue-0.0.15-alt-DSO.patch
Requires: libnfnetlink

# Automatically added by buildreq on Wed Aug 08 2007
BuildRequires: gcc-c++ libnfnetlink-devel

%description
libnetfilter_queue is a userspace library providing an API to packets that have 
been queued by the kernel packet filter. It is is part of a system that deprecates 
the old ip_queue / libipq mechanism.

%package devel
Summary: Development part of libnetfilter_queue.
Group: Development/C
Requires: %name = %version-%release

%description devel 
Development part of libnetfilter_queue.

%prep
%setup
%patch0 -p2

mkdir -p include/linux/netfilter_ipv4
install -p -m644 %SOURCE1 include/linux/netfilter_ipv4

%build
%configure --disable-static
sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool
%make_build

%install
mkdir -p %buildroot%_libdir/%name
mkdir -p %buildroot%_includedir/%name
make install DESTDIR=%buildroot

%files
%_libdir/*.so.*
%doc COPYING

%files devel
%_includedir/%name/*
%_libdir/*.so
%_libdir/pkgconfig/*

%changelog
* Thu Dec 06 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.0.15-alt1.4
- Fixed build

* Fri Jun 08 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.0.15-alt1.3
- Fixed build

* Sat Feb 04 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.0.15-alt1.2
- Removed bad RPATH

* Sun Nov 14 2010 Denis Smirnov <mithraen@altlinux.ru> 0.0.15-alt1.1
- rebuild (with the help of girar-nmu utility)

* Wed Aug  8 2007 Avramenko Andrew <liks@altlinux.ru> 0.0.15-alt1
- Initial build for Sisyphus