File: libfixbuf.spec.in

package info (click to toggle)
libfixbuf 2.4.0+ds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,968 kB
  • sloc: xml: 16,398; ansic: 14,446; perl: 331; makefile: 155; sh: 10
file content (100 lines) | stat: -rw-r--r-- 2,225 bytes parent folder | download
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
100
%define name libfixbuf
%define version @PACKAGE_VERSION@
%define release 1

Summary: Fixbuf IPFIX implementation library
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Group: Applications/System
License: LGPLv3
Source: https://tools.netsa.cert.org/releases/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}
Vendor: https://tools.netsa.cert.org/
URL: https://tools.netsa.cert.org/fixbuf/

Requires: glib2 >= 2.18
%if "x@FIXBUF_REQ_LIBSCTP@" == "x1"
Requires: libsctp
%endif
%if "x@FIXBUF_REQ_LIBSPREAD@" == "x1"
Requires: libspread
%endif
%if "x@FIXBUF_REQ_LIBSSL@" == "x1"
Requires: openssl
%endif
BuildRequires: glib2-devel >= 2.18
BuildRequires: pkgconfig >= 0.8
%if "x@FIXBUF_REQ_SCTPDEV@" == "x1"
BuildRequires: libsctp-devel
%endif
%if "x@FIXBUF_REQ_LIBSPREAD@" == "x1"
BuildRequires: libspread-devel
%endif
%if "x@FIXBUF_REQ_LIBSSL@" == "x1"
BuildRequires: openssl-devel
%endif

%description
libfixbuf aims to be a compliant implementation of the IPFIX Protocol
and message format, from which IPFIX Collecting Processes and
IPFIX Exporting Processes may be built.

%package devel
Summary: Static libraries and C header files for libfixbuf
Group: Applications/System
Provides: libfixbuf-devel
Requires: %{name} = %{version}
Requires: pkgconfig >= 0.8

%description devel
Static libraries and C header files for libfixbuf.

%package ipfixDump
Group: Applications/System
Summary: Prints the contents of an IPFIX file as text
Requires: %{name} = %{version}

%description ipfixDump
ipfixDump is a libfixbuf-related utility that reads an IPFIX file and
prints its contents as human-readable text.

%prep
%setup -q -n %{name}-%{version}

%build
%configure @RPM_CONFIG_FLAGS@
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
%makeinstall

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS LICENSE.txt NEWS README
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so*

%files devel
%defattr(-,root,root)
%doc doc/html
%{_includedir}/*
%{_libdir}/pkgconfig/*

%files ipfixDump
%defattr(-,root,root)
%{_bindir}/ipfixDump
%{_mandir}/man1/ipfixDump.1*
%{_datadir}/%{name}/cert_ipfix.xml

%changelog