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