]>
Commit | Line | Data |
---|---|---|
26c3f184 | 1 | # |
2 | # Conditional build: | |
b596f7fe JB |
3 | %bcond_without perl # don't build perl bindings |
4 | %bcond_without python # don't build python bindings (required by prewikka) | |
26c3f184 | 5 | # |
f1347e6d | 6 | %include /usr/lib/rpm/macros.perl |
6c16cb84 | 7 | Summary: The Prelude library |
6a1accbc | 8 | Summary(pl.UTF-8): Biblioteka Prelude |
f1347e6d | 9 | Name: libprelude |
81042991 | 10 | Version: 0.9.24.1 |
889548f6 | 11 | Release: 3 |
d0949742 | 12 | License: GPL v2 or commercial |
f1347e6d | 13 | Group: Libraries |
24d829c8 JB |
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 | |
81042991 | 16 | # Source0-md5: 07868b3d54fa8243455a27da6b87239c |
24d829c8 | 17 | URL: http://www.prelude-ids.com/ |
d0949742 JB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake | |
f1347e6d AM |
20 | BuildRequires: bison |
21 | BuildRequires: flex | |
9320b06b | 22 | BuildRequires: gnutls-devel >= 1.0.17 |
d0949742 JB |
23 | BuildRequires: gtk-doc >= 1.0 |
24 | BuildRequires: libgcrypt-devel >= 1.1.94 | |
25 | BuildRequires: libltdl-devel | |
26 | BuildRequires: libtool | |
9320b06b | 27 | %{?with_perl:BuildRequires: perl-devel} |
d0949742 | 28 | %{?with_python:BuildRequires: python-devel >= 1:2.5} |
f1347e6d | 29 | BuildRequires: rpm-perlprov |
d0949742 JB |
30 | BuildRequires: rpm-pythonprov |
31 | BuildRequires: rpmbuild(macros) >= 1.219 | |
32 | Requires: %{name}-libs = %{version}-%{release} | |
f1347e6d AM |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
6c16cb84 | 36 | The Prelude library is a collection of generic functions providing |
f1347e6d AM |
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. | |
44 | ||
5db7d1dc JR |
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 | |
81042991 | 51 | (obsługujące linię poleceń, linię konfiguracji i konfigurację dostępną |
52 | z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić ulubiony | |
53 | program związany z bezpieczeństwem na czujnik Prelude. | |
7758741a | 54 | |
f1347e6d | 55 | %package libs |
6c16cb84 | 56 | Summary: The Prelude library |
6a1accbc | 57 | Summary(pl.UTF-8): Biblioteka Prelude |
7758741a | 58 | Group: Libraries |
d0949742 JB |
59 | Requires: gnutls >= 1.0.17 |
60 | Requires: libgcrypt >= 1.1.94 | |
f1347e6d AM |
61 | |
62 | %description libs | |
6c16cb84 | 63 | The Prelude library. |
f1347e6d | 64 | |
5db7d1dc | 65 | %description libs -l pl.UTF-8 |
7758741a JB |
66 | Biblioteka Prelude. |
67 | ||
f1347e6d | 68 | %package devel |
7758741a | 69 | Summary: Header files and development documentation for libprelude |
6a1accbc | 70 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude |
f1347e6d | 71 | Group: Development/Libraries |
7758741a | 72 | Requires: %{name}-libs = %{version}-%{release} |
d0949742 JB |
73 | Requires: gnutls-devel >= 1.0.17 |
74 | Requires: libgcrypt-devel >= 1.1.94 | |
75 | Requires: libltdl-devel | |
f1347e6d AM |
76 | |
77 | %description devel | |
7758741a JB |
78 | Header files and development documentation for libprelude. |
79 | ||
5db7d1dc JR |
80 | %description devel -l pl.UTF-8 |
81 | Pliki nagłówkowe i dokumentacja programistyczna dla libprelude. | |
f1347e6d AM |
82 | |
83 | %package static | |
84 | Summary: Static libprelude library | |
6a1accbc | 85 | Summary(pl.UTF-8): Statyczna biblioteka libprelude |
f1347e6d | 86 | Group: Development/Libraries |
7758741a | 87 | Requires: %{name}-devel = %{version}-%{release} |
f1347e6d AM |
88 | |
89 | %description static | |
90 | Static libprelude library. | |
91 | ||
5db7d1dc | 92 | %description static -l pl.UTF-8 |
7758741a JB |
93 | Statyczna biblioteka libprelude. |
94 | ||
f1347e6d | 95 | %package -n perl-libprelude |
7758741a | 96 | Summary: libprelude Perl bindings |
6a1accbc | 97 | Summary(pl.UTF-8): Dowiązania Perla do libprelude |
f1347e6d | 98 | Group: Development/Languages/Perl |
d0949742 | 99 | Requires: %{name}-libs = %{version}-%{release} |
f1347e6d AM |
100 | |
101 | %description -n perl-libprelude | |
7758741a JB |
102 | libprelude Perl bindings. |
103 | ||
5db7d1dc JR |
104 | %description -n perl-libprelude -l pl.UTF-8 |
105 | Dowiązania Perla dla libprelude. | |
f1347e6d AM |
106 | |
107 | %package -n python-libprelude | |
7758741a | 108 | Summary: libprelude Python bindings |
6a1accbc | 109 | Summary(pl.UTF-8): Dowiązania Pythona dla libprelude |
f1347e6d | 110 | Group: Development/Languages/Python |
d0949742 | 111 | Requires: %{name}-libs = %{version}-%{release} |
f1347e6d AM |
112 | |
113 | %description -n python-libprelude | |
7758741a JB |
114 | libprelude Python bindings. |
115 | ||
5db7d1dc JR |
116 | %description -n python-libprelude -l pl.UTF-8 |
117 | Dowiązania Pythona dla libprelude. | |
f1347e6d AM |
118 | |
119 | %prep | |
6de9ce54 | 120 | %setup -q |
f1347e6d AM |
121 | |
122 | %build | |
d0949742 JB |
123 | %{__libtoolize} |
124 | %{__aclocal} -I m4 -I libmissing/m4 | |
125 | %{__autoconf} | |
126 | %{__autoheader} | |
127 | %{__automake} | |
f1347e6d | 128 | %configure \ |
f1347e6d | 129 | --enable-static \ |
f1347e6d | 130 | --enable-gtk-doc \ |
f4f6dcd7 | 131 | --with%{!?with_perl:out}-perl \ |
132 | --with%{!?with_python:out}-python \ | |
d0949742 JB |
133 | --with-html-dir=%{_gtkdocdir}/libprelude \ |
134 | --with-perl-installdirs=vendor | |
6de9ce54 | 135 | |
f1347e6d AM |
136 | %{__make} |
137 | ||
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %{__make} install \ | |
142 | DESTDIR=$RPM_BUILD_ROOT | |
143 | ||
9320b06b | 144 | %if %{with python} |
f1347e6d AM |
145 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
146 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
d0949742 | 147 | %py_postclean |
9320b06b | 148 | %endif |
f1347e6d AM |
149 | |
150 | %clean | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
6c16cb84 | 153 | %post libs -p /sbin/ldconfig |
7758741a | 154 | %postun libs -p /sbin/ldconfig |
f1347e6d AM |
155 | |
156 | %files | |
157 | %defattr(644,root,root,755) | |
d0949742 JB |
158 | %doc AUTHORS ChangeLog LICENSE.README NEWS README |
159 | %attr(755,root,root) %{_bindir}/prelude-adduser | |
160 | %attr(755,root,root) %{_bindir}/prelude-admin | |
f1347e6d AM |
161 | %dir %{_sysconfdir}/prelude |
162 | %dir %{_sysconfdir}/prelude/default | |
7758741a | 163 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/*.conf |
f1347e6d | 164 | %dir %{_sysconfdir}/prelude/profile |
d0949742 | 165 | %{_mandir}/man1/prelude-admin.1* |
f1347e6d AM |
166 | |
167 | %files libs | |
168 | %defattr(644,root,root,755) | |
d0949742 JB |
169 | %attr(755,root,root) %{_libdir}/libprelude.so.*.*.* |
170 | %attr(755,root,root) %ghost %{_libdir}/libprelude.so.2 | |
f1347e6d AM |
171 | |
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_bindir}/libprelude-config | |
d0949742 JB |
175 | %attr(755,root,root) %{_libdir}/libprelude.so |
176 | %{_libdir}/libprelude.la | |
f1347e6d | 177 | %{_includedir}/libprelude |
d0949742 | 178 | %{_aclocaldir}/libprelude.m4 |
f1347e6d | 179 | %{_gtkdocdir}/libprelude |
81042991 | 180 | %{_pkgconfigdir}/libprelude.pc |
f1347e6d AM |
181 | |
182 | %files static | |
183 | %defattr(644,root,root,755) | |
d0949742 | 184 | %{_libdir}/libprelude.a |
f1347e6d | 185 | |
9320b06b | 186 | %if %{with perl} |
f1347e6d AM |
187 | %files -n perl-libprelude |
188 | %defattr(644,root,root,755) | |
f1347e6d | 189 | %{perl_vendorarch}/Prelude.pm |
d0949742 JB |
190 | %dir %{perl_vendorarch}/auto/Prelude |
191 | %{perl_vendorarch}/auto/Prelude/Prelude.bs | |
192 | %attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so | |
9320b06b | 193 | %endif |
f1347e6d | 194 | |
9320b06b | 195 | %if %{with python} |
f1347e6d AM |
196 | %files -n python-libprelude |
197 | %defattr(644,root,root,755) | |
d0949742 JB |
198 | %attr(755,root,root) %{py_sitedir}/_prelude.so |
199 | %{py_sitedir}/prelude.py[co] | |
200 | %{py_sitedir}/prelude-*.egg-info | |
9320b06b | 201 | %endif |