2007-01-01 12:14:37 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
Name: libpreludedb
|
2008-01-14 20:43:27 +00:00
|
|
|
Version: 0.9.14.1
|
2008-06-25 12:22:37 +00:00
|
|
|
Release: 3%{?dist}
|
2007-01-01 16:11:27 +00:00
|
|
|
Summary: Provide the framework for easy access to the Prelude database
|
2007-01-01 12:14:37 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: GPL
|
|
|
|
URL: http://prelude-ids.org/
|
|
|
|
Source0: http://prelude-ids.org/download/releases/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-01-05 20:51:07 +00:00
|
|
|
Patch0: %{name}-x86_64-sqlite3.patch
|
2007-01-01 12:14:37 +00:00
|
|
|
|
2007-12-09 09:43:35 +00:00
|
|
|
BuildRequires: libprelude, libprelude-devel, mysql-devel, postgresql-devel, python-devel, sqlite-devel, perl-devel
|
2007-01-01 12:14:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The PreludeDB Library provides an abstraction layer upon the type and the
|
2008-01-14 20:43:27 +00:00
|
|
|
format of the database used to store IDMEF alerts. It allows developers
|
|
|
|
to use the Prelude IDMEF database easily and efficiently without
|
|
|
|
worrying about SQL, and to access the database independently of the
|
|
|
|
type/format of the database.
|
2007-01-01 12:14:37 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries and headers for PreludeDB
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: libpreludedb = %{version}-%{release}, libprelude-devel, automake
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The PreludeDB Library provides an abstraction layer upon the type
|
|
|
|
and the format of the database used to store IDMEF alerts. It
|
|
|
|
allows developers to use the Prelude IDMEF database easily and
|
|
|
|
efficiently wi thout worrying about SQL, and to access the
|
|
|
|
database independently of the type/format of the database.
|
|
|
|
|
|
|
|
%package mysql
|
|
|
|
Summary: Plugin to use prelude with a mysql database
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: libpreludedb = %{version}-%{release}, mysql, mysql-server
|
|
|
|
|
|
|
|
%description mysql
|
|
|
|
This plugin authorise prelude to store alerts into a mysql database.
|
|
|
|
|
|
|
|
%package pgsql
|
|
|
|
Summary: Plugin to use prelude with a pgsql database
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: libpreludedb = %{version}-%{release}, postgresql-server
|
|
|
|
|
|
|
|
%description pgsql
|
|
|
|
This plugin authorise prelude to store alerts into a pgsql database.
|
|
|
|
|
|
|
|
%package sqlite
|
|
|
|
Summary: Plugin to use prelude with a sqlite database
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: libpreludedb = %{version}-%{release}, sqlite
|
|
|
|
|
|
|
|
%description sqlite
|
|
|
|
This plugin authorise prelude to store alerts into a sqlite database.
|
|
|
|
|
|
|
|
%package python
|
|
|
|
Summary: Python bindings for libpreludedb
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: libpreludedb = %{version}-%{release}
|
|
|
|
|
|
|
|
%description python
|
|
|
|
Python bindings for libpreludedb.
|
|
|
|
|
|
|
|
%package perl
|
|
|
|
Summary: Perl bindings for libpreludedb
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: libpreludedb = %{version}-%{release}
|
|
|
|
|
|
|
|
%description perl
|
|
|
|
Perl bindings for libpreludedb.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-01-01 16:11:27 +00:00
|
|
|
%patch0 -p1
|
2007-01-01 12:14:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --with-html-dir=%{_defaultdocdir}/%{name}-%{version}/html \
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
# removing rpath
|
|
|
|
sed -i.rpath -e 's|LD_RUN_PATH=""||' bindings/Makefile
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
|
|
mkdir -p %{buildroot}%{perl_vendorarch}
|
|
|
|
make install DESTDIR=%{buildroot} INSTALL="%{__install} -c -p"
|
|
|
|
cp -p ChangeLog README NEWS COPYING LICENSE.README HACKING.README \
|
|
|
|
%{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
|
|
|
mv %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}
|
|
|
|
rm -f %{buildroot}/%{perl_archlib}/perllocal.pod
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/plugins/formats/classic.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/plugins/sql/mysql.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/plugins/sql/pgsql.la
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}/plugins/sql/sqlite3.la
|
|
|
|
rm -f %{buildroot}/%{perl_vendorarch}/auto/PreludeDB/.packlist
|
|
|
|
rm -f %{buildroot}/%{perl_vendorarch}/auto/PreludeDB/PreludeDB.bs
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/preludedb-admin
|
|
|
|
%dir %{_libdir}/%{name}/
|
|
|
|
%{_libdir}/%{name}*.so.*
|
|
|
|
%dir %{_libdir}/%{name}/plugins/
|
|
|
|
%dir %{_libdir}/%{name}/plugins/formats/
|
|
|
|
%{_libdir}/%{name}/plugins/formats/*
|
|
|
|
%dir %{_defaultdocdir}/%{name}-%{version}/
|
|
|
|
%doc %{_defaultdocdir}/%{name}-%{version}/[A-Z]*
|
|
|
|
%dir %{_libdir}/%{name}/plugins/sql/
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/classic/
|
2008-01-14 20:43:27 +00:00
|
|
|
%{_mandir}/man1/preludedb-admin.1.gz
|
2007-01-01 12:14:37 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{name}-config
|
|
|
|
%{_libdir}/%{name}*.so
|
|
|
|
%dir %{_includedir}/%{name}/
|
|
|
|
%{_includedir}/%{name}/*
|
|
|
|
%{_datadir}/aclocal/libpreludedb.m4
|
|
|
|
%doc %{_defaultdocdir}/%{name}-%{version}/html/
|
|
|
|
|
|
|
|
%files python
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%files perl
|
|
|
|
%defattr(0755,root,root)
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
%attr(0644,root,root) %{perl_vendorarch}/PreludeDB.pm
|
|
|
|
|
|
|
|
%files mysql
|
|
|
|
%defattr(0755,root,root)
|
|
|
|
%{_libdir}/%{name}/plugins/sql/mysql.so
|
|
|
|
%attr(0644,root,root) %{_datadir}/%{name}/classic/mysql*.sql
|
|
|
|
%attr(0755,root,root) %{_datadir}/%{name}/classic/*.sh
|
|
|
|
|
|
|
|
%files sqlite
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}/plugins/sql/sqlite3.so
|
|
|
|
%{_datadir}/%{name}/classic/sqlite*
|
|
|
|
|
|
|
|
%files pgsql
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/%{name}/plugins/sql/pgsql.so
|
|
|
|
%{_datadir}/%{name}/classic/pgsql*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-06-25 12:22:37 +00:00
|
|
|
* Wed Jun 25 2008 Tomas Mraz <tmraz@redhat.com> - 0.9.14.1-3
|
|
|
|
- rebuild with new gnutls
|
|
|
|
|
2008-02-20 05:54:26 +00:00
|
|
|
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.14.1-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-14 20:43:27 +00:00
|
|
|
* Mon Jan 14 2008 Steve Grubb <sgrubb@redhat.com> 0.9.14.1-1
|
|
|
|
- new upstream version 0.9.14.1
|
|
|
|
|
2007-12-09 09:43:35 +00:00
|
|
|
* Sun Dec 09 2007 <alexlan at fedoraproject dot org> - 0.9.11.1-4
|
|
|
|
- Add missing BR: perl-devel
|
|
|
|
|
2007-12-06 19:48:27 +00:00
|
|
|
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 0.9.11.1-3
|
|
|
|
- Rebuild for deps
|
|
|
|
|
2007-01-05 21:01:32 +00:00
|
|
|
* Fri Jan 05 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.11.1-2
|
2007-01-05 18:56:55 +00:00
|
|
|
- moved to new upstream version 0.9.11.1
|
|
|
|
|
2007-01-01 12:49:05 +00:00
|
|
|
* Mon Jan 01 2007 Thorsten Scherf <tscherf@redhat.com> 0.9.11-4
|
2007-01-01 16:11:27 +00:00
|
|
|
- added x86_64-sqlite3.patch to resolve x86_86 build problems
|
2007-01-01 12:49:05 +00:00
|
|
|
|
2007-01-01 12:14:37 +00:00
|
|
|
* Sun Dec 31 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-3
|
|
|
|
- resolved macro problem in changelog
|
|
|
|
- changed several dirowner
|
|
|
|
- moved html docs into -devel
|
|
|
|
|
|
|
|
* Sat Dec 30 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-2
|
|
|
|
- corrected file list entries
|
|
|
|
- added new BuildReqs to the devel-package
|
|
|
|
- changed dirowner
|
|
|
|
- fixed x86_86 arch build problem with %%python_sitearch
|
|
|
|
|
|
|
|
* Fri Dec 29 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.11-1
|
|
|
|
- resolved rpath issue
|
|
|
|
- added python_sitearch and python_sitelib
|
|
|
|
- fixed permissions problem
|
|
|
|
- moved to new upstream version 0.9.11
|
|
|
|
|
|
|
|
* Mon Nov 20 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.10-2
|
|
|
|
- Some minor fixes in requirements
|
|
|
|
|
|
|
|
* Tue Oct 24 2006 Thorsten Scherf <tscherf@redhat.com> 0.9.10-1
|
|
|
|
- New fedora build based on release 0.9.10
|
2007-01-01 16:11:27 +00:00
|
|
|
- New fedora build based on release 0.9.10
|
2007-01-01 12:14:37 +00:00
|
|
|
|