3 %bcond_without lua # Lua (5.1) bindings
4 %bcond_without perl # Perl bindings
5 %bcond_without python # Python bindings (required by prewikka)
6 %bcond_without ruby # Ruby bindings
8 %include /usr/lib/rpm/macros.perl
9 Summary: The Prelude library
10 Summary(pl.UTF-8): Biblioteka Prelude
14 License: GPL v2 or commercial
16 #Source0Download: http://www.prelude-ids.com/developpement/telechargement/index.html
17 Source0: http://www.prelude-ids.com/download/releases/libprelude/%{name}-%{version}.tar.gz
18 # Source0-md5: a5bb76538d240e5fac5f6ab0b7fabfe5
19 Patch0: %{name}-libtool.patch
20 Patch1: %{name}-ruby.patch
21 URL: http://www.prelude-ids.com/
22 BuildRequires: autoconf >= 2.59
23 BuildRequires: automake
26 BuildRequires: gnutls-devel >= 1.0.17
27 BuildRequires: gtk-doc >= 1.0
28 BuildRequires: libgcrypt-devel >= 1.1.94
29 BuildRequires: libltdl-devel >= 2:2.0
30 BuildRequires: libtool >= 2:2.0
31 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
32 %{?with_perl:BuildRequires: perl-devel}
33 %{?with_python:BuildRequires: python-devel >= 1:2.5}
34 BuildRequires: rpm-perlprov
35 BuildRequires: rpm-pythonprov
36 BuildRequires: rpmbuild(macros) >= 1.219
37 %{?with_ruby:BuildRequires: ruby-devel >= 1.9}
38 BuildRequires: sed >= 4.0
39 %{?with_perl:BuildRequires: swig-perl}
40 %{?with_python:BuildRequires: swig-python}
41 %{?with_ruby:BuildRequires: swig-ruby}
42 Requires: %{name}-libs = %{version}-%{release}
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 The Prelude library is a collection of generic functions providing
47 communication between the Prelude Hybrid IDS suite components. It
48 provides a convenient interface for sending alerts to Prelude Manager
49 with transparent SSL, failover and replication support, asynchronous
50 events and timer interfaces, an abstracted configuration API (hooking
51 at the commandline, the configuration line, or wide configuration,
52 available from the Manager), and a generic plugin API. It allows you
53 to easily turn your favorite security program into a Prelude sensor.
55 %description -l pl.UTF-8
56 Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
57 komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
58 Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
59 przezroczystą obsługę SSL, failover i replikacji, interfejsy do
60 zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
61 (obsługujące linię poleceń, linię konfiguracji i konfigurację dostępną
62 z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić ulubiony
63 program związany z bezpieczeństwem na czujnik Prelude.
66 Summary: The Prelude library
67 Summary(pl.UTF-8): Biblioteka Prelude
69 Requires: gnutls >= 1.0.17
70 Requires: libgcrypt >= 1.1.94
75 %description libs -l pl.UTF-8
79 Summary: Header files and development documentation for libprelude
80 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
81 Group: Development/Libraries
82 Requires: %{name}-libs = %{version}-%{release}
83 Requires: gnutls-devel >= 1.0.17
84 Requires: libgcrypt-devel >= 1.1.94
85 Requires: libltdl-devel
88 Header files and development documentation for libprelude.
90 %description devel -l pl.UTF-8
91 Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
94 Summary: Static libprelude library
95 Summary(pl.UTF-8): Statyczna biblioteka libprelude
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
100 Static libprelude library.
102 %description static -l pl.UTF-8
103 Statyczna biblioteka libprelude.
105 %package -n lua-prelude
106 Summary: PreludeEasy - libprelude Lua bindings
107 Summary(pl.UTF-8): PreludeEasy - dowiązania języka Lua do libprelude
108 Group: Development/Languages
109 Requires: %{name} = %{version}-%{release}
111 %description -n lua-prelude
112 PreludeEasy - libprelude Lua bindings.
114 %description -n lua-prelude -l pl.UTF-8
115 PreludeEasy - dowiązania języka Lua do libprelude.
117 %package -n perl-libprelude
118 Summary: libprelude Perl bindings
119 Summary(pl.UTF-8): Dowiązania Perla do libprelude
120 Group: Development/Languages/Perl
121 Requires: %{name}-libs = %{version}-%{release}
123 %description -n perl-libprelude
124 libprelude Perl bindings.
126 %description -n perl-libprelude -l pl.UTF-8
127 Dowiązania Perla dla libprelude.
129 %package -n python-libprelude
130 Summary: libprelude Python bindings
131 Summary(pl.UTF-8): Dowiązania Pythona dla libprelude
132 Group: Development/Languages/Python
133 Requires: %{name}-libs = %{version}-%{release}
135 %description -n python-libprelude
136 libprelude Python bindings.
138 %description -n python-libprelude -l pl.UTF-8
139 Dowiązania Pythona dla libprelude.
141 %package -n ruby-prelude
142 Summary: PreludeEasy - libprelude Ruby bindings
143 Summary(pl.UTF-8): PreludeEasy - dowiązania języka Ruby do libprelude
144 Group: Development/Languages
145 Requires: %{name} = %{version}-%{release}
147 %description -n ruby-prelude
148 PreludeEasy - libprelude Ruby bindings.
150 %description -n ruby-prelude -l pl.UTF-8
151 PreludeEasy - dowiązania języka Ruby do libprelude.
158 # regenerate with fresh swig for gcc 4.6+
159 %{__rm} bindings/python/{_PreludeEasy.cxx,PreludeEasy.py}
163 %{__rm} bindings/ruby/PreludeEasy.cxx
167 sed -i -e 's/lua >= 5.1/lua51 >= 5.1/' configure.in
171 %{__aclocal} -I m4 -I libmissing/m4
178 --with%{!?with_lua:out}-lua \
179 --with%{!?with_perl:out}-perl \
180 --with%{!?with_python:out}-python \
181 --with-html-dir=%{_gtkdocdir}/libprelude \
182 --with-perl-installdirs=vendor
187 rm -rf $RPM_BUILD_ROOT
190 DESTDIR=$RPM_BUILD_ROOT
193 %{__rm} $RPM_BUILD_ROOT%{_libdir}/PreludeEasy.{la,a}
196 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
197 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
201 %{__rm} $RPM_BUILD_ROOT%{ruby_sitearchdir}/PreludeEasy.{la,a}
205 rm -rf $RPM_BUILD_ROOT
207 %post libs -p /sbin/ldconfig
208 %postun libs -p /sbin/ldconfig
211 %defattr(644,root,root,755)
212 %doc AUTHORS ChangeLog LICENSE.README NEWS README
213 %attr(755,root,root) %{_bindir}/prelude-adduser
214 %attr(755,root,root) %{_bindir}/prelude-admin
215 %dir %{_sysconfdir}/prelude
216 %dir %{_sysconfdir}/prelude/default
217 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/client.conf
218 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/global.conf
219 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/idmef-client.conf
220 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/tls.conf
221 %dir %{_sysconfdir}/prelude/profile
222 %{_mandir}/man1/prelude-admin.1*
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libprelude.so.*.*.*
227 %attr(755,root,root) %{_libdir}/libpreludecpp.so.*.*.*
228 %attr(755,root,root) %ghost %{_libdir}/libprelude.so.2
229 %attr(755,root,root) %ghost %{_libdir}/libpreludecpp.so.0
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_bindir}/libprelude-config
234 %attr(755,root,root) %{_libdir}/libprelude.so
235 %attr(755,root,root) %{_libdir}/libpreludecpp.so
236 %{_libdir}/libprelude.la
237 %{_libdir}/libpreludecpp.la
238 %{_includedir}/libprelude
239 %{_aclocaldir}/libprelude.m4
240 %{_gtkdocdir}/libprelude
241 %{_pkgconfigdir}/libprelude.pc
244 %defattr(644,root,root,755)
245 %{_libdir}/libprelude.a
246 %{_libdir}/libpreludecpp.a
249 %files -n lua-prelude
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/PreludeEasy.so
255 %files -n perl-libprelude
256 %defattr(644,root,root,755)
257 %{perl_vendorarch}/Prelude.pm
258 %dir %{perl_vendorarch}/auto/Prelude
259 %{perl_vendorarch}/auto/Prelude/Prelude.bs
260 %attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so
261 %dir %{perl_vendorarch}/auto/PreludeEasy
262 %{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.bs
263 %attr(755,root,root) %{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
267 %files -n python-libprelude
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{py_sitedir}/_prelude.so
270 %attr(755,root,root) %{py_sitedir}/_PreludeEasy.so
271 %{py_sitedir}/prelude.py[co]
272 %{py_sitedir}/PreludeEasy.py[co]
273 %{py_sitedir}/prelude-*.egg-info
274 %{py_sitedir}/PreludeEasy-*.egg-info
278 %files -n ruby-prelude
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{ruby_sitearchdir}/PreludeEasy.so