forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibnfnetlink.spec
100 lines (74 loc) · 2.68 KB
/
libnfnetlink.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Name: libnfnetlink
Version: 0.0.39
Release: 2%{?dist}
Summary: Netfilter netlink userspace library
Group: System Environment/Libraries
License: GPL
URL: http://netfilter.org
Source0: http://netfilter.org/projects/libnfnetlink/files/%{name}-%{version}.tar.bz2
Source1: http://www.gnu.org/licenses/gpl.txt
Patch0: libnfnetlink-sysheader.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
#Requires:
%description
libnfnetlink is a userspace library that provides some low-level
nfnetlink handling functions. It is used as a foundation for other, netfilter
subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log
and libnfnetlink_queue.
%package devel
Summary: Netfilter netlink userspace library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
libnfnetlink is a userspace library that provides some low-level
nfnetlink handling functions. It is used as a foundation for other, netfilter
subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log
and libnfnetlink_queue.
%prep
%setup -q
cp %{SOURCE1} LICENSE
%build
%configure --disable-static
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 README LICENSE
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/libnfnetlink
%{_includedir}/libnfnetlink/*.h
%changelog
* Fri Sep 5 2008 David Hrbáč <[email protected]> - 0.0.39-2
- do not mess with bundled nfnetlink.h, use <linux/netfilter/nfnetlink.h>
* Wed Sep 3 2008 David Hrbáč <[email protected]> - 0.0.39-1
- new upstream version
* Wed Apr 9 2008 David Hrbáč <[email protected]> - 0.0.33-1
- CentOS rebuild
- new upstream version
* Thu Aug 30 2007 Paul P. Komkoff Jr <[email protected]> - 0.0.30-1
- new upstream version
* Sun Mar 25 2007 Paul P. Komkoff Jr <[email protected]> - 0.0.25-2
- grab ownership of some directories
* Fri Feb 9 2007 Paul P. Komkoff Jr <[email protected]> - 0.0.25-1
- upstream version 0.0.25
* Sun Sep 10 2006 Paul P. Komkoff Jr <[email protected]>
- rebuilt
* Wed Jul 12 2006 Felipe Kellermann <[email protected]> - 0.0.16-1
- Adds pkgconfig to devel files.
- Version 0.0.16.
* Mon May 8 2006 Paul P Komkoff Jr <[email protected]> - 0.0.14-3
- Include borrowed gpl.txt as LICENSE in %doc
* Sun Mar 26 2006 Paul P Komkoff Jr <[email protected]> - 0.0.14-1
- Preparing for submission to fedora extras