Hello community, here is the log from the commit of package libdnet for openSUSE:Factory checked in at 2017-08-10 14:03:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libdnet (Old) and /work/SRC/openSUSE:Factory/.libdnet.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libdnet" Thu Aug 10 14:03:59 2017 rev:21 rq:512432 version:1.12 Changes: -------- --- /work/SRC/openSUSE:Factory/libdnet/libdnet.changes 2015-03-18 13:04:12.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libdnet.new/libdnet.changes 2017-08-10 14:12:00.877201463 +0200 @@ -1,0 +2,15 @@ +Tue Jul 25 00:45:47 UTC 2017 - [email protected] + +- Fix RPM groups, trim summaries, drop pointless --with-pic. + +------------------------------------------------------------------- +Mon Jul 17 08:10:34 UTC 2017 - [email protected] + +- Switch to github +- Rename libdnet.patch to libdnet-autoreconf.patch +- Add patch to work properly on multilib systems: + * libdnet-config-multilib.patch +- Install python bindings +- Add patch for fortify-sources error libdnet-fortify.patch + +------------------------------------------------------------------- Old: ---- libdnet-1.12.tar.bz2 libdnet.patch New: ---- libdnet-1.12.tar.gz libdnet-autoreconf.patch libdnet-config-multilib.patch libdnet-fortify.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdnet.spec ++++++ --- /var/tmp/diff_new_pack.TPAy22/_old 2017-08-10 14:12:01.469118122 +0200 +++ /var/tmp/diff_new_pack.TPAy22/_new 2017-08-10 14:12:01.477116996 +0200 @@ -1,7 +1,7 @@ # # spec file for package libdnet # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -19,18 +19,24 @@ Name: libdnet Version: 1.12 Release: 0 -Summary: Library for Simple, Portable Interface to Low Level Networking Routines +Summary: Library for Portable Interface to Low-Level Networking Routines License: BSD-3-Clause -Group: Development/Libraries/Other -Url: http://code.google.com/p/libdnet/ -Source0: http://libdnet.googlecode.com/files/%{name}-%{version}.tar.bz2 -Patch0: %{name}.patch +Group: Development/Libraries/C and C++ +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 BuildRequires: libtool BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -libdnet provides a simplified, portable interface to several low-level +libdnet provides a portable interface to several low-level networking routines, including: * network address manipulation * kernel arp(4) cache and route(4) table lookup and manipulation @@ -40,11 +46,11 @@ * raw IP packet and Ethernet frame transmission %package -n libdnet1 -Summary: Library for Simple, Portable Interface to Low Level Networking Routines -Group: Development/Libraries/Other +Summary: Library for Portable Interface to Low-Level Networking Routines +Group: System/Libraries %description -n libdnet1 -libdnet provides a simplified, portable interface to several low-level +libdnet provides a portable interface to several low-level networking routines, including: * network address manipulation * kernel arp(4) cache and route(4) table lookup and manipulation @@ -54,13 +60,13 @@ * raw IP packet and Ethernet frame transmission %package devel -Summary: Devel files for libdnet -Group: Development/Libraries/Other +Summary: Development files for libdnet +Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libdnet1 = %{version} %description devel -libdnet provides a simplified, portable interface to several low-level +libdnet provides a portable interface to several low-level networking routines, including: - network address manipulation - kernel arp(4) cache and route(4) table lookup and manipulation @@ -69,29 +75,47 @@ - IP tunnelling (BSD/Linux tun, Universal TUN/TAP device) - raw IP packet and Ethernet frame transmission +%package python +Summary: Python bindings for libdnet +Group: Development/Languages/Python +Requires: libdnet1 = %{version} + +%description python +Dnet library Python 2 bindings. + %prep -%setup -q +%setup -q -n %{name}-%{name}-%{version} %patch0 +%patch1 +%patch2 -p1 %build ACLOCAL="aclocal -I config" autoreconf -fvi -%configure --disable-static --with-pic +%configure --disable-static make %{?_smp_mflags} +pushd python +python setup.py build +popd + %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} +%make_install find %{buildroot} -type f -name "*.la" -delete -print -%post -n libdnet1 -p /sbin/ldconfig +pushd python +python setup.py install --skip-build --root %{buildroot} +popd +%post -n libdnet1 -p /sbin/ldconfig %postun -n libdnet1 -p /sbin/ldconfig %files -n libdnet1 -%defattr(-,root,root) %{_libdir}/libdnet.so.1* +%files python +%{python_sitearch}/* + %files devel -%defattr(-,root,root) %doc LICENSE README TODO THANKS %{_sbindir}/* %{_bindir}/dnet-config @@ -99,6 +123,6 @@ %dir %{_includedir}/dnet %{_includedir}/dnet/*.h %{_libdir}/libdnet.so -%{_mandir}/man?/dnet.*.gz +%{_mandir}/man?/dnet.*%{ext_man} %changelog ++++++ libdnet-autoreconf.patch ++++++ Index: configure.in =================================================================== --- configure.in.orig +++ configure.in @@ -6,7 +6,6 @@ dnl dnl $Id$ AC_INIT(include/dnet.h) -AC_CONFIG_AUX_DIR(config) AC_SUBST(ac_aux_dir) AM_INIT_AUTOMAKE(libdnet, 1.12) ++++++ libdnet-config-multilib.patch ++++++ --- dnet-config.in.old 2014-03-14 11:40:27.332135003 +0000 +++ dnet-config.in 2014-03-14 11:41:08.624931401 +0000 @@ -45,10 +45,10 @@ done if test "$echo_cflags" = "yes"; then - echo -I@includedir@ + echo fi if test "$echo_libs" = "yes"; then - echo -L@libdir@ -ldnet @LIBS@ + echo -ldnet @LIBS@ fi ++++++ libdnet-fortify.patch ++++++ Index: libdnet-libdnet-1.12/python/dnet.c =================================================================== --- libdnet-libdnet-1.12.orig/python/dnet.c +++ libdnet-libdnet-1.12/python/dnet.c @@ -20,6 +20,8 @@ #endif __PYX_EXTERN_C double pow(double, double); #include "dnet.h" +#include <string.h> +#include <bsd/string.h> typedef struct {const char *s; const void **p;} __Pyx_CApiTabEntry; /*proto*/
