2007-01-15 23:21:37 +00:00
|
|
|
#
|
2011-11-13 10:14:49 +00:00
|
|
|
# spec file for package libdnet
|
2007-01-15 23:21:37 +00:00
|
|
|
#
|
2017-07-17 10:34:36 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:21:37 +00:00
|
|
|
#
|
2009-06-18 22:57:33 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:21:37 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libdnet
|
2009-11-16 14:51:40 +00:00
|
|
|
Version: 1.12
|
2015-03-13 13:39:46 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for Simple, Portable Interface to Low Level Networking Routines
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/Other
|
2017-07-17 10:34:36 +00:00
|
|
|
Url: https://github.com/dugsong/libdnet
|
|
|
|
Source0: https://github.com/dugsong/libdnet/archive/%{name}-%{version}.tar.gz
|
|
|
|
# PATCH-FIX-UPSTREAM: properly name the dirs for new autoreconf to work
|
|
|
|
Patch0: libdnet-autoreconf.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: work properly on multilib systems (from Fedora)
|
|
|
|
Patch1: libdnet-config-multilib.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: do include string.h when needed, this is autogenerated
|
|
|
|
# file which can't be generated with today tools :(
|
|
|
|
Patch2: libdnet-fortify.patch
|
|
|
|
BuildRequires: libbsd-devel
|
2015-03-13 13:39:46 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: python-devel
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
* kernel arp(4) cache and route(4) table lookup and manipulation
|
2015-03-13 13:39:46 +00:00
|
|
|
* network firewalling (IP filter, ipfw, ipchains, pf, PktFilter, ...)
|
2007-10-11 00:03:55 +00:00
|
|
|
* network interface lookup and manipulation
|
|
|
|
* IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
* raw IP packet and Ethernet frame transmission
|
|
|
|
|
|
|
|
%package -n libdnet1
|
|
|
|
Summary: Library for Simple, Portable Interface to Low Level Networking Routines
|
2015-03-13 13:39:46 +00:00
|
|
|
Group: Development/Libraries/Other
|
2007-10-11 00:03:55 +00:00
|
|
|
|
|
|
|
%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
|
2015-03-13 13:39:46 +00:00
|
|
|
* network firewalling (IP filter, ipfw, ipchains, pf, PktFilter, ...)
|
2007-10-11 00:03:55 +00:00
|
|
|
* 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
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Devel files for libdnet
|
2015-03-13 13:39:46 +00:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libdnet1 = %{version}
|
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
|
2015-03-13 13:39:46 +00:00
|
|
|
- network firewalling (IP filter, ipfw, ipchains, pf, PktFilter, ...)
|
2007-01-15 23:21:37 +00:00
|
|
|
- network interface lookup and manipulation
|
|
|
|
- IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
- raw IP packet and Ethernet frame transmission
|
|
|
|
|
2017-07-17 10:34:36 +00:00
|
|
|
%package python
|
|
|
|
Summary: Python bindings for libdnet
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: libdnet1 = %{version}
|
|
|
|
|
|
|
|
%description python
|
|
|
|
Dnet library Python 2 bindings.
|
|
|
|
|
2007-01-15 23:21:37 +00:00
|
|
|
%prep
|
2017-07-17 10:34:36 +00:00
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
2007-01-15 23:21:37 +00:00
|
|
|
%patch0
|
2017-07-17 10:34:36 +00:00
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%build
|
2015-03-13 13:39:46 +00:00
|
|
|
ACLOCAL="aclocal -I config" autoreconf -fvi
|
2017-07-17 10:34:36 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2011-11-13 14:56:39 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2017-07-17 10:34:36 +00:00
|
|
|
pushd python
|
|
|
|
python setup.py build
|
|
|
|
popd
|
|
|
|
|
2007-01-15 23:21:37 +00:00
|
|
|
%install
|
2017-07-17 10:34:36 +00:00
|
|
|
%make_install
|
2015-03-13 13:39:46 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2017-07-17 10:34:36 +00:00
|
|
|
pushd python
|
|
|
|
python setup.py install --skip-build --root %{buildroot}
|
|
|
|
popd
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2017-07-17 10:34:36 +00:00
|
|
|
%post -n libdnet1 -p /sbin/ldconfig
|
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
|
|
|
|
%{_libdir}/libdnet.so.1*
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2017-07-17 10:34:36 +00:00
|
|
|
%files python
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%files devel
|
2007-01-15 23:21:37 +00:00
|
|
|
%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
|
2017-07-17 10:34:36 +00:00
|
|
|
%{_mandir}/man?/dnet.*%{ext_man}
|
2009-06-18 22:57:33 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%changelog
|