Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37434660
en ru br
ALT Linux repos
S:1.1.6-alt1
5.0: 1.1.2.1-alt4
4.1: 1.1.2.1-alt3
4.0: 1.1.2.1-alt2
3.0: 1.1.2.1-alt1

Group :: System/Libraries
RPM: libnet2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libnet2
Version: 1.1.6
Release: alt1

Summary: C library for portable packet creation and injection
Group: System/Libraries
License: BSD-style
Url: http://www.sourceforge.net/projects/libnet-dev/

# http://git.altlinux.org/gears/l/libnet2.git

Source: libnet-%version-%release.tar
Source1: libnet-config.1

Provides: libnet = %version-%release
Obsoletes: libnet < %version-%release
BuildRequires: doxygen

%def_disable static

%package devel
Summary: Development Libnet library, header files, documentation and examples
Group: Development/C
Provides: libnet-devel = %version-%release
Obsoletes: libnet-devel < %version-%release
Conflicts: libnet1-devel
Requires: %name = %version-%release

%package devel-static
Summary: Static Libnet library
Group: Development/C
Provides: libnet-devel-static = %version-%release
Obsoletes: libnet-devel-static < %version-%release
Conflicts: libnet1-devel-static
Requires: %name-devel = %version-%release

%description
Libnet is an API to help with the construction and handling of network
packets.  It provides a portable framework for low-level network
packet writing and handling (use Libnet in conjunction with libpcap and
you can write some really cool stuff).  Libnet includes packet creation
at the IP layer and at the link layer as well as a host of supplementary
and complementary functionality.  Libnet is avery handy with which to
write network tools and network test code.  See the manpage and sample
test code for more detailed information.

%description devel
Libnet is an API to help with the construction and handling of network
packets.  It provides a portable framework for low-level network
packet writing and handling (use Libnet in conjunction with libpcap and
you can write some really cool stuff).  Libnet includes packet creation
at the IP layer and at the link layer as well as a host of supplementary
and complementary functionality.  Libnet is avery handy with which to
write network tools and network test code.  See the manpage and sample
test code for more detailed information.

This package contains the development library, it's header files,
documentation and examples needed to develop Libnet-based applications.

%description devel-static
Libnet is an API to help with the construction and handling of network
packets.  It provides a portable framework for low-level network
packet writing and handling (use Libnet in conjunction with libpcap and
you can write some really cool stuff).  Libnet includes packet creation
at the IP layer and at the link layer as well as a host of supplementary
and complementary functionality.  Libnet is avery handy with which to
write network tools and network test code.  See the manpage and sample
test code for more detailed information.

This package contains the static library required to develop statically
linked Libnet-based applications.

%prep
%setup -n libnet-%version-%release
bzip2 -9k doc/CHANGELOG

%build
%add_optflags -fno-strict-aliasing
%autoreconf
export ac_cv_libnet_linux_procfs=yes
%configure %{subst_enable static}
make -C doc doc
%make_build

%install
%makeinstall_std
mkdir -p %buildroot%_man1dir
install -pm644 %_sourcedir/libnet-config.1 %buildroot%_man1dir/

# Relocate shared libraries from %_libdir/ to /%_lib/

mkdir %buildroot/%_lib
for f in %buildroot%_libdir/lib*.so; do
t=$(readlink "$f") || continue
ln -sf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/lib*.so.* %buildroot/%_lib/

%define _customdocdir %_docdir/libnet-%version

%files
/%_lib/*.so.*

%files devel
%_bindir/*
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%doc doc/{CHANGELOG.bz2,COPYING,DESIGN_NOTES,MIGRATION,PACKET_BUILDING,RAWSOCKET_NON_SEQUITUR,TODO}

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin