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): Biblioteka Prelude
14 Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
15 # Source0-md5: 4636cf21c3e96adbd9463138fb49f401
16 URL: http://www.prelude-ids.org/
19 BuildRequires: gnutls-devel >= 1.0.17
20 BuildRequires: gtk-doc
21 %{?with_perl:BuildRequires: perl-devel}
22 %{?with_python:BuildRequires: python-devel}
23 BuildRequires: rpm-perlprov
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Prelude library is a collection of generic functions providing
28 communication between the Prelude Hybrid IDS suite components. It
29 provides a convenient interface for sending alerts to Prelude Manager
30 with transparent SSL, failover and replication support, asynchronous
31 events and timer interfaces, an abstracted configuration API (hooking
32 at the commandline, the configuration line, or wide configuration,
33 available from the Manager), and a generic plugin API. It allows you
34 to easily turn your favorite security program into a Prelude sensor.
37 Biblioteka Prelude to zbiór ogólnych funkcji zapewniaj±cych
38 komunikacjê pomiêdzy komponentami zestawu Prelude Hybrid IDS.
39 Dostarcza wygodny interfejs do wysy³ania alarmów do zarz±dcy Prelude z
40 przezroczyst± obs³ugê SSL, failover i replikacji, interfejsy do
41 zdarzeñ asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
42 (obs³uguj±ce liniê poleceñ, liniê konfiguracji i konfiguracjê
43 dostêpn± z zarz±dcy) oraz ogólne API wtyczek. Pozwala ³atwo zamieniæ
44 ulubiony program zwi±zany z bezpieczeñstwem na czujnik Prelude.
47 Summary: The Prelude library
48 Summary(pl): Biblioteka Prelude
54 %description libs -l pl
58 Summary: Header files and development documentation for libprelude
59 Summary(pl): Pliki nag³ówkowe i dokumentacja programistyczna dla libprelude
60 Group: Development/Libraries
61 Requires: %{name}-libs = %{version}-%{release}
62 Requires: gnutls-devel
65 Header files and development documentation for libprelude.
67 %description devel -l pl
68 Pliki nag³ówkowe i dokumentacja programistyczna dla libprelude.
71 Summary: Static libprelude library
72 Summary(pl): Statyczna biblioteka libprelude
73 Group: Development/Libraries
74 Requires: %{name}-devel = %{version}-%{release}
77 Static libprelude library.
79 %description static -l pl
80 Statyczna biblioteka libprelude.
82 %package -n perl-libprelude
83 Summary: libprelude Perl bindings
84 Summary(pl): Dowi±zania Perla do libprelude
85 Group: Development/Languages/Perl
87 %description -n perl-libprelude
88 libprelude Perl bindings.
90 %description -n perl-libprelude -l pl
91 Dowi±zania Perla dla libprelude.
93 %package -n python-libprelude
94 Summary: libprelude Python bindings
95 Summary(pl): Dowi±zania Pythona dla libprelude
96 Group: Development/Languages/Python
98 %description -n python-libprelude
99 libprelude Python bindings.
101 %description -n python-libprelude -l pl
102 Dowi±zania Pythona dla libprelude.
112 --with%{!?with_perl:out}-perl \
113 --with%{!?with_python:out}-python \
114 --with-html-dir=%{_gtkdocdir}/libprelude
116 # first make the perl makefile otherwise with jobserver strange things happen:
117 # Makefile out-of-date with respect to Makefile.PL
119 %{__make} -C bindings perl/Makefile.PL
125 rm -rf $RPM_BUILD_ROOT
128 DESTDIR=$RPM_BUILD_ROOT
130 # are generating wrong dependencies (and are not needed anyway)
131 find $RPM_BUILD_ROOT -iregex .*.la -exec rm {} \;
134 cd bindings/perl && %{__perl} Makefile.PL \
137 %{__make} -C bindings/perl install \
138 DESTDIR=$RPM_BUILD_ROOT
142 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
143 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
147 rm -rf $RPM_BUILD_ROOT
149 %post libs -p /sbin/ldconfig
150 %postun libs -p /sbin/ldconfig
153 %defattr(644,root,root,755)
154 %doc AUTHORS ChangeLog NEWS README
155 %dir %{_sysconfdir}/prelude
156 %dir %{_sysconfdir}/prelude/default
157 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/*.conf
158 %dir %{_sysconfdir}/prelude/profile
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_bindir}/prelude-adduser
163 %attr(755,root,root) %{_libdir}/lib*.so.*.*
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_bindir}/libprelude-config
168 %attr(755,root,root) %{_libdir}/lib*.so
169 %{_includedir}/libprelude
171 %{_gtkdocdir}/libprelude
174 %defattr(644,root,root,755)
178 %files -n perl-libprelude
179 %defattr(644,root,root,755)
180 %dir %{perl_vendorarch}/auto/Prelude
181 %attr(755,root,root) %{perl_vendorarch}/auto/Prelude/*.so
182 %{perl_vendorarch}/auto/Prelude/*.bs
183 %{perl_vendorarch}/Prelude.pm
187 %files -n python-libprelude
188 %defattr(644,root,root,755)
189 %attr(755,root,root) %{py_sitedir}/*.so
190 %{py_sitedir}/*.py[co]