-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibfixbuf.spec.in
More file actions
171 lines (152 loc) · 4.99 KB
/
libfixbuf.spec.in
File metadata and controls
171 lines (152 loc) · 4.99 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
## Copyright 2006-2025 Carnegie Mellon University
## See license information in LICENSE.txt.
## @configure_input@
## @DISTRIBUTION_STATEMENT_BEGIN@
## libfixbuf 2.5
##
## Copyright 2024 Carnegie Mellon University.
##
## NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING
## INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON
## UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR
## IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF
## FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS
## OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT
## MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT,
## TRADEMARK, OR COPYRIGHT INFRINGEMENT.
##
## Licensed under a GNU-Lesser GPL 3.0-style license, please see
## LICENSE.txt or contact permission@sei.cmu.edu for full terms.
##
## [DISTRIBUTION STATEMENT A] This material has been approved for public
## release and unlimited distribution. Please see Copyright notice for
## non-US Government use and distribution.
##
## This Software includes and/or makes use of Third-Party Software each
## subject to its own license.
##
## DM24-1020
## @DISTRIBUTION_STATEMENT_END@
# The following --with X and --without X options are supported with
# the default shown in brackets:
#
# openssl [without]: enables use of TLS for sending/receiving
# sctp [without]: enables use of SCTP (stream control transmission
# protocol) RFC9260, IP PROTO 132
# spread [without]: enables use of the Spread Toolkit messaging
# service (www.spread.org)
%if %{defined bcond}
%bcond openssl 0
%bcond sctp 0
%bcond spread 0
%else
%if %{defined bcond_with}
# Default is to build without OpenSSL, SCTP, and Spread, so add options
# to enable them
%bcond_with openssl
%bcond_with sctp
%bcond_with spread
%endif
%endif
%define name libfixbuf
%define version @PACKAGE_VERSION@
%define release 1%{?with_openssl:_openssl}%{?with_sctp:_sctp}%{?with_spread:_spread}%{?dist}
Summary: Fixbuf IPFIX implementation library
Name: %{name}
Version: %{version}
Release: %{release}
Group: Applications/System
License: LGPLv3
Source: https://tools.netsa.cert.org/releases/%{name}-%{version}.tar.gz
URL: https://tools.netsa.cert.org/fixbuf2/
Provides: %{name} = %{version}
BuildRequires: gcc, make, perl-interpreter
Requires: glib2 >= @FIXBUF_MIN_GLIB2@
BuildRequires: glib2-devel >= @FIXBUF_MIN_GLIB2@
BuildRequires: pkgconfig >= 0.16
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%if %{with openssl}
Requires: openssl-libs >= @FIXBUF_MIN_OPENSSL@
BuildRequires: openssl-devel >= @FIXBUF_MIN_OPENSSL@
%endif
%if %{with sctp}
Requires: lksctp-tools
BuildRequires: lksctp-tools-devel
%endif
%if %{with spread}
Requires: libspread
BuildRequires: libspread-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}
# To apply a patch to the libfixbuf sources: (1)put the patch file
# into the SOURCES directory of your rpmbuild area, (2)uncomment the
# 'Patch0:' line below and replace FILENAME with name of the patch
# file, (3)uncomment the 'patch0' line in the 'prep' section below.
#
# To apply another patch, repeat the process using the next sequential
# number.
#
#Patch0: FILENAME
#Patch1: FILENAME
#Patch2: FILENAME
%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: Unversioned shared libraries and C header files for libfixbuf
Group: Applications/System
Provides: libfixbuf-devel = %{version}
Requires: %{name} = %{version}
Requires: glib2-devel >= @FIXBUF_MIN_GLIB2@
Requires: pkgconfig >= 0.16
%if %{with openssl}
Requires: openssl-devel >= @FIXBUF_MIN_OPENSSL@
%endif
%if %{with sctp}
Requires: lksctp-tools-devel
%endif
%if %{with spread}
Requires: libspread-devel
%endif
%description devel
Unversioned shared libraries and C header files for libfixbuf. Also includes
HTML documentation of the library API calls.
%prep
%setup -q -n %{name}-%{version}
#
# Uncomment the patch<N> line for each patch file named in the
# 'Patch<N>: FILENAME' lines above.
#
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%build
%configure \
--disable-doxygen-doc \
--with-openssl=%{?with_openssl:yes}%{!?with_openssl:no} \
--with-sctp=%{?with_sctp:yes}%{!?with_sctp:no} \
--with-spread=%{?with_spread:yes}%{!?with_spread:no}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
%make_install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%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}/*.so.*
%files devel
%defattr(-,root,root)
%doc doc/html
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%changelog