From 061da6998a06a085ddf939b648b4b0531b52d3e7f05375b7052057f3ce6f3879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 18 Mar 2020 11:39:27 +0000 Subject: [PATCH] Accepting request 786140 from home:scarabeus_iv:branches:devel:libraries:c_c++ Staging:I py2 fix OBS-URL: https://build.opensuse.org/request/show/786140 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libdnet?expand=0&rev=20 --- libdnet.changes | 6 ++++++ libdnet.spec | 34 ++++++---------------------------- 2 files changed, 12 insertions(+), 28 deletions(-) diff --git a/libdnet.changes b/libdnet.changes index afeb919..5260436 100644 --- a/libdnet.changes +++ b/libdnet.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 18 11:12:53 UTC 2020 - Tomáš Chvátal + +- Drop python2 bindings as they don't make sense to be built with + python2 removal + ------------------------------------------------------------------- Wed Aug 1 04:22:18 UTC 2018 - bwiedemann@suse.com diff --git a/libdnet.spec b/libdnet.spec index dc1b81d..f82822d 100644 --- a/libdnet.spec +++ b/libdnet.spec @@ -1,7 +1,7 @@ # # spec file for package libdnet # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -21,8 +21,7 @@ Version: 1.12 Release: 0 Summary: Library for Portable Interface to Low-Level Networking Routines License: BSD-3-Clause -Group: Development/Libraries/C and C++ -Url: https://github.com/dugsong/libdnet +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 @@ -34,7 +33,6 @@ Patch2: libdnet-fortify.patch Patch3: reproducible.patch BuildRequires: libbsd-devel BuildRequires: libtool -BuildRequires: python-devel %description libdnet provides a portable interface to several low-level @@ -48,7 +46,6 @@ networking routines, including: %package -n libdnet1 Summary: Library for Portable Interface to Low-Level Networking Routines -Group: System/Libraries %description -n libdnet1 libdnet provides a portable interface to several low-level @@ -62,7 +59,6 @@ networking routines, including: %package devel Summary: Development files for libdnet -Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libdnet1 = %{version} @@ -76,14 +72,6 @@ networking routines, including: - 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 -n %{name}-%{name}-%{version} %patch0 @@ -94,31 +82,21 @@ Dnet library Python 2 bindings. %build ACLOCAL="aclocal -I config" autoreconf -fvi %configure --disable-static -make %{?_smp_mflags} - -pushd python -python setup.py build -popd +%make_build %install %make_install find %{buildroot} -type f -name "*.la" -delete -print -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 %{_libdir}/libdnet.so.1* -%files python -%{python_sitearch}/* - %files devel -%doc LICENSE README TODO THANKS +%license LICENSE +%doc README TODO THANKS %{_sbindir}/* %{_bindir}/dnet-config %{_includedir}/dnet.h