3 %bcond_without perl # don't build perl bindings
4 %bcond_without python # don't build python bindings (required by prewikka)
6 %include /usr/lib/rpm/macros.perl
7 Summary: The Prelude library
8 Summary(pl.UTF-8): Biblioteka Prelude
12 License: GPL v2 or commercial
14 Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
15 # Source0-md5: 1dcffc4149bd444ba977c5d1d8573792
16 Patch0: %{name}-libdir.patch
17 URL: http://www.prelude-ids.org/
18 BuildRequires: autoconf >= 2.59
19 BuildRequires: automake
22 BuildRequires: gnutls-devel >= 1.0.17
23 BuildRequires: gtk-doc >= 1.0
24 BuildRequires: libgcrypt-devel >= 1.1.94
25 BuildRequires: libltdl-devel
26 BuildRequires: libtool
27 %{?with_perl:BuildRequires: perl-devel}
28 %{?with_python:BuildRequires: python-devel >= 1:2.5}
29 BuildRequires: rpm-perlprov
30 BuildRequires: rpm-pythonprov
31 BuildRequires: rpmbuild(macros) >= 1.219
32 Requires: %{name}-libs = %{version}-%{release}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 The Prelude library is a collection of generic functions providing
37 communication between the Prelude Hybrid IDS suite components. It
38 provides a convenient interface for sending alerts to Prelude Manager
39 with transparent SSL, failover and replication support, asynchronous
40 events and timer interfaces, an abstracted configuration API (hooking
41 at the commandline, the configuration line, or wide configuration,
42 available from the Manager), and a generic plugin API. It allows you
43 to easily turn your favorite security program into a Prelude sensor.
45 %description -l pl.UTF-8
46 Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
47 komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
48 Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
49 przezroczystą obsługę SSL, failover i replikacji, interfejsy do
50 zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
51 (obsługujące linię poleceń, linię konfiguracji i konfigurację
52 dostępną z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić
53 ulubiony program związany z bezpieczeństwem na czujnik Prelude.
56 Summary: The Prelude library
57 Summary(pl.UTF-8): Biblioteka Prelude
59 Requires: gnutls >= 1.0.17
60 Requires: libgcrypt >= 1.1.94
65 %description libs -l pl.UTF-8
69 Summary: Header files and development documentation for libprelude
70 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
71 Group: Development/Libraries
72 Requires: %{name}-libs = %{version}-%{release}
73 Requires: gnutls-devel >= 1.0.17
74 Requires: libgcrypt-devel >= 1.1.94
75 Requires: libltdl-devel
78 Header files and development documentation for libprelude.
80 %description devel -l pl.UTF-8
81 Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
84 Summary: Static libprelude library
85 Summary(pl.UTF-8): Statyczna biblioteka libprelude
86 Group: Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
90 Static libprelude library.
92 %description static -l pl.UTF-8
93 Statyczna biblioteka libprelude.
95 %package -n perl-libprelude
96 Summary: libprelude Perl bindings
97 Summary(pl.UTF-8): Dowiązania Perla do libprelude
98 Group: Development/Languages/Perl
99 Requires: %{name}-libs = %{version}-%{release}
101 %description -n perl-libprelude
102 libprelude Perl bindings.
104 %description -n perl-libprelude -l pl.UTF-8
105 Dowiązania Perla dla libprelude.
107 %package -n python-libprelude
108 Summary: libprelude Python bindings
109 Summary(pl.UTF-8): Dowiązania Pythona dla libprelude
110 Group: Development/Languages/Python
111 Requires: %{name}-libs = %{version}-%{release}
113 %description -n python-libprelude
114 libprelude Python bindings.
116 %description -n python-libprelude -l pl.UTF-8
117 Dowiązania Pythona dla libprelude.
125 %{__aclocal} -I m4 -I libmissing/m4
132 --with%{!?with_perl:out}-perl \
133 --with%{!?with_python:out}-python \
134 --with-html-dir=%{_gtkdocdir}/libprelude \
135 --with-perl-installdirs=vendor
140 rm -rf $RPM_BUILD_ROOT
143 DESTDIR=$RPM_BUILD_ROOT
146 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
147 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
152 rm -rf $RPM_BUILD_ROOT
154 %post libs -p /sbin/ldconfig
155 %postun libs -p /sbin/ldconfig
158 %defattr(644,root,root,755)
159 %doc AUTHORS ChangeLog LICENSE.README NEWS README
160 %attr(755,root,root) %{_bindir}/prelude-adduser
161 %attr(755,root,root) %{_bindir}/prelude-admin
162 %dir %{_sysconfdir}/prelude
163 %dir %{_sysconfdir}/prelude/default
164 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/*.conf
165 %dir %{_sysconfdir}/prelude/profile
166 %{_mandir}/man1/prelude-admin.1*
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_libdir}/libprelude.so.*.*.*
171 %attr(755,root,root) %ghost %{_libdir}/libprelude.so.2
174 %defattr(644,root,root,755)
175 %attr(755,root,root) %{_bindir}/libprelude-config
176 %attr(755,root,root) %{_libdir}/libprelude.so
177 %{_libdir}/libprelude.la
178 %{_includedir}/libprelude
179 %{_aclocaldir}/libprelude.m4
180 %{_gtkdocdir}/libprelude
183 %defattr(644,root,root,755)
184 %{_libdir}/libprelude.a
187 %files -n perl-libprelude
188 %defattr(644,root,root,755)
189 %{perl_vendorarch}/Prelude.pm
190 %dir %{perl_vendorarch}/auto/Prelude
191 %{perl_vendorarch}/auto/Prelude/Prelude.bs
192 %attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so
196 %files -n python-libprelude
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{py_sitedir}/_prelude.so
199 %{py_sitedir}/prelude.py[co]
200 %{py_sitedir}/prelude-*.egg-info