-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlibnf.spec.in
86 lines (59 loc) · 1.53 KB
/
libnf.spec.in
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: libnf
Version: @VERSION@
#Release: 1%{?dist}
Release: 2
Summary: Library providing C API for processing nfdump files
Group: Networking/Tools
License: GPL
URL: http://libnf.net
Source0: http://libnf.net/packages/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: bzip2-devel
Requires: bzip2-libs
%description
API for manipulating with nfdump files.
See http://libnf.net for more information.
%package devel
Summary: Libraries and header files for the libnf.net library
Group: Development/Libraries
Requires: %{name} bzip2-devel
%description devel
This package provides the libraries, include files, and other
resources needed for developing libnf applications.
%package -n nfdumpp
Summary: Parallel nfdump
Group: Networking/Tools
Requires: %{name}
%description -n nfdumpp
Nfdumpp is implementation of parallel nfdump based on libnf.net library.
%prep
%setup -q
%build
%configure --enable-bz2static=no CFLAGS=-fPIC
make %{?_smp_mflags}
%install
rm -rf %{buildroot} # redundant except for RHEL 5
%make_install
%clean
rm -rf %{buildroot}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%{_bindir}/libnf-info
%{_bindir}/lnf_ex*
%{_includedir}/libnf.h
%{_includedir}/ffilter.h
%{_libdir}/libnf.so.*
%files devel
%{_includedir}/libnf.h
%{_includedir}/ffilter.h
%{_libdir}/libnf.so*
%{_libdir}/libnf.a
%{_libdir}/libnf.la
%files -n nfdumpp
%{_bindir}/nfdumpp
%changelog
* Tue Aug 11 2015 Tomas Podermanski <[email protected]>
- Initial version of specfile