-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathlibtrap.spec.in
58 lines (47 loc) · 1.46 KB
/
libtrap.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
Summary: Library contains modules of communication interface between TRAP modules.
Name: libtrap
Version: @PACKAGE_VERSION@
Release: @RELEASE@
URL: http://www.liberouter.org/
Source0: https://github.com/CESNET/Nemea-Framework/raw/dist-packages/libtrap/%{name}-%{version}.tar.gz
Group: Liberouter
License: BSD
Vendor: CESNET, z.s.p.o.
Packager: @USERNAME@ <@USERMAIL@>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
Requires: openssl
BuildRequires: gcc make doxygen pkgconfig openssl-devel
Provides: libtrap
%description
%package devel
Summary: Libtrap development package
Group: Liberouter
Requires: libtrap = %{version}-%{release}
Requires: openssl-devel
Provides: libtrap-devel
%description devel
This package contains header files for libtrap library. Install this package
if you want to develop your own TRAP module.
%prep
%setup
%build
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --libdir=%{_libdir} --bindir=%{_bindir}/nemea --docdir=%{_docdir}/libtrap --with-defaultsocketdir=%{_rundir}/libtrap --disable-doxygen-pdf --disable-doxygen-ps --disable-tests -q;
make -j5
make doc
%install
make DESTDIR=$RPM_BUILD_ROOT install
%post
ldconfig
%files
%{_bindir}/nemea/trap_stats
%{_bindir}/nemea/trap2man.sh
%{_libdir}/libtrap.so.*
%{_sysconfdir}/tmpfiles.d/libtrap-varrun.conf
%defattr(-,-,-,1777)
%dir %{_rundir}/libtrap
%files devel
%{_libdir}/pkgconfig/libtrap.pc
%{_libdir}/libtrap.so
%{_libdir}/libtrap.a
%{_prefix}/include/libtrap/*
%{_docdir}/libtrap/*