File libp0f.spec of Package libp0f
#
# spec file for package libp0f
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
%define soname 0
Name: libp0f
Version: 2.0.8
Release: 0
Summary: A library implementation of p0f version 2
License: LGPL-2.1
Group: Development/Libraries/C and C++
Url: https://tools.netsa.cert.org/confluence/display/tt/libp0f
Source: p0flib.tgz
BuildRequires: libpcap-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libp0f is a library implementation of p0f version 2 retrieved from
http://lcamtuf.coredump.cx/p0f.shtml.
This library splits the core p0f functionality from the p0f application in order
to support 3rd-party linkage.
libp0f does not change any of the fingerprinting algorithms from p0f version 2,
nor has it upgraded any of the p0f fingerprints.
%package -n libp0f%{soname}
Summary: A library implementation of p0f version 2
License: LGPL-2.1
Group: Development/Libraries/C and C++
%description -n libp0f%{soname}
libp0f is a library implementation of p0f version 2 retrieved from
http://lcamtuf.coredump.cx/p0f.shtml.
This library splits the core p0f functionality from the p0f application in order
to support 3rd-party linkage.
libp0f does not change any of the fingerprinting algorithms from p0f version 2,
nor has it upgraded any of the p0f fingerprints.
%package -n libp0f-devel
Summary: A library implementation of p0f version 2
License: LGPL-2.1
Group: Development/Libraries/C and C++
Requires: libp0f%{soname} = %{version}
%description -n libp0f-devel
libp0f is a library implementation of p0f version 2 retrieved from
http://lcamtuf.coredump.cx/p0f.shtml.
This library splits the core p0f functionality from the p0f application in order
to support 3rd-party linkage.
libp0f does not change any of the fingerprinting algorithms from p0f version 2,
nor has it upgraded any of the p0f fingerprints.
This subpackage contains libraries and header files for developing
applications that want to make use of libp0f.
%prep
%setup -q -n p0flib
%build
cd libp0f
%configure
make %{?_smp_mflags}
%install
cd libp0f
%make_install
# we only want the shared library
rm -f %{buildroot}/%{_bindir}/p0f
%post -n libp0f%{soname} -p /sbin/ldconfig
%postun -n libp0f%{soname} -p /sbin/ldconfig
%files -n libp0f%{soname}
%defattr(-,root,root)
%doc README
%{_libdir}/libp0f.so.*
%dir %{_sysconfdir}/p0f/
%config %{_sysconfdir}/p0f/*.fp
%files -n libp0f-devel
%defattr(-,root,root)
%dir %{_includedir}/p0f/
%{_includedir}/p0f/*.h
%{_libdir}/libp0f.so
%{_libdir}/libp0f.a
%{_libdir}/libp0f.la
%{_libdir}/pkgconfig/libp0f.pc
%changelog