Accepting request 290652 from devel:libraries:c_c++

- Reorder bit with spec cleaner
- Make the descriptions bit smaller

OBS-URL: https://build.opensuse.org/request/show/290652
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdnet?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2015-03-18 12:04:11 +00:00 committed by Git OBS Bridge
commit eb288716bf
2 changed files with 25 additions and 42 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 13 13:39:24 UTC 2015 - tchvatal@suse.com
- Reorder bit with spec cleaner
- Make the descriptions bit smaller
-------------------------------------------------------------------
Sun Nov 13 14:54:56 UTC 2011 - jengelh@medozas.de

View File

@ -1,7 +1,7 @@
#
# spec file for package libdnet
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,80 +16,57 @@
#
Name: libdnet
BuildRequires: libtool python-devel
Version: 1.12
Release: 0
Summary: Library for Simple, Portable Interface to Low Level Networking Routines
License: BSD-3-Clause
Group: Development/Libraries/Other
Summary: Library for Simple, Portable Interface to Low Level Networking Routines
Version: 1.12
Release: 2
URL: http://code.google.com/p/libdnet/
Url: http://code.google.com/p/libdnet/
Source0: http://libdnet.googlecode.com/files/%{name}-%{version}.tar.bz2
Patch0: %{name}.patch
BuildRequires: libtool
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://libdnet.googlecode.com/files/%name-%{version}.tar.bz2
Patch0: %name.patch
%description
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 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
%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
Group: Development/Libraries/Other
%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 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
%package devel
Group: Development/Libraries/Other
Summary: Devel files for libdnet
Requires: libdnet1 = %{version} glibc-devel
Group: Development/Libraries/Other
Requires: glibc-devel
Requires: libdnet1 = %{version}
%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 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
%prep
@ -97,13 +74,13 @@ networking routines, including:
%patch0
%build
ACLOCAL="aclocal -I config" autoreconf -fi
ACLOCAL="aclocal -I config" autoreconf -fvi
%configure --disable-static --with-pic
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/libdnet.la
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libdnet1 -p /sbin/ldconfig