611654
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
611654
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
89d73f
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
89d73f
611654
611654
Name:		libprelude
89d73f
Version:	0.9.20.2
07350f
Release:	3%{?dist}
611654
Summary:	The prelude library        
611654
Group:		System Environment/Libraries 
85d313
License:	GPLv2+
611654
URL:		http://prelude-ids.org/
89d73f
Source0:	http://www.prelude-ids.org/download/releases/%{name}/%{name}-%{version}.tar.gz
07350f
Patch1:		libprelude-0.9.20.2-getaddrinfo-test.patch
611654
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
611654
89d73f
BuildRequires:	gnutls-devel, python-devel, ruby, ruby-devel, lua-devel 
89d73f
BuildRequires:  swig chrpath
89d73f
%ifnarch ppc ppc64
89d73f
BuildRequires:  valgrind
89d73f
%endif
611654
611654
%description
611654
The Prelude Library is a collection of generic functions providing
611654
communication between the Prelude Hybrid IDS suite components. It
611654
provides a convenient interface for sending alerts to Prelude
611654
Manager with transparent SSL, failover and replication support,
611654
asynchronous events and timer interfaces, an abstracted
611654
configuration API (hooking at the commandline, the configuration
611654
line, or wide configuration, available from the Manager), and a
611654
generic plugin API. It allows you to easily turn your favorite
611654
security program into a Prelude sensor.
611654
611654
%package devel
611654
Summary: 	Header files and libraries for libprelude development
611654
Group:		System Environment/Libraries    
611654
Requires: 	libprelude = %{version}-%{release}, automake, gnutls-devel
611654
611654
%description devel
611654
Libraries, include files, etc you can use to develop Prelude IDS
611654
sensors using the Prelude Library. The Prelude Library is a
611654
collection of generic functions providing communication between
611654
the Prelude Hybrid IDS suite componentst It provides a convenient
611654
interface for sending alerts to Prelude Manager with transparent
611654
SSL, failover and replication support, asynchronous events and
611654
timer interfaces, an abstracted configuration API (hooking at the
611654
commandline, the configuration line, or wide configuration,
611654
available from the Manager), and a generic plugin API. It allows
611654
you to easily turn your favorite security program into a Prelude
611654
sensor.
611654
611654
%package python
b1b8ca
Summary:	Python bindings for libprelude
611654
Group:		System Environment/Libraries
611654
Requires:	libprelude = %{version}-%{release}
611654
611654
%description python
611654
Python bindings for libprelude.
611654
611654
%package perl
b1b8ca
Summary:	Perl bindings for libprelude
611654
Group:		System Environment/Libraries
2a13b8
BuildRequires:	perl-devel
611654
Requires:	libprelude = %{version}-%{release}
b1b8ca
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
611654
611654
%description perl
611654
Perl bindings for libprelude.
611654
89d73f
%package ruby
89d73f
Summary:        Ruby bindings for libprelude
89d73f
Group:          System Environment/Libraries
89d73f
Requires:       libprelude = %{version}-%{release}
89d73f
Requires:       ruby(abi) = 1.8
89d73f
89d73f
%description ruby
89d73f
Ruby bindings for libprelude.
89d73f
611654
%prep
611654
%setup -q
053755
%patch1 -p1
611654
611654
%build
611654
%configure	--disable-static \
b1b8ca
		--with-html-dir=%{_defaultdocdir}/%{name}-%{version}/html \
89d73f
		--with-perl-installdirs=vendor \
89d73f
		--enable-easy-bindings
611654
611654
# removing rpath
611654
sed -i.rpath -e 's|LD_RUN_PATH=""||' bindings/Makefile.in
b1b8ca
sed -i.rpath -e 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
b1b8ca
e5918b
make %{?_smp_mflags} 
611654
611654
%install
611654
rm -rf %{buildroot}
611654
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
611654
mkdir -p %{buildroot}%{perl_vendorarch}
611654
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
611654
cp -p AUTHORS ChangeLog README NEWS COPYING LICENSE.README HACKING.README \
b1b8ca
	%{buildroot}%{_defaultdocdir}/%{name}-%{version}
611654
rm -f %{buildroot}/%{_libdir}/libprelude.la
b1b8ca
chmod 755 %{buildroot}%{python_sitearch}/_prelude.so
b1b8ca
find %{buildroot} -type f \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} ';'
b1b8ca
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
89d73f
rm -f %{buildroot}%{_libdir}/*.la
89d73f
rm -f %{buildroot}%{ruby_sitearch}/PreludeEasy.la
89d73f
chmod +w %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
89d73f
chrpath -d %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
89d73f
chmod -w %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
b1b8ca
0af2a5
# Fix time stamp for both 32 and 64 bit libraries
0af2a5
touch -r ./configure.in %{buildroot}%{_sysconfdir}/prelude/default/*
611654
89d73f
# PPC strips ld.so so valgrind can't run
89d73f
%ifnarch ppc ppc64
89d73f
%check
89d73f
make check
89d73f
%endif
89d73f
611654
%clean
611654
rm -rf %{buildroot}
611654
611654
%post -p /sbin/ldconfig
611654
611654
%postun -p /sbin/ldconfig
611654
611654
%files
611654
%defattr(-,root,root)
0af2a5
%{_bindir}/prelude-admin
611654
%{_bindir}/prelude-adduser
611654
%{_libdir}/*.so.*
0af2a5
%{_mandir}/man1/prelude-admin.1.gz
611654
%config(noreplace) %{_sysconfdir}/*
611654
%{_localstatedir}/spool/*
611654
%dir %{_defaultdocdir}/%{name}-%{version}/
611654
%doc %{_defaultdocdir}/%{name}-%{version}/*
611654
611654
%files devel
611654
%defattr(-,root,root)
611654
%{_bindir}/libprelude-config
611654
%{_libdir}/*.so
611654
%dir %{_includedir}/libprelude/
611654
%{_includedir}/libprelude/*
89d73f
%{_includedir}/libpreludecpp/*
611654
%{_datadir}/aclocal/libprelude.m4
611654
611654
%files python
b1b8ca
%defattr(-,root,root)
adee5b
%{python_sitearch}/*
611654
611654
%files perl
611654
%defattr(0755,root,root)
89d73f
%attr(0644,root,root) %{perl_vendorarch}/Prelude*.pm
89d73f
%{perl_vendorarch}/auto/Prelude*/
611654
89d73f
%files ruby
89d73f
%defattr(-,root,root)
89d73f
%{ruby_sitearch}/PreludeEasy.so
611654
611654
%changelog
07350f
* Sun Sep 15 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.2-3
07350f
- release engineering took make force-tag away and I have to
07350f
 apply a new patch to disable the failing test.
07350f
d3219c
* Sun Sep 15 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.2-2
d3219c
- release engineering took make force-tag away and I have to
d3219c
 apply a patch for troubleshooting.
d3219c
89d73f
* Sun Sep 15 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.2-1
89d73f
- New upstream release with ruby bindings
89d73f
b1b8ca
* Fri Jul 04 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.17.2-1
b1b8ca
- Update to latest upstream and update perl bindings generation (#453932)
b1b8ca
dd77a7
* Fri May 02 2008 Steve Grubb <sgrubb@redhat.com> 0.9.17.1-1
dd77a7
- New upstream version
dd77a7
85d313
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.17-1
85d313
- New upstream version
85d313
17da74
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.16.2-2
17da74
- Autorebuild for GCC 4.3
17da74
67aad0
* Wed Jan 23 2008 Steve Grubb <sgrubb@redhat.com> 0.9.16.2-1
67aad0
- New upstream version
67aad0
0af2a5
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.16.1-1
0af2a5
- moved to new upstream version 0.9.16.1
0af2a5
7b55f2
* Tue Feb 20 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.13-1
7b55f2
- moved to new upstream version 0.9.13-1
7b55f2
645192
* Fri Jan 05 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.12.1-1
645192
- moved to new upstream version 0.9.12.1
645192
adee5b
* Tue Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-6
adee5b
- fixed x86_86 arch problem
adee5b
123f76
* Tue Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-5
123f76
- added ExcludeArch
123f76
611654
* Tue Dec 29 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-4
611654
- resolved permission problems
611654
- added new docs 
611654
611654
* Tue Dec 25 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-3
611654
- changed dir owner and preserved timestamps when building the package
611654
- resolved rpath problems
611654
611654
* Fri Dec 22 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-2
611654
- moved perl_sidearch into perl_vendorarch
611654
- minor corrections in the spec file
611654
611654
* Fri Dec 22 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.12-1
611654
- upgrade to latest upstream version 0.9.12
611654
- minor corrections in the spec file
611654
611654
* Wed Dec 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-4
611654
- removing smp-flag to debug perl- and python-problems
611654
- added perl-bindings again
611654
611654
* Wed Dec 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-3
611654
- disabled perl-bindings
611654
611654
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-2
611654
- Some minor fixes in requirements
611654
611654
* Tue Oct 24 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-1
611654
- New Fedora build based on release 0.9.11