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
131 cd bindings/perl && %{__perl} Makefile.PL \
134 %{__make} -C bindings/perl install \
135 DESTDIR=$RPM_BUILD_ROOT
139 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
140 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
144 rm -rf $RPM_BUILD_ROOT
146 %post libs -p /sbin/ldconfig
147 %postun libs -p /sbin/ldconfig
150 %defattr(644,root,root,755)
151 %doc AUTHORS ChangeLog NEWS README
152 %dir %{_sysconfdir}/prelude
153 %dir %{_sysconfdir}/prelude/default
154 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/*.conf
155 %dir %{_sysconfdir}/prelude/profile
158 %defattr(644,root,root,755)
159 %attr(755,root,root) %{_bindir}/prelude-adduser
160 %attr(755,root,root) %{_libdir}/lib*.so.*.*
163 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_bindir}/libprelude-config
165 %attr(755,root,root) %{_libdir}/lib*.so
167 %{_includedir}/libprelude
169 %{_gtkdocdir}/libprelude
172 %defattr(644,root,root,755)
176 %files -n perl-libprelude
177 %defattr(644,root,root,755)
178 %dir %{perl_vendorarch}/auto/Prelude
179 %attr(755,root,root) %{perl_vendorarch}/auto/Prelude/*.so
180 %{perl_vendorarch}/auto/Prelude/*.bs
181 %{perl_vendorarch}/Prelude.pm
185 %files -n python-libprelude
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{py_sitedir}/*.so
188 %{py_sitedir}/*.py[co]