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