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 #Source0Download: http://www.prelude-ids.com/developpement/telechargement/index.html
15 Source0: http://www.prelude-ids.com/download/releases/libprelude/%{name}-%{version}.tar.gz
16 # Source0-md5: 7c769293b4d79be2667993b8a88d42ac
17 Patch0: %{name}-libdir.patch
18 URL: http://www.prelude-ids.com/
19 BuildRequires: autoconf >= 2.59
20 BuildRequires: automake
23 BuildRequires: gnutls-devel >= 1.0.17
24 BuildRequires: gtk-doc >= 1.0
25 BuildRequires: libgcrypt-devel >= 1.1.94
26 BuildRequires: libltdl-devel
27 BuildRequires: libtool
28 %{?with_perl:BuildRequires: perl-devel}
29 %{?with_python:BuildRequires: python-devel >= 1:2.5}
30 BuildRequires: rpm-perlprov
31 BuildRequires: rpm-pythonprov
32 BuildRequires: rpmbuild(macros) >= 1.219
33 Requires: %{name}-libs = %{version}-%{release}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 The Prelude library is a collection of generic functions providing
38 communication between the Prelude Hybrid IDS suite components. It
39 provides a convenient interface for sending alerts to Prelude Manager
40 with transparent SSL, failover and replication support, asynchronous
41 events and timer interfaces, an abstracted configuration API (hooking
42 at the commandline, the configuration line, or wide configuration,
43 available from the Manager), and a generic plugin API. It allows you
44 to easily turn your favorite security program into a Prelude sensor.
46 %description -l pl.UTF-8
47 Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
48 komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
49 Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
50 przezroczystą obsługę SSL, failover i replikacji, interfejsy do
51 zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
52 (obsługujące linię poleceń, linię konfiguracji i konfigurację
53 dostępną z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić
54 ulubiony program związany z bezpieczeństwem na czujnik Prelude.
57 Summary: The Prelude library
58 Summary(pl.UTF-8): Biblioteka Prelude
60 Requires: gnutls >= 1.0.17
61 Requires: libgcrypt >= 1.1.94
66 %description libs -l pl.UTF-8
70 Summary: Header files and development documentation for libprelude
71 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
72 Group: Development/Libraries
73 Requires: %{name}-libs = %{version}-%{release}
74 Requires: gnutls-devel >= 1.0.17
75 Requires: libgcrypt-devel >= 1.1.94
76 Requires: libltdl-devel
79 Header files and development documentation for libprelude.
81 %description devel -l pl.UTF-8
82 Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
85 Summary: Static libprelude library
86 Summary(pl.UTF-8): Statyczna biblioteka libprelude
87 Group: Development/Libraries
88 Requires: %{name}-devel = %{version}-%{release}
91 Static libprelude library.
93 %description static -l pl.UTF-8
94 Statyczna biblioteka libprelude.
96 %package -n perl-libprelude
97 Summary: libprelude Perl bindings
98 Summary(pl.UTF-8): Dowiązania Perla do libprelude
99 Group: Development/Languages/Perl
100 Requires: %{name}-libs = %{version}-%{release}
102 %description -n perl-libprelude
103 libprelude Perl bindings.
105 %description -n perl-libprelude -l pl.UTF-8
106 Dowiązania Perla dla libprelude.
108 %package -n python-libprelude
109 Summary: libprelude Python bindings
110 Summary(pl.UTF-8): Dowiązania Pythona dla libprelude
111 Group: Development/Languages/Python
112 Requires: %{name}-libs = %{version}-%{release}
114 %description -n python-libprelude
115 libprelude Python bindings.
117 %description -n python-libprelude -l pl.UTF-8
118 Dowiązania Pythona dla libprelude.
126 %{__aclocal} -I m4 -I libmissing/m4
133 --with%{!?with_perl:out}-perl \
134 --with%{!?with_python:out}-python \
135 --with-html-dir=%{_gtkdocdir}/libprelude \
136 --with-perl-installdirs=vendor
141 rm -rf $RPM_BUILD_ROOT
144 DESTDIR=$RPM_BUILD_ROOT
147 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
148 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
153 rm -rf $RPM_BUILD_ROOT
155 %post libs -p /sbin/ldconfig
156 %postun libs -p /sbin/ldconfig
159 %defattr(644,root,root,755)
160 %doc AUTHORS ChangeLog LICENSE.README NEWS README
161 %attr(755,root,root) %{_bindir}/prelude-adduser
162 %attr(755,root,root) %{_bindir}/prelude-admin
163 %dir %{_sysconfdir}/prelude
164 %dir %{_sysconfdir}/prelude/default
165 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/*.conf
166 %dir %{_sysconfdir}/prelude/profile
167 %{_mandir}/man1/prelude-admin.1*
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_libdir}/libprelude.so.*.*.*
172 %attr(755,root,root) %ghost %{_libdir}/libprelude.so.2
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_bindir}/libprelude-config
177 %attr(755,root,root) %{_libdir}/libprelude.so
178 %{_libdir}/libprelude.la
179 %{_includedir}/libprelude
180 %{_aclocaldir}/libprelude.m4
181 %{_gtkdocdir}/libprelude
184 %defattr(644,root,root,755)
185 %{_libdir}/libprelude.a
188 %files -n perl-libprelude
189 %defattr(644,root,root,755)
190 %{perl_vendorarch}/Prelude.pm
191 %dir %{perl_vendorarch}/auto/Prelude
192 %{perl_vendorarch}/auto/Prelude/Prelude.bs
193 %attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so
197 %files -n python-libprelude
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{py_sitedir}/_prelude.so
200 %{py_sitedir}/prelude.py[co]
201 %{py_sitedir}/prelude-*.egg-info