6116547
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6116547
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
6116547
6116547
Name:		libprelude
7b55f26
Version:	0.9.13
6451925
Release:	1%{?dist}
6116547
Summary:	The prelude library        
6116547
6116547
Group:		System Environment/Libraries 
6116547
License:	GPL
6116547
URL:		http://prelude-ids.org/
6116547
Source0:	http://www.prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
6116547
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6116547
6116547
BuildRequires:	gnutls-devel, python-devel 
6116547
6116547
%description
6116547
The Prelude Library is a collection of generic functions providing
6116547
communication between the Prelude Hybrid IDS suite components. It
6116547
provides a convenient interface for sending alerts to Prelude
6116547
Manager with transparent SSL, failover and replication support,
6116547
asynchronous events and timer interfaces, an abstracted
6116547
configuration API (hooking at the commandline, the configuration
6116547
line, or wide configuration, available from the Manager), and a
6116547
generic plugin API. It allows you to easily turn your favorite
6116547
security program into a Prelude sensor.
6116547
6116547
%package devel
6116547
Summary: 	Header files and libraries for libprelude development
6116547
Group:		System Environment/Libraries    
6116547
Requires: 	libprelude = %{version}-%{release}, automake, gnutls-devel
6116547
6116547
%description devel
6116547
Libraries, include files, etc you can use to develop Prelude IDS
6116547
sensors using the Prelude Library. The Prelude Library is a
6116547
collection of generic functions providing communication between
6116547
the Prelude Hybrid IDS suite componentst It provides a convenient
6116547
interface for sending alerts to Prelude Manager with transparent
6116547
SSL, failover and replication support, asynchronous events and
6116547
timer interfaces, an abstracted configuration API (hooking at the
6116547
commandline, the configuration line, or wide configuration,
6116547
available from the Manager), and a generic plugin API. It allows
6116547
you to easily turn your favorite security program into a Prelude
6116547
sensor.
6116547
6116547
%package python
6116547
Summary:	Header files and libraries for libprelude development
6116547
Group:		System Environment/Libraries
6116547
Requires:	libprelude = %{version}-%{release}
6116547
6116547
%description python
6116547
Python bindings for libprelude.
6116547
6116547
%package perl
6116547
Summary:	Header files and libraries for libprelude development
6116547
Group:		System Environment/Libraries
6116547
Requires:	libprelude = %{version}-%{release}
6116547
6116547
%description perl
6116547
Perl bindings for libprelude.
6116547
6116547
%prep
6116547
%setup -q
6116547
6116547
6116547
%build
6116547
%configure	--disable-static \
6116547
		--with-html-dir=%{_defaultdocdir}/%{name}-%{version}/html 
6116547
6116547
# removing rpath
6116547
sed -i.rpath -e 's|LD_RUN_PATH=""||' bindings/Makefile.in
6116547
make 
6116547
6116547
%install
6116547
rm -rf %{buildroot}
6116547
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
6116547
mkdir -p %{buildroot}%{perl_vendorarch}
6116547
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
6116547
cp -p AUTHORS ChangeLog README NEWS COPYING LICENSE.README HACKING.README \
6116547
%{buildroot}%{_defaultdocdir}/%{name}-%{version}
6116547
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}
6116547
rm -f %{buildroot}/%{_libdir}/libprelude.la
6116547
rm -f %{buildroot}%{python_sitelib}/auto/.packlist
6116547
rm -f %{buildroot}%{python_sitelib}/auto/Prelude.bs
6116547
rm -f %{buildroot}%{perl_vendorarch}/auto/Prelude/.packlist
6116547
rm -f %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.bs
6116547
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
6116547
6116547
%clean
6116547
rm -rf %{buildroot}
6116547
6116547
%post -p /sbin/ldconfig
6116547
6116547
%postun -p /sbin/ldconfig
6116547
6116547
%files
6116547
%defattr(-,root,root)
6116547
%{_bindir}/prelude-adduser
6116547
%{_libdir}/*.so.*
6116547
%config(noreplace) %{_sysconfdir}/*
6116547
%{_localstatedir}/spool/*
6116547
%dir %{_defaultdocdir}/%{name}-%{version}/
6116547
%doc %{_defaultdocdir}/%{name}-%{version}/*
6116547
6116547
%files devel
6116547
%defattr(-,root,root)
6116547
%{_bindir}/libprelude-config
6116547
%{_libdir}/*.so
6116547
%dir %{_includedir}/libprelude/
6116547
%{_includedir}/libprelude/*
6116547
%{_datadir}/aclocal/libprelude.m4
6116547
6116547
%files python
adee5b9
%{python_sitearch}/*
6116547
6116547
%files perl
6116547
%defattr(0755,root,root)
6116547
%attr(0644,root,root) %{perl_vendorarch}/Prelude.pm
6116547
%{perl_vendorarch}/auto/*
6116547
6116547
6116547
%changelog
7b55f26
* Tue Feb 20 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.13-1
7b55f26
- moved to new upstream version 0.9.13-1
7b55f26
6451925
* Fri Jan 05 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.12.1-1
6451925
- moved to new upstream version 0.9.12.1
6451925
adee5b9
* Tue Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-6
adee5b9
- fixed x86_86 arch problem
adee5b9
123f768
* Tue Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-5
123f768
- added ExcludeArch
123f768
6116547
* Tue Dec 29 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-4
6116547
- resolved permission problems
6116547
- added new docs 
6116547
6116547
* Tue Dec 25 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-3
6116547
- changed dir owner and preserved timestamps when building the package
6116547
- resolved rpath problems
6116547
6116547
* Fri Dec 22 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-2
6116547
- moved perl_sidearch into perl_vendorarch
6116547
- minor corrections in the spec file
6116547
6116547
* Fri Dec 22 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-1
6116547
- upgrade to latest upstream version 0.9.12
6116547
- minor corrections in the spec file
6116547
6116547
* Wed Dec 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-4
6116547
- removing smp-flag to debug perl- and python-problems
6116547
- added perl-bindings again
6116547
6116547
* Wed Dec 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-3
6116547
- disabled perl-bindings
6116547
6116547
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-2
6116547
- Some minor fixes in requirements
6116547
6116547
* Tue Oct 24 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-1
6116547
- New Fedora build based on release 0.9.11