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