forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libnetfilter_queue.spec
85 lines (64 loc) · 2.38 KB
/
libnetfilter_queue.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Name: libnetfilter_queue
Version: 0.0.16
Release: 1%{?dist}
Summary: Netfilter queue userspace library
Group: System Environment/Libraries
License: GPL
URL: http://netfilter.org
Source0: http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libnfnetlink-devel, pkgconfig
%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.
libnetfilter_queue has been previously known as libnfnetlink_queue.
%package devel
Summary: Netfilter queue userspace library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}, pkgconfig
%description devel
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.
libnetfilter_queue has been previously known as libnfnetlink_queue.
%prep
%setup -q
%build
%configure --disable-static --disable-rpath
# kill the rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Wed Apr 9 2008 David Hrbáč <[email protected]> - 0.0.16-1
- new upstream version
* Wed Apr 9 2008 David Hrbáč <[email protected]> - 0.0.15-1
- CentOS rebuild
* Tue Sep 18 2007 Paul P Komkoff Jr <[email protected]> - 0.0.15-1
- new upstream version
* Mon Mar 26 2007 Paul P Komkoff Jr <[email protected]> - 0.0.13-3
- own some directories
* Mon Mar 19 2007 Paul P Komkoff Jr <[email protected]> - 0.0.13-2
- fix source url
- add pkgconfig to -devel Requires
* Sat Mar 17 2007 Paul P Komkoff Jr <[email protected]> - 0.0.13-1
- Preparing for submission to fedora extras