]>
Commit | Line | Data |
---|---|---|
bbe3aad6 | 1 | Summary: Data Acquisition Library |
2 | Name: daq | |
22fa44a2 | 3 | Version: 2.0.6 |
bbe3aad6 | 4 | Release: 1 |
5 | License: GNU General Public License | |
6 | Group: Networking | |
22fa44a2 JR |
7 | Source0: https://www.snort.org/downloads/snort/%{name}-%{version}.tar.gz |
8 | # Source0-md5: 2cd6da422a72c129c685fc4bb848c24c | |
bbe3aad6 | 9 | URL: http://www.snort.org/ |
bbe3aad6 | 10 | BuildRequires: bison |
38b705f0 | 11 | BuildRequires: flex |
bbe3aad6 | 12 | BuildRequires: libdnet-devel |
13 | BuildRequires: libnetfilter_queue-devel | |
38b705f0 | 14 | BuildRequires: libpcap-devel >= 1.0.0 |
bbe3aad6 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | Data Acquisition library for Snort. | |
19 | ||
22fa44a2 JR |
20 | %package devel |
21 | Summary: Header files for %{name} library | |
22 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
23 | Group: Development/Libraries | |
24 | Requires: %{name} = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | Header files for %{name} library. | |
28 | ||
29 | %description devel -l pl.UTF-8 | |
30 | Pliki nagłówkowe biblioteki %{name}. | |
31 | ||
32 | %package static | |
33 | Summary: Static %{name} library | |
34 | Summary(pl.UTF-8): Statyczna biblioteka %{name} | |
35 | Group: Development/Libraries | |
36 | Requires: %{name}-devel = %{version}-%{release} | |
37 | ||
38 | %description static | |
39 | Static %{name} library. | |
40 | ||
41 | %description static -l pl.UTF-8 | |
42 | Statyczna biblioteka %{name}. | |
43 | ||
bbe3aad6 | 44 | %prep |
45 | %setup -q | |
46 | ||
47 | %build | |
bbe3aad6 | 48 | %configure \ |
49 | --enable-ipv6 | |
50 | ||
22fa44a2 | 51 | %{__make} -j1 |
bbe3aad6 | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %pre | |
62 | ||
63 | %post | |
64 | /sbin/ldconfig | |
65 | ||
66 | %preun | |
67 | ||
68 | %postun | |
69 | /sbin/ldconfig | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
22fa44a2 JR |
73 | %dir %{_libdir}/daq |
74 | %{_libdir}/daq/daq_*.so | |
75 | %attr(755,root,root) %ghost %{_libdir}/libdaq.so.2 | |
76 | %attr(755,root,root) %{_libdir}/libdaq.so.*.*.* | |
77 | %attr(755,root,root) %ghost %{_libdir}/libsfbpf.so.0 | |
78 | %attr(755,root,root) %{_libdir}/libsfbpf.so.*.*.* | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
bbe3aad6 | 82 | %{_includedir}/*.h |
22fa44a2 JR |
83 | %attr(755,root,root) %{_libdir}/libdaq.so |
84 | %attr(755,root,root) %{_libdir}/libsfbpf.so | |
85 | %{_libdir}/libdaq.la | |
86 | %{_libdir}/libsfbpf.la | |
bbe3aad6 | 87 | %attr(755,root,root) %{_bindir}/daq-modules-config |
22fa44a2 JR |
88 | |
89 | %files static | |
90 | %defattr(644,root,root,755) | |
91 | %{_libdir}/libdaq.a | |
92 | %{_libdir}/libdaq_static.a | |
93 | %{_libdir}/libdaq_static_modules.a | |
94 | %{_libdir}/libsfbpf.a |