]> git.pld-linux.org Git - packages/libprelude.git/blame - libprelude.spec
- refresh PreludeEasy python binding from SWIG sources (needed for gcc 4.6+)
[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)
6%bcond_with ruby # Ruby bindings (not ready for 1.9 yet)
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
30591219
SP
12Version: 1.0.0
13Release: 1
d0949742 14License: GPL v2 or commercial
f1347e6d 15Group: Libraries
24d829c8
JB
16#Source0Download: http://www.prelude-ids.com/developpement/telechargement/index.html
17Source0: http://www.prelude-ids.com/download/releases/libprelude/%{name}-%{version}.tar.gz
30591219
SP
18# Source0-md5: a5bb76538d240e5fac5f6ab0b7fabfe5
19Patch0: %{name}-libtool.patch
38968c27 20Patch1: %{name}-ruby.patch
24d829c8 21URL: http://www.prelude-ids.com/
d0949742
JB
22BuildRequires: autoconf >= 2.59
23BuildRequires: automake
f1347e6d
AM
24BuildRequires: bison
25BuildRequires: flex
9320b06b 26BuildRequires: gnutls-devel >= 1.0.17
d0949742
JB
27BuildRequires: gtk-doc >= 1.0
28BuildRequires: libgcrypt-devel >= 1.1.94
38968c27
JB
29BuildRequires: libltdl-devel >= 2:2.0
30BuildRequires: libtool >= 2:2.0
31%{?with_lua:BuildRequires: lua51-devel >= 5.1}
9320b06b 32%{?with_perl:BuildRequires: perl-devel}
d0949742 33%{?with_python:BuildRequires: python-devel >= 1:2.5}
f1347e6d 34BuildRequires: rpm-perlprov
d0949742
JB
35BuildRequires: rpm-pythonprov
36BuildRequires: rpmbuild(macros) >= 1.219
38968c27
JB
37%{?with_ruby:BuildRequires: ruby-devel >= 1.8, ruby-devel < 1.9}
38BuildRequires: sed >= 4.0
30591219 39%{?with_perl:BuildRequires: swig-perl}
38968c27
JB
40%{?with_python:BuildRequires: swig-python}
41%{?with_ruby:BuildRequires: swig-ruby}
d0949742 42Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
6c16cb84 46The Prelude library is a collection of generic functions providing
f1347e6d
AM
47communication between the Prelude Hybrid IDS suite components. It
48provides a convenient interface for sending alerts to Prelude Manager
49with transparent SSL, failover and replication support, asynchronous
50events and timer interfaces, an abstracted configuration API (hooking
51at the commandline, the configuration line, or wide configuration,
52available from the Manager), and a generic plugin API. It allows you
53to easily turn your favorite security program into a Prelude sensor.
54
5db7d1dc
JR
55%description -l pl.UTF-8
56Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
57komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
58Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
59przezroczystą obsługę SSL, failover i replikacji, interfejsy do
60zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
81042991 61(obsługujące linię poleceń, linię konfiguracji i konfigurację dostępną
62z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić ulubiony
63program związany z bezpieczeństwem na czujnik Prelude.
7758741a 64
f1347e6d 65%package libs
6c16cb84 66Summary: The Prelude library
6a1accbc 67Summary(pl.UTF-8): Biblioteka Prelude
7758741a 68Group: Libraries
d0949742
JB
69Requires: gnutls >= 1.0.17
70Requires: libgcrypt >= 1.1.94
f1347e6d
AM
71
72%description libs
6c16cb84 73The Prelude library.
f1347e6d 74
5db7d1dc 75%description libs -l pl.UTF-8
7758741a
JB
76Biblioteka Prelude.
77
f1347e6d 78%package devel
7758741a 79Summary: Header files and development documentation for libprelude
6a1accbc 80Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
f1347e6d 81Group: Development/Libraries
7758741a 82Requires: %{name}-libs = %{version}-%{release}
d0949742
JB
83Requires: gnutls-devel >= 1.0.17
84Requires: libgcrypt-devel >= 1.1.94
85Requires: libltdl-devel
f1347e6d
AM
86
87%description devel
7758741a
JB
88Header files and development documentation for libprelude.
89
5db7d1dc
JR
90%description devel -l pl.UTF-8
91Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
f1347e6d
AM
92
93%package static
94Summary: Static libprelude library
6a1accbc 95Summary(pl.UTF-8): Statyczna biblioteka libprelude
f1347e6d 96Group: Development/Libraries
7758741a 97Requires: %{name}-devel = %{version}-%{release}
f1347e6d
AM
98
99%description static
100Static libprelude library.
101
5db7d1dc 102%description static -l pl.UTF-8
7758741a
JB
103Statyczna biblioteka libprelude.
104
38968c27
JB
105%package -n lua-prelude
106Summary: libprelude Lua bindings
107Summary(pl.UTF-8): Dowiązania języka Lua do libprelude
108Group: Development/Languages
109Requires: %{name} = %{version}-%{release}
110
111%description -n lua-prelude
112libprelude Lua bindings.
113
114%description -n lua-prelude -l pl.UTF-8
115Dowiązania języka Lua do libprelude.
116
f1347e6d 117%package -n perl-libprelude
7758741a 118Summary: libprelude Perl bindings
6a1accbc 119Summary(pl.UTF-8): Dowiązania Perla do libprelude
f1347e6d 120Group: Development/Languages/Perl
d0949742 121Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
122
123%description -n perl-libprelude
7758741a
JB
124libprelude Perl bindings.
125
5db7d1dc
JR
126%description -n perl-libprelude -l pl.UTF-8
127Dowiązania Perla dla libprelude.
f1347e6d
AM
128
129%package -n python-libprelude
7758741a 130Summary: libprelude Python bindings
6a1accbc 131Summary(pl.UTF-8): Dowiązania Pythona dla libprelude
f1347e6d 132Group: Development/Languages/Python
d0949742 133Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
134
135%description -n python-libprelude
7758741a
JB
136libprelude Python bindings.
137
5db7d1dc
JR
138%description -n python-libprelude -l pl.UTF-8
139Dowiązania Pythona dla libprelude.
f1347e6d
AM
140
141%prep
6de9ce54 142%setup -q
30591219 143%patch0 -p1
38968c27
JB
144%{?with_ruby:%patch1 -p1}
145
146%if %{with python}
147# regenerate with fresh swig for gcc 4.6+
148%{__rm} bindings/python/{_PreludeEasy.cxx,PreludeEasy.py}
149%endif
150%if %{with ruby}
151# same for ruby 1.9
152sed -i -e 's,"rubyio.h","ruby/io.h",' bindings/ruby/libpreludecpp-ruby.i
153%{__rm} bindings/ruby/PreludeEasy.cxx
154# TODO: more
155%endif
156
157sed -i -e 's/lua >= 5.1/lua51 >= 5.1/' configure.in
f1347e6d
AM
158
159%build
d0949742
JB
160%{__libtoolize}
161%{__aclocal} -I m4 -I libmissing/m4
162%{__autoconf}
163%{__autoheader}
164%{__automake}
f1347e6d 165%configure \
f1347e6d 166 --enable-gtk-doc \
38968c27
JB
167 --enable-static \
168 --with%{!?with_lua:out}-lua \
f4f6dcd7 169 --with%{!?with_perl:out}-perl \
170 --with%{!?with_python:out}-python \
d0949742
JB
171 --with-html-dir=%{_gtkdocdir}/libprelude \
172 --with-perl-installdirs=vendor
6de9ce54 173
f1347e6d
AM
174%{__make}
175
176%install
177rm -rf $RPM_BUILD_ROOT
178
179%{__make} install \
180 DESTDIR=$RPM_BUILD_ROOT
181
9320b06b 182%if %{with python}
f1347e6d
AM
183%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
184%py_comp $RPM_BUILD_ROOT%{py_sitedir}
d0949742 185%py_postclean
9320b06b 186%endif
38968c27
JB
187%if %{with lua}
188%{__rm} $RPM_BUILD_ROOT%{_libdir}/PreludeEasy.{la,a}
189%endif
f1347e6d
AM
190
191%clean
192rm -rf $RPM_BUILD_ROOT
193
6c16cb84 194%post libs -p /sbin/ldconfig
7758741a 195%postun libs -p /sbin/ldconfig
f1347e6d
AM
196
197%files
198%defattr(644,root,root,755)
d0949742
JB
199%doc AUTHORS ChangeLog LICENSE.README NEWS README
200%attr(755,root,root) %{_bindir}/prelude-adduser
201%attr(755,root,root) %{_bindir}/prelude-admin
f1347e6d
AM
202%dir %{_sysconfdir}/prelude
203%dir %{_sysconfdir}/prelude/default
38968c27
JB
204%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/client.conf
205%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/global.conf
206%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/idmef-client.conf
207%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/prelude/default/tls.conf
f1347e6d 208%dir %{_sysconfdir}/prelude/profile
d0949742 209%{_mandir}/man1/prelude-admin.1*
f1347e6d
AM
210
211%files libs
212%defattr(644,root,root,755)
d0949742 213%attr(755,root,root) %{_libdir}/libprelude.so.*.*.*
30591219 214%attr(755,root,root) %{_libdir}/libpreludecpp.so.*.*.*
d0949742 215%attr(755,root,root) %ghost %{_libdir}/libprelude.so.2
30591219 216%attr(755,root,root) %ghost %{_libdir}/libpreludecpp.so.0
f1347e6d
AM
217
218%files devel
219%defattr(644,root,root,755)
220%attr(755,root,root) %{_bindir}/libprelude-config
d0949742 221%attr(755,root,root) %{_libdir}/libprelude.so
30591219 222%attr(755,root,root) %{_libdir}/libpreludecpp.so
d0949742 223%{_libdir}/libprelude.la
30591219 224%{_libdir}/libpreludecpp.la
f1347e6d 225%{_includedir}/libprelude
d0949742 226%{_aclocaldir}/libprelude.m4
f1347e6d 227%{_gtkdocdir}/libprelude
81042991 228%{_pkgconfigdir}/libprelude.pc
f1347e6d
AM
229
230%files static
231%defattr(644,root,root,755)
d0949742 232%{_libdir}/libprelude.a
30591219 233%{_libdir}/libpreludecpp.a
f1347e6d 234
38968c27
JB
235%if %{with lua}
236%files -n lua-prelude
237%defattr(644,root,root,755)
238%attr(755,root,root) %{_libdir}/PreludeEasy.so
239%endif
240
9320b06b 241%if %{with perl}
f1347e6d
AM
242%files -n perl-libprelude
243%defattr(644,root,root,755)
f1347e6d 244%{perl_vendorarch}/Prelude.pm
d0949742
JB
245%dir %{perl_vendorarch}/auto/Prelude
246%{perl_vendorarch}/auto/Prelude/Prelude.bs
247%attr(755,root,root) %{perl_vendorarch}/auto/Prelude/Prelude.so
38968c27
JB
248%dir %{perl_vendorarch}/auto/PreludeEasy
249%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.bs
250%attr(755,root,root) %{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
9320b06b 251%endif
f1347e6d 252
9320b06b 253%if %{with python}
f1347e6d
AM
254%files -n python-libprelude
255%defattr(644,root,root,755)
d0949742 256%attr(755,root,root) %{py_sitedir}/_prelude.so
30591219 257%attr(755,root,root) %{py_sitedir}/_PreludeEasy.so
d0949742 258%{py_sitedir}/prelude.py[co]
30591219 259%{py_sitedir}/PreludeEasy.py[co]
d0949742 260%{py_sitedir}/prelude-*.egg-info
30591219 261%{py_sitedir}/PreludeEasy-*.egg-info
9320b06b 262%endif
This page took 0.059476 seconds and 4 git commands to generate.