]> git.pld-linux.org Git - packages/libprelude.git/blame - libprelude.spec
- release 6 (by relup.sh)
[packages/libprelude.git] / libprelude.spec
CommitLineData
26c3f184 1#
2# Conditional build:
38968c27
JB
3%bcond_without lua # Lua (5.1) bindings
4%bcond_without perl # Perl bindings
5%bcond_without python # Python bindings (required by prewikka)
9bae6390 6%bcond_without ruby # Ruby bindings
26c3f184 7#
f1347e6d 8%include /usr/lib/rpm/macros.perl
6c16cb84 9Summary: The Prelude library
6a1accbc 10Summary(pl.UTF-8): Biblioteka Prelude
f1347e6d 11Name: libprelude
4ddd3a0d 12Version: 1.0.1
d997268d 13Release: 6
d0949742 14License: GPL v2 or commercial
f1347e6d 15Group: Libraries
4ddd3a0d
MK
16# https://www.prelude-ids.org/projects/prelude/files
17Source0: https://www.prelude-ids.org/attachments/download/241/%{name}-%{version}.tar.gz
18# Source0-md5: dce1ea9f82cf436830567894e7ee622f
30591219 19Patch0: %{name}-libtool.patch
38968c27 20Patch1: %{name}-ruby.patch
4ddd3a0d
MK
21Patch2: %{name}-gnutls.patch
22Patch3: %{name}-gets.patch
23Patch4: %{name}-python.patch
c270bce3 24Patch5: format-security.patch
24d829c8 25URL: http://www.prelude-ids.com/
d0949742
JB
26BuildRequires: autoconf >= 2.59
27BuildRequires: automake
f1347e6d
AM
28BuildRequires: bison
29BuildRequires: flex
9320b06b 30BuildRequires: gnutls-devel >= 1.0.17
d0949742
JB
31BuildRequires: gtk-doc >= 1.0
32BuildRequires: libgcrypt-devel >= 1.1.94
38968c27 33BuildRequires: libltdl-devel >= 2:2.0
eb068d3a 34BuildRequires: libstdc++-devel
38968c27
JB
35BuildRequires: libtool >= 2:2.0
36%{?with_lua:BuildRequires: lua51-devel >= 5.1}
9320b06b 37%{?with_perl:BuildRequires: perl-devel}
d0949742 38%{?with_python:BuildRequires: python-devel >= 1:2.5}
f1347e6d 39BuildRequires: rpm-perlprov
d0949742
JB
40BuildRequires: rpm-pythonprov
41BuildRequires: rpmbuild(macros) >= 1.219
9bae6390 42%{?with_ruby:BuildRequires: ruby-devel >= 1.9}
38968c27 43BuildRequires: sed >= 4.0
30591219 44%{?with_perl:BuildRequires: swig-perl}
38968c27
JB
45%{?with_python:BuildRequires: swig-python}
46%{?with_ruby:BuildRequires: swig-ruby}
d0949742 47Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%description
6c16cb84 51The Prelude library is a collection of generic functions providing
f1347e6d
AM
52communication between the Prelude Hybrid IDS suite components. It
53provides a convenient interface for sending alerts to Prelude Manager
54with transparent SSL, failover and replication support, asynchronous
55events and timer interfaces, an abstracted configuration API (hooking
56at the commandline, the configuration line, or wide configuration,
57available from the Manager), and a generic plugin API. It allows you
58to easily turn your favorite security program into a Prelude sensor.
59
5db7d1dc
JR
60%description -l pl.UTF-8
61Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
62komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
63Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
64przezroczystą obsługę SSL, failover i replikacji, interfejsy do
65zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
81042991 66(obsługujące linię poleceń, linię konfiguracji i konfigurację dostępną
67z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić ulubiony
68program związany z bezpieczeństwem na czujnik Prelude.
7758741a 69
f1347e6d 70%package libs
6c16cb84 71Summary: The Prelude library
6a1accbc 72Summary(pl.UTF-8): Biblioteka Prelude
7758741a 73Group: Libraries
d0949742
JB
74Requires: gnutls >= 1.0.17
75Requires: libgcrypt >= 1.1.94
f1347e6d
AM
76
77%description libs
6c16cb84 78The Prelude library.
f1347e6d 79
5db7d1dc 80%description libs -l pl.UTF-8
7758741a
JB
81Biblioteka Prelude.
82
f1347e6d 83%package devel
7758741a 84Summary: Header files and development documentation for libprelude
6a1accbc 85Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
f1347e6d 86Group: Development/Libraries
7758741a 87Requires: %{name}-libs = %{version}-%{release}
d0949742
JB
88Requires: gnutls-devel >= 1.0.17
89Requires: libgcrypt-devel >= 1.1.94
90Requires: libltdl-devel
f1347e6d
AM
91
92%description devel
7758741a
JB
93Header files and development documentation for libprelude.
94
5db7d1dc
JR
95%description devel -l pl.UTF-8
96Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
f1347e6d
AM
97
98%package static
99Summary: Static libprelude library
6a1accbc 100Summary(pl.UTF-8): Statyczna biblioteka libprelude
f1347e6d 101Group: Development/Libraries
7758741a 102Requires: %{name}-devel = %{version}-%{release}
f1347e6d
AM
103
104%description static
105Static libprelude library.
106
5db7d1dc 107%description static -l pl.UTF-8
7758741a
JB
108Statyczna biblioteka libprelude.
109
eb068d3a
JB
110%package c++
111Summary: libpreludecpp - C++ binding for libprelude
112Summary(pl.UTF-8): libpreludecpp - wiązanie C++ do libprelude
113Group: Libraries
114Requires: %{name}-libs = %{version}-%{release}
115
116%description c++
117libpreludecpp - C++ binding for libprelude.
118
119%description c++ -l pl.UTF-8
120libpreludecpp - wiązanie C++ do libprelude.
121
122%package c++-devel
123Summary: Header file for libpreludecpp library
124Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libpreludecpp
125Group: Development/Libraries
126Requires: %{name}-c++ = %{version}-%{release}
127Requires: %{name}-devel = %{version}-%{release}
128Requires: libstdc++-devel
129
130%description c++-devel
131Header file for libpreludecpp library - C++ binding for libprelude.
132
133%description c++-devel -l pl.UTF-8
134Pliki nagłówkowe biblioteki libpreludecpp - wiązań C++ do libprelude.
135
136%package c++-static
137Summary: Static libpreludecpp library
138Summary(pl.UTF-8): Statyczna biblioteka libpreludecpp
139Group: Development/Libraries
140Requires: %{name}-c++-devel = %{version}-%{release}
141
142%description c++-static
143Static libpreludecpp library.
144
145%description c++-static -l pl.UTF-8
146Statyczna biblioteka libpreludecpp.
147
38968c27 148%package -n lua-prelude
9bae6390
JB
149Summary: PreludeEasy - libprelude Lua bindings
150Summary(pl.UTF-8): PreludeEasy - dowiązania języka Lua do libprelude
38968c27 151Group: Development/Languages
eb068d3a 152Requires: %{name}-c++ = %{version}-%{release}
38968c27
JB
153
154%description -n lua-prelude
9bae6390 155PreludeEasy - libprelude Lua bindings.
38968c27
JB
156
157%description -n lua-prelude -l pl.UTF-8
9bae6390 158PreludeEasy - dowiązania języka Lua do libprelude.
38968c27 159
f1347e6d 160%package -n perl-libprelude
eb068d3a
JB
161Summary: Prelude Perl module - low-level Perl binding for libprelude
162Summary(pl.UTF-8): Moduł Perla Prelude - niskopoziomowe wiązanie Perla do libprelude
f1347e6d 163Group: Development/Languages/Perl
d0949742 164Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
165
166%description -n perl-libprelude
eb068d3a 167Prelude Perl module - low-level Perl binding for libprelude.
7758741a 168
5db7d1dc 169%description -n perl-libprelude -l pl.UTF-8
eb068d3a
JB
170Moduł Perla Prelude - niskopoziomowe wiązanie Perla do libprelude.
171
172%package -n perl-PreludeEasy
173Summary: PreludeEasy - high-level Perl binding for libprelude
174Summary(pl.UTF-8): PreludeEasy - wysokopoziomowe wiązanie Perla do libprelude
175Group: Development/Languages/Perl
176Requires: %{name}-c++ = %{version}-%{release}
177
178%description -n perl-PreludeEasy
179PreludeEasy - high-level Perl binding for libprelude.
180
181%description -n perl-PreludeEasy -l pl.UTF-8
182PreludeEasy - wysokopoziomowe wiązanie Perla do libprelude.
f1347e6d
AM
183
184%package -n python-libprelude
eb068d3a
JB
185Summary: Low-level Python binding for libprelude
186Summary(pl.UTF-8): Niskopoziomowe wiązanie Pythona do libprelude
f1347e6d 187Group: Development/Languages/Python
d0949742 188Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
189
190%description -n python-libprelude
eb068d3a 191Low-level Python binding for libprelude.
7758741a 192
5db7d1dc 193%description -n python-libprelude -l pl.UTF-8
eb068d3a
JB
194Niskopoziomowe wiązanie Pythona do libprelude.
195
196%package -n python-PreludeEasy
197Summary: PreludeEasy - high-level Python binding for libprelude
198Summary(pl.UTF-8): PreludeEasy - wysokopoziomowe wiązanie Pythona do libprelude
199Group: Development/Languages/Python
200Requires: %{name}-c++ = %{version}-%{release}
201
202%description -n python-PreludeEasy
203PreludeEasy - high-level Python binding for libprelude.
204
205%description -n python-PreludeEasy -l pl.UTF-8
206PreludeEasy - wysokopoziomowe wiązanie Pythona do libprelude.
f1347e6d 207
9bae6390
JB
208%package -n ruby-prelude
209Summary: PreludeEasy - libprelude Ruby bindings
210Summary(pl.UTF-8): PreludeEasy - dowiązania języka Ruby do libprelude
211Group: Development/Languages
eb068d3a 212Requires: %{name}-c++ = %{version}-%{release}
9bae6390
JB
213
214%description -n ruby-prelude
215PreludeEasy - libprelude Ruby bindings.
216
217%description -n ruby-prelude -l pl.UTF-8
218PreludeEasy - dowiązania języka Ruby do libprelude.
219
f1347e6d 220%prep
6de9ce54 221%setup -q
30591219 222%patch0 -p1
38968c27
JB
223
224%if %{with python}
225# regenerate with fresh swig for gcc 4.6+
226%{__rm} bindings/python/{_PreludeEasy.cxx,PreludeEasy.py}
227%endif
228%if %{with ruby}
229# same for ruby 1.9
38968c27 230%{__rm} bindings/ruby/PreludeEasy.cxx
9bae6390 231%patch1 -p1
38968c27
JB
232%endif
233
4ddd3a0d
MK
234%patch2 -p1
235%patch3 -p1
236%patch4 -p1
c270bce3 237%patch5 -p1
4ddd3a0d 238
38968c27 239sed -i -e 's/lua >= 5.1/lua51 >= 5.1/' configure.in
f1347e6d
AM
240
241%build
d0949742
JB
242%{__libtoolize}
243%{__aclocal} -I m4 -I libmissing/m4
244%{__autoconf}
245%{__autoheader}
246%{__automake}
f1347e6d 247%configure \
62e43182 248 am_cv_ruby_rbexecdir=%{ruby_vendorarchdir} \
f1347e6d 249 --enable-gtk-doc \
38968c27
JB
250 --enable-static \
251 --with%{!?with_lua:out}-lua \
f4f6dcd7 252 --with%{!?with_perl:out}-perl \
253 --with%{!?with_python:out}-python \
d0949742
JB
254 --with-html-dir=%{_gtkdocdir}/libprelude \
255 --with-perl-installdirs=vendor
6de9ce54 256
f1347e6d
AM
257%{__make}
258
62e43182
JR
259cd bindings/perl
260%{__make} clean
261%{__perl} Makefile.PL \
262 INSTALLDIRS=vendor \
263%{__make}
264
f1347e6d
AM
265%install
266rm -rf $RPM_BUILD_ROOT
267
268%{__make} install \
269 DESTDIR=$RPM_BUILD_ROOT
270
62e43182
JR
271%{__make} -C bindings/perl install \
272 DESTDIR=$RPM_BUILD_ROOT
273
9bae6390
JB
274%if %{with lua}
275%{__rm} $RPM_BUILD_ROOT%{_libdir}/PreludeEasy.{la,a}
276%endif
9320b06b 277%if %{with python}
f1347e6d
AM
278%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
279%py_comp $RPM_BUILD_ROOT%{py_sitedir}
d0949742 280%py_postclean
9320b06b 281%endif
9bae6390 282%if %{with ruby}
62e43182 283%{__rm} $RPM_BUILD_ROOT%{ruby_vendorarchdir}/PreludeEasy.{la,a}
38968c27 284%endif
f1347e6d
AM
285
286%clean
287rm -rf $RPM_BUILD_ROOT
288
6c16cb84 289%post libs -p /sbin/ldconfig
7758741a 290%postun libs -p /sbin/ldconfig
f1347e6d 291
eb068d3a
JB
292%post c++ -p /sbin/ldconfig
293%postun c++ -p /sbin/ldconfig
294
f1347e6d
AM
295%files
296%defattr(644,root,root,755)
d0949742
JB
297%doc AUTHORS ChangeLog LICENSE.README NEWS README
298%attr(755,root,root) %{_bindir}/prelude-adduser
299%attr(755,root,root) %{_bindir}/prelude-admin
f1347e6d
AM
300%dir %{_sysconfdir}/prelude
301%dir %{_sysconfdir}/prelude/default
38968c27
JB
302%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/client.conf
303%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/global.conf
304%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/idmef-client.conf
305%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/tls.conf
f1347e6d 306%dir %{_sysconfdir}/prelude/profile
d0949742 307%{_mandir}/man1/prelude-admin.1*
f1347e6d
AM
308
309%files libs
310%defattr(644,root,root,755)
d0949742
JB
311%attr(755,root,root) %{_libdir}/libprelude.so.*.*.*
312%attr(755,root,root) %ghost %{_libdir}/libprelude.so.2
f1347e6d
AM
313
314%files devel
315%defattr(644,root,root,755)
316%attr(755,root,root) %{_bindir}/libprelude-config
d0949742
JB
317%attr(755,root,root) %{_libdir}/libprelude.so
318%{_libdir}/libprelude.la
eb068d3a
JB
319%dir %{_includedir}/libprelude
320%{_includedir}/libprelude/*.h
d0949742 321%{_aclocaldir}/libprelude.m4
f1347e6d 322%{_gtkdocdir}/libprelude
81042991 323%{_pkgconfigdir}/libprelude.pc
f1347e6d
AM
324
325%files static
326%defattr(644,root,root,755)
d0949742 327%{_libdir}/libprelude.a
eb068d3a
JB
328
329%files c++
330%defattr(644,root,root,755)
331%attr(755,root,root) %{_libdir}/libpreludecpp.so.*.*.*
332%attr(755,root,root) %ghost %{_libdir}/libpreludecpp.so.0
333
334%files c++-devel
335%defattr(644,root,root,755)
336%attr(755,root,root) %{_libdir}/libpreludecpp.so
337%{_libdir}/libpreludecpp.la
338%{_includedir}/libprelude/idmef*.hxx
339%{_includedir}/libprelude/prelude*.hxx
340
341%files c++-static
342%defattr(644,root,root,755)
30591219 343%{_libdir}/libpreludecpp.a
f1347e6d 344
38968c27
JB
345%if %{with lua}
346%files -n lua-prelude
347%defattr(644,root,root,755)
348%attr(755,root,root) %{_libdir}/PreludeEasy.so
349%endif
350
9320b06b 351%if %{with perl}
f1347e6d
AM
352%files -n perl-libprelude
353%defattr(644,root,root,755)
f1347e6d 354%{perl_vendorarch}/Prelude.pm
d0949742
JB
355%dir %{perl_vendorarch}/auto/Prelude
356%{perl_vendorarch}/auto/Prelude/Prelude.bs
357%attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so
eb068d3a
JB
358
359%files -n perl-PreludeEasy
360%defattr(644,root,root,755)
361%{perl_vendorarch}/PreludeEasy.pm
38968c27
JB
362%dir %{perl_vendorarch}/auto/PreludeEasy
363%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.bs
364%attr(755,root,root) %{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
9320b06b 365%endif
f1347e6d 366
9320b06b 367%if %{with python}
f1347e6d
AM
368%files -n python-libprelude
369%defattr(644,root,root,755)
d0949742
JB
370%attr(755,root,root) %{py_sitedir}/_prelude.so
371%{py_sitedir}/prelude.py[co]
eb068d3a
JB
372%{py_sitedir}/prelude-%{version}-py*.egg-info
373
374%files -n python-PreludeEasy
375%defattr(644,root,root,755)
376%attr(755,root,root) %{py_sitedir}/_PreludeEasy.so
30591219 377%{py_sitedir}/PreludeEasy.py[co]
eb068d3a 378%{py_sitedir}/PreludeEasy-%{version}-py*.egg-info
9320b06b 379%endif
9bae6390
JB
380
381%if %{with ruby}
382%files -n ruby-prelude
383%defattr(644,root,root,755)
62e43182 384%attr(755,root,root) %{ruby_vendorarchdir}/PreludeEasy.so
9bae6390 385%endif
This page took 0.68357 seconds and 4 git commands to generate.