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