2007-01-15 23:21:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package libdnet (Version 1.11)
|
|
|
|
#
|
2007-10-11 00:03:55 +00:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:21:37 +00:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: libdnet
|
|
|
|
BuildRequires: python-devel
|
2007-10-11 00:03:55 +00:00
|
|
|
License: BSD 3-Clause
|
2007-01-15 23:21:37 +00:00
|
|
|
Group: Development/Libraries/Other
|
2007-10-11 00:03:55 +00:00
|
|
|
Summary: Library for Simple, Portable Interface to Low Level Networking Routines
|
2007-01-15 23:21:37 +00:00
|
|
|
Version: 1.11
|
2007-10-11 00:03:55 +00:00
|
|
|
Release: 87
|
|
|
|
Url: http://libdnet.sourceforge.net/
|
2007-01-15 23:21:37 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source0: %name-%{version}.tar.bz2
|
|
|
|
Patch0: %name.patch
|
|
|
|
|
|
|
|
%description
|
|
|
|
libdnet provides a simplified, portable interface to several low-level
|
|
|
|
networking routines, including:
|
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
* network address manipulation
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
* kernel arp(4) cache and route(4) table lookup and manipulation
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
* network firewalling (IP filter, ipfw, ipchains, pf, PktFilter,
|
2007-01-15 23:21:37 +00:00
|
|
|
...)
|
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
* network interface lookup and manipulation
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
* IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
* raw IP packet and Ethernet frame transmission
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dug Song <dugsong@monkey.org>
|
|
|
|
|
|
|
|
%package -n libdnet1
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Summary: Library for Simple, Portable Interface to Low Level Networking Routines
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
#openSUSE 10.3
|
|
|
|
Obsoletes: %{name} <= 1.11
|
|
|
|
|
|
|
|
%description -n libdnet1
|
|
|
|
libdnet provides a simplified, portable interface to several low-level
|
|
|
|
networking routines, including:
|
|
|
|
|
|
|
|
* network address manipulation
|
|
|
|
|
|
|
|
* kernel arp(4) cache and route(4) table lookup and manipulation
|
|
|
|
|
|
|
|
* network firewalling (IP filter, ipfw, ipchains, pf, PktFilter,
|
|
|
|
...)
|
|
|
|
|
|
|
|
* network interface lookup and manipulation
|
|
|
|
|
|
|
|
* IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
|
|
|
|
* raw IP packet and Ethernet frame transmission
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dug Song <dugsong@monkey.org>
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Summary: Devel files for libdnet
|
2007-10-11 00:03:55 +00:00
|
|
|
Requires: libdnet1 = %{version} glibc-devel
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libdnet provides a simplified, portable interface to several low-level
|
|
|
|
networking routines, including:
|
|
|
|
|
|
|
|
- network address manipulation
|
|
|
|
|
|
|
|
- kernel arp(4) cache and route(4) table lookup and manipulation
|
|
|
|
|
|
|
|
- network firewalling (IP filter, ipfw, ipchains, pf, PktFilter,
|
|
|
|
...)
|
|
|
|
|
|
|
|
- network interface lookup and manipulation
|
|
|
|
|
|
|
|
- IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
|
|
|
|
- raw IP packet and Ethernet frame transmission
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Dug Song <dugsong@monkey.org>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
|
|
|
|
%build
|
2007-10-11 00:03:55 +00:00
|
|
|
ACLOCAL="aclocal -I config" autoreconf -fi
|
|
|
|
%configure --disable-static --with-pic
|
2007-01-15 23:21:37 +00:00
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2007-10-11 00:03:55 +00:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/libdnet.la
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%post -n libdnet1 -p /sbin/ldconfig
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%postun -n libdnet1 -p /sbin/ldconfig
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%files -n libdnet1
|
2007-01-15 23:21:37 +00:00
|
|
|
%defattr(-,root,root)
|
2007-10-11 00:03:55 +00:00
|
|
|
%{_libdir}/libdnet.so.1*
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%files devel
|
2007-01-15 23:21:37 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE README TODO THANKS
|
2007-10-11 00:03:55 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_bindir}/dnet-config
|
|
|
|
%{_includedir}/dnet.h
|
|
|
|
%dir %{_includedir}/dnet
|
|
|
|
%{_includedir}/dnet/*.h
|
|
|
|
%{_libdir}/libdnet.so
|
|
|
|
%{_mandir}/man?/dnet.*.gz
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 09 2007 - crrodriguez@suse.de
|
|
|
|
- fix build by adapting to the library packaging policy
|
|
|
|
- remove useless libtool archive
|
|
|
|
- correct some minor packaging issues
|
2007-01-15 23:21:37 +00:00
|
|
|
* Thu Sep 21 2006 - dmueller@suse.de
|
|
|
|
- Initial package (1.11)
|