File libidmef.spec of Package libidmef
#
# spec file for package libidmef (Version 0.7.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libidmef
BuildRequires: libxml2-devel
Url: http://sourceforge.net/projects/libidmef
Summary: C Library for the Intrusion Detection Message Exchange Format (IDMEF)
Version: 0.7.2
Release: 198
License: BSD 3-Clause; GPL v2 or later
Group: Development/Libraries/C and C++
Source: libidmef-0.7.2.tar.gz
Patch: libidmef-0.7.2_idmefxml_bufferoverflow_detection.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libxml2 libxml2-devel
%description
Libidmef is a C implementation of the Intrusion Detection Message
Exchange Format (IDMEF) made by Silicon Defense.
Authors:
--------
Joe McAlerney, joey@silicondefense.com
Adam Migus, NAI Labs, amigus@NAI.com
%package devel
License: BSD 3-Clause; GPL v2 or later
Group: Development/Libraries/C and C++
Summary: C Library for the "Intrusion Detection Message Exchange Format" (IDMEF)
Requires: libxml2 libxml2-devel
%description devel
Libidmef is a C implementation of the "Intrusion Detection Message
Exchange Format" (IDMEF) made by Silicon Defense.
Authors:
--------
Joe McAlerney, joey@silicondefense.com
Adam Migus, NAI Labs, amigus@NAI.com
%prep
%setup
%patch
%build
%{?suse_update_config:%{suse_update_config -f .}}
rm acinclude.m4
autoreconf -i -f
LDFLAGS="$(xml2-config --libs)" \
CFLAGS="$RPM_OPT_FLAGS $(xml2-config --cflags) -fno-strict-aliasing" \
./configure --includedir=/usr/include/ --libdir=%{_libdir} --with-libxml2-includes=/usr/include/libxml2 --with-libxml2-libraries=%{_libdir}
make
%install
# make directories
mkdir -p $RPM_BUILD_ROOT/etc/idmef/
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
# install files
make DESTDIR=$RPM_BUILD_ROOT install
install idmef-message.dtd $RPM_BUILD_ROOT/etc/idmef/
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%attr(755,root,root) %dir /etc/idmef
%attr(644,root,root) %config(noreplace) /etc/idmef/idmef-message.dtd
%attr(555,root,root) %{_libdir}/libidmef.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%attr(755,root,root) %dir /usr/include/libidmef
%attr(644,root,root) /usr/include/libidmef/idmefxml.h
%attr(644,root,root) /usr/include/libidmef/idmefxml_gen.h
%attr(644,root,root) /usr/include/libidmef/idmefxml_parse.h
%attr(644,root,root) /usr/include/libidmef/idmefxml_types.h
%attr(555,root,root) %{_libdir}/libidmef.a
%attr(555,root,root) %{_libdir}/libidmef.la
%attr(555,root,root) %{_libdir}/libidmef.so
%changelog
* Thu Oct 09 2008 thomas@suse.de
- fixed build failures due to 02-check-gcc-output
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 31 2005 dmueller@suse.de
- don't build as root
* Tue Apr 20 2004 thomas@suse.de
- removed cleanup commands from %%install section
* Tue Apr 20 2004 thomas@suse.de
- try to solve build-problem by using '-fno-strict-aliasing'
(can not reproduce the problem)
* Mon Feb 02 2004 thomas@suse.de
- removed file conflict reported by PDB
* Fri Jan 09 2004 thomas@suse.de
- added patch from Marcus Meissner to solve libtool problem
* Tue Jan 06 2004 thomas@suse.de
- initial version