6a5a3a
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
6a5a3a
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
6a5a3a
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
3ff3bf
611654
611654
Name:		libprelude
727388
Epoch:		1
6a5a3a
Version:	1.0.0
61d593
Release:	9%{?dist}
6a5a3a
Summary:	The prelude library
6a5a3a
Group:		System Environment/Libraries
cfb2da
License:	GPLv2+
611654
URL:		http://prelude-ids.org/
322772
Source0:	http://www.prelude-ids.org/download/releases/%{name}/%{name}-%{version}.tar.gz
61d593
Patch1:		libprelude-1.0.0-gcc46.patch
611654
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
611654
be280e
BuildRequires:	gnutls-devel, python-devel, ruby, ruby-devel, lua-devel
6a5a3a
BuildRequires:	swig chrpath
611654
611654
%description
10d640
Libprelude is a library that guarantees secure connections between
10d640
all sensors and the Prelude Manager. Libprelude provides an 
10d640
Application Programming Interface (API) for the communication with
10d640
Prelude sub-systems, it supplies the necessary functionality for
10d640
generating and emitting IDMEF events with Prelude and automates the
10d640
saving and re-transmission of data in times of temporary interruption
10d640
of one of the components of the system.
611654
611654
%package devel
6a5a3a
Summary:	Header files and libraries for libprelude development
6a5a3a
Group:		System Environment/Libraries
c06358
Requires:	libprelude = %{epoch}:%{version}-%{release}, automake, gnutls-devel
611654
611654
%description devel
611654
Libraries, include files, etc you can use to develop Prelude IDS
10d640
sensors using the Prelude Library.
611654
611654
%package python
560bce
Summary:	Python bindings for libprelude
611654
Group:		System Environment/Libraries
c06358
Requires:	libprelude = %{epoch}:%{version}-%{release}
611654
611654
%description python
611654
Python bindings for libprelude.
611654
611654
%package perl
560bce
Summary:	Perl bindings for libprelude
611654
Group:		System Environment/Libraries
4e58d1
%if 0%{?rhel} && 0%{?rhel} <= 5
3909ee
BuildRequires:	perl
3909ee
%else
2a13b8
BuildRequires:	perl-devel
3909ee
%endif
c06358
Requires:	libprelude = %{epoch}:%{version}-%{release}
560bce
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
611654
611654
%description perl
611654
Perl bindings for libprelude.
611654
3ff3bf
%package ruby
3ff3bf
Summary:	Ruby bindings for libprelude
3ff3bf
Group:		System Environment/Libraries
c06358
Requires:	libprelude = %{epoch}:%{version}-%{release}
3ff3bf
Requires:	ruby(abi) = 1.8
3ff3bf
3ff3bf
%description ruby
3ff3bf
Ruby bindings for libprelude.
3ff3bf
611654
%prep
611654
%setup -q
61d593
%patch1 -p1
611654
611654
%build
611654
%configure	--disable-static \
0e4ff7
		--with-html-dir=%{_defaultdocdir}/%{name}-%{version}/html \
3ff3bf
		--with-perl-installdirs=vendor \
3ff3bf
		--enable-easy-bindings
611654
611654
# removing rpath
611654
sed -i.rpath -e 's|LD_RUN_PATH=""||' bindings/Makefile.in
560bce
sed -i.rpath -e 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
560bce
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 \
560bce
	%{buildroot}%{_defaultdocdir}/%{name}-%{version}
611654
rm -f %{buildroot}/%{_libdir}/libprelude.la
560bce
chmod 755 %{buildroot}%{python_sitearch}/_prelude.so
560bce
find %{buildroot} -type f \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} ';'
560bce
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
3ff3bf
rm -f %{buildroot}%{_libdir}/*.la
3ff3bf
rm -f %{buildroot}%{ruby_sitearch}/PreludeEasy.la
c1d46f
chmod +w %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
c1d46f
chrpath -d %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
c1d46f
chmod -w %{buildroot}%{perl_vendorarch}/auto/Prelude/Prelude.so
61d593
chmod +w %{buildroot}%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
61d593
chrpath -d %{buildroot}%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
61d593
chmod -w %{buildroot}%{perl_vendorarch}/auto/PreludeEasy/PreludeEasy.so
560bce
0af2a5
# Fix time stamp for both 32 and 64 bit libraries
0af2a5
touch -r ./configure.in %{buildroot}%{_sysconfdir}/prelude/default/*
c1d46f
611654
%clean
611654
rm -rf %{buildroot}
611654
611654
%post -p /sbin/ldconfig
611654
611654
%postun -p /sbin/ldconfig
611654
611654
%files
61d593
%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
61d593
%defattr(-,root,root,-)
611654
%{_bindir}/libprelude-config
611654
%{_libdir}/*.so
1d5348
%{_libdir}/pkgconfig/libprelude.pc
611654
%dir %{_includedir}/libprelude/
611654
%{_includedir}/libprelude/*
611654
%{_datadir}/aclocal/libprelude.m4
611654
611654
%files python
61d593
%defattr(-,root,root,-)
adee5b
%{python_sitearch}/*
611654
611654
%files perl
61d593
%defattr(0755,root,root,-)
3ff3bf
%attr(0644,root,root) %{perl_vendorarch}/Prelude*.pm
3ff3bf
%{perl_vendorarch}/auto/Prelude*/
611654
3ff3bf
%files ruby
61d593
%defattr(-,root,root,-)
3ff3bf
%{ruby_sitearch}/PreludeEasy.so
611654
611654
%changelog
61d593
* Fri Jun 24 2011 Steve Grubb <sgrubb@redhat.com> - 1:1.0.0-9
61d593
- Fix gcc 4.6 C++ bug (#715983)
61d593
61d593
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-8
61d593
- Perl mass rebuild
61d593
61d593
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.0.0-7
61d593
- Perl 5.14 mass rebuild
61d593
dd2dfb
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.0-6
dd2dfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dd2dfb
d6c9d0
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.0.0-5
d6c9d0
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
d6c9d0
3c41ed
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:1.0.0-4
3c41ed
- Mass rebuild with perl-5.12.0
3c41ed
693f68
* Sun May 02 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-3
c06358
- Fix requires statements
c06358
c06358
* Fri Apr 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0-2
6a5a3a
- New upstream release
6a5a3a
d97513
* Sat Jan 30 2010 Steve Grubb <sgrubb@redhat.com> - 1.0.0rc1-1
d97513
- New upstream release
d97513
eccaf8
* Mon Jan 11 2010 Steve Grubb <sgrubb@redhat.com> - 0.9.25-1
eccaf8
- New upstream release
eccaf8
52c64b
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.9.24.1-2
52c64b
- rebuild against perl 5.10.1
52c64b
4e58d1
* Tue Sep 29 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.24.1-1
4e58d1
- New upstream release
4e58d1
3909ee
* Sat Aug 8 2009 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 0.9.24-3
3909ee
- adjust to build in EL-5
3909ee
584285
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.24-2
584285
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
584285
ede5eb
* Thu Jul 09 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.24-1
ede5eb
- New upstream release
ede5eb
914f53
* Mon Jun 08 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.23-1
914f53
- New upstream release
914f53
1d5348
* Wed Apr 29 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.22-1
1d5348
- New upstream release
1d5348
445667
* Fri Apr 03 2009 Steve Grubb <sgrubb@redhat.com> 0.9.21.2-9
445667
- remove check section, doesn't work on anything except x86 anyways
445667
4039b7
* Fri Mar 13 2009 Karsten Hopp <karsten@redhat.com> 0.9.21.2-8
4039b7
- don't buildrequire valgrind on s390x, similar to ppc
4039b7
04159f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21.2-7
04159f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
04159f
db6199
* Sat Jan 24 2009 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-6
db6199
- Rebuild for MySQL 5.1.30
db6199
af15a3
* Fri Dec 05 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-5
af15a3
- Rebuild _again_ for Python 2.6
af15a3
800f66
* Thu Dec  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.9.21.2-4
800f66
- Include /usr/include/libpreludecpp directory.
800f66
bafcf3
* Tue Dec 02 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-3
6a5a3a
- Disable check target
86c879
- Rebuild for Python 2.6
86c879
9c3938
* Mon Oct 13 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.2-1
9c3938
- New upstream bugfix release
9c3938
5bb093
* Mon Oct 06 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21.1-1
5bb093
- New upstream bugfix release
5bb093
- resolves: #465228 - prelude-admin is looking for tls.conf in /usr
5bb093
c49cc0
* Fri Sep 19 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.21-1
c49cc0
- New upstream bugfix release
9230fa
5ebb0b
* Tue Sep 09 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.2-1
5ebb0b
- New upstream bugfix release
5ebb0b
502cad
* Fri Sep 05 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20.1-1
502cad
- New upstream bugfix release
502cad
- Get rid of rpath and enable test suite except on PPC
c1d46f
527d13
* Wed Sep 03 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.20-1
527d13
- New upstream release
527d13
3ff3bf
* Tue Aug 05 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.19-1
3ff3bf
- New upstream release with ruby bindings
3ff3bf
322772
* Mon Jul 21 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.18.1-1
322772
- New upstream version
322772
560bce
* Fri Jul 04 2008 Steve Grubb <sgrubb@redhat.com> - 0.9.17.2-1
560bce
- Update to latest upstream and update perl bindings generation (#453932)
560bce
0e4ff7
* Wed Jun 25 2008 Tomas Mraz <tmraz@redhat.com> - 0.9.17.1-2
0e4ff7
- fixed build of perl bindings
0e4ff7
0e4ff7
* Tue Jun 24 2008 Steve Grubb <sgrubb@redhat.com>
26e84b
- rebuild for new gnutls
26e84b
901541
* Fri May 02 2008 Steve Grubb <sgrubb@redhat.com> 0.9.17.1-1
901541
- New upstream version
901541
cfb2da
* Thu Apr 24 2008 Steve Grubb <sgrubb@redhat.com> 0.9.17-1
cfb2da
- New upstream version
cfb2da
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