]> git.pld-linux.org Git - packages/libprelude.git/blame - libprelude.spec
- updated to 1.0.0
[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
30591219
SP
10Version: 1.0.0
11Release: 1
d0949742 12License: GPL v2 or commercial
f1347e6d 13Group: Libraries
24d829c8
JB
14#Source0Download: http://www.prelude-ids.com/developpement/telechargement/index.html
15Source0: http://www.prelude-ids.com/download/releases/libprelude/%{name}-%{version}.tar.gz
30591219
SP
16# Source0-md5: a5bb76538d240e5fac5f6ab0b7fabfe5
17Patch0: %{name}-libtool.patch
24d829c8 18URL: http://www.prelude-ids.com/
d0949742
JB
19BuildRequires: autoconf >= 2.59
20BuildRequires: automake
f1347e6d
AM
21BuildRequires: bison
22BuildRequires: flex
9320b06b 23BuildRequires: gnutls-devel >= 1.0.17
d0949742
JB
24BuildRequires: gtk-doc >= 1.0
25BuildRequires: libgcrypt-devel >= 1.1.94
26BuildRequires: libltdl-devel
27BuildRequires: libtool
9320b06b 28%{?with_perl:BuildRequires: perl-devel}
d0949742 29%{?with_python:BuildRequires: python-devel >= 1:2.5}
f1347e6d 30BuildRequires: rpm-perlprov
d0949742
JB
31BuildRequires: rpm-pythonprov
32BuildRequires: rpmbuild(macros) >= 1.219
30591219 33%{?with_perl:BuildRequires: swig-perl}
d0949742 34Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
6c16cb84 38The Prelude library is a collection of generic functions providing
f1347e6d
AM
39communication between the Prelude Hybrid IDS suite components. It
40provides a convenient interface for sending alerts to Prelude Manager
41with transparent SSL, failover and replication support, asynchronous
42events and timer interfaces, an abstracted configuration API (hooking
43at the commandline, the configuration line, or wide configuration,
44available from the Manager), and a generic plugin API. It allows you
45to easily turn your favorite security program into a Prelude sensor.
46
5db7d1dc
JR
47%description -l pl.UTF-8
48Biblioteka Prelude to zbiór ogólnych funkcji zapewniających
49komunikację pomiędzy komponentami zestawu Prelude Hybrid IDS.
50Dostarcza wygodny interfejs do wysyłania alarmów do zarządcy Prelude z
51przezroczystą obsługę SSL, failover i replikacji, interfejsy do
52zdarzeń asynchronicznych i zegarów, abstrakcyjne API konfiguracyjne
81042991 53(obsługujące linię poleceń, linię konfiguracji i konfigurację dostępną
54z zarządcy) oraz ogólne API wtyczek. Pozwala łatwo zamienić ulubiony
55program związany z bezpieczeństwem na czujnik Prelude.
7758741a 56
f1347e6d 57%package libs
6c16cb84 58Summary: The Prelude library
6a1accbc 59Summary(pl.UTF-8): Biblioteka Prelude
7758741a 60Group: Libraries
d0949742
JB
61Requires: gnutls >= 1.0.17
62Requires: libgcrypt >= 1.1.94
f1347e6d
AM
63
64%description libs
6c16cb84 65The Prelude library.
f1347e6d 66
5db7d1dc 67%description libs -l pl.UTF-8
7758741a
JB
68Biblioteka Prelude.
69
f1347e6d 70%package devel
7758741a 71Summary: Header files and development documentation for libprelude
6a1accbc 72Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programistyczna dla libprelude
f1347e6d 73Group: Development/Libraries
7758741a 74Requires: %{name}-libs = %{version}-%{release}
d0949742
JB
75Requires: gnutls-devel >= 1.0.17
76Requires: libgcrypt-devel >= 1.1.94
77Requires: libltdl-devel
f1347e6d
AM
78
79%description devel
7758741a
JB
80Header files and development documentation for libprelude.
81
5db7d1dc
JR
82%description devel -l pl.UTF-8
83Pliki nagłówkowe i dokumentacja programistyczna dla libprelude.
f1347e6d
AM
84
85%package static
86Summary: Static libprelude library
6a1accbc 87Summary(pl.UTF-8): Statyczna biblioteka libprelude
f1347e6d 88Group: Development/Libraries
7758741a 89Requires: %{name}-devel = %{version}-%{release}
f1347e6d
AM
90
91%description static
92Static libprelude library.
93
5db7d1dc 94%description static -l pl.UTF-8
7758741a
JB
95Statyczna biblioteka libprelude.
96
f1347e6d 97%package -n perl-libprelude
7758741a 98Summary: libprelude Perl bindings
6a1accbc 99Summary(pl.UTF-8): Dowiązania Perla do libprelude
f1347e6d 100Group: Development/Languages/Perl
d0949742 101Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
102
103%description -n perl-libprelude
7758741a
JB
104libprelude Perl bindings.
105
5db7d1dc
JR
106%description -n perl-libprelude -l pl.UTF-8
107Dowiązania Perla dla libprelude.
f1347e6d
AM
108
109%package -n python-libprelude
7758741a 110Summary: libprelude Python bindings
6a1accbc 111Summary(pl.UTF-8): Dowiązania Pythona dla libprelude
f1347e6d 112Group: Development/Languages/Python
d0949742 113Requires: %{name}-libs = %{version}-%{release}
f1347e6d
AM
114
115%description -n python-libprelude
7758741a
JB
116libprelude Python bindings.
117
5db7d1dc
JR
118%description -n python-libprelude -l pl.UTF-8
119Dowią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
142rm -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
154rm -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
This page took 0.106333 seconds and 4 git commands to generate.