]> git.pld-linux.org Git - packages/libprelude.git/blame - libprelude.spec
- release 3
[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
f4f6dcd7 10Version: 0.9.12.2
7bfb1080 11Release: 3
f1347e6d
AM
12License: GPL
13Group: Libraries
6de9ce54 14Source0: http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
f4f6dcd7 15# Source0-md5: 4636cf21c3e96adbd9463138fb49f401
f1347e6d 16URL: http://www.prelude-ids.org/
f1347e6d
AM
17BuildRequires: bison
18BuildRequires: flex
9320b06b 19BuildRequires: gnutls-devel >= 1.0.17
7758741a 20BuildRequires: gtk-doc
9320b06b
AM
21%{?with_perl:BuildRequires: perl-devel}
22%{?with_python:BuildRequires: python-devel}
f1347e6d
AM
23BuildRequires: rpm-perlprov
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
6c16cb84 27The Prelude library is a collection of generic functions providing
f1347e6d
AM
28communication between the Prelude Hybrid IDS suite components. It
29provides a convenient interface for sending alerts to Prelude Manager
30with transparent SSL, failover and replication support, asynchronous
31events and timer interfaces, an abstracted configuration API (hooking
32at the commandline, the configuration line, or wide configuration,
33available from the Manager), and a generic plugin API. It allows you
34to easily turn your favorite security program into a Prelude sensor.
35
5db7d1dc
JR
36%description -l pl.UTF-8
37Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
38komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
39Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
40przezroczystą obsługę SSL, failover i replikacji, interfejsy do
41zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
42(obsługujące linię poleceń, linię konfiguracji i konfigurację
43dostępną z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić
44ulubiony program związany z bezpieczeństwem na czujnik Prelude.
7758741a 45
f1347e6d 46%package libs
6c16cb84 47Summary: The Prelude library
6a1accbc 48Summary(pl.UTF-8): Biblioteka Prelude
7758741a 49Group: Libraries
f1347e6d
AM
50
51%description libs
6c16cb84 52The Prelude library.
f1347e6d 53
5db7d1dc 54%description libs -l pl.UTF-8
7758741a
JB
55Biblioteka Prelude.
56
f1347e6d 57%package devel
7758741a 58Summary: Header files and development documentation for libprelude
6a1accbc 59Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
f1347e6d 60Group: Development/Libraries
7758741a 61Requires: %{name}-libs = %{version}-%{release}
51e92078 62Requires: gnutls-devel
f1347e6d
AM
63
64%description devel
7758741a
JB
65Header files and development documentation for libprelude.
66
5db7d1dc
JR
67%description devel -l pl.UTF-8
68Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
f1347e6d
AM
69
70%package static
71Summary: Static libprelude library
6a1accbc 72Summary(pl.UTF-8): Statyczna biblioteka libprelude
f1347e6d 73Group: Development/Libraries
7758741a 74Requires: %{name}-devel = %{version}-%{release}
f1347e6d
AM
75
76%description static
77Static libprelude library.
78
5db7d1dc 79%description static -l pl.UTF-8
7758741a
JB
80Statyczna biblioteka libprelude.
81
f1347e6d 82%package -n perl-libprelude
7758741a 83Summary: libprelude Perl bindings
6a1accbc 84Summary(pl.UTF-8): Dowiązania Perla do libprelude
f1347e6d
AM
85Group: Development/Languages/Perl
86
87%description -n perl-libprelude
7758741a
JB
88libprelude Perl bindings.
89
5db7d1dc
JR
90%description -n perl-libprelude -l pl.UTF-8
91Dowiązania Perla dla libprelude.
f1347e6d
AM
92
93%package -n python-libprelude
7758741a 94Summary: libprelude Python bindings
6a1accbc 95Summary(pl.UTF-8): Dowiązania Pythona dla libprelude
f1347e6d
AM
96Group: Development/Languages/Python
97
98%description -n python-libprelude
7758741a
JB
99libprelude Python bindings.
100
5db7d1dc
JR
101%description -n python-libprelude -l pl.UTF-8
102Dowią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
125rm -rf $RPM_BUILD_ROOT
126
127%{__make} install \
128 DESTDIR=$RPM_BUILD_ROOT
129
9320b06b 130%if %{with perl}
f1347e6d 131cd bindings/perl && %{__perl} Makefile.PL \
6c16cb84 132 INSTALLDIRS=vendor
f1347e6d
AM
133cd ../..
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
144rm -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
This page took 0.149465 seconds and 4 git commands to generate.