From 5310f8a438ef05771a92f130e3ea8725fab1e123230eacc2fcd96d5878ae6f40 Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Mon, 8 Jan 2018 11:28:58 +0000 Subject: [PATCH] Accepting request 562455 from openSUSE:Factory:Staging:O - Switch directly to python3 in order for us to proceed with py2 obsoletion for future releases * Upstream sadly can build only against one of the two OBS-URL: https://build.opensuse.org/request/show/562455 OBS-URL: https://build.opensuse.org/package/show/server:dns/ldns?expand=0&rev=36 --- ldns.changes | 7 +++++++ ldns.spec | 17 +++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/ldns.changes b/ldns.changes index fad55ab..652343d 100644 --- a/ldns.changes +++ b/ldns.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 8 10:08:13 UTC 2018 - tchvatal@suse.com + +- Switch directly to python3 in order for us to proceed with py2 + obsoletion for future releases + * Upstream sadly can build only against one of the two + ------------------------------------------------------------------- Thu Nov 16 14:17:03 UTC 2017 - vcizek@suse.com diff --git a/ldns.spec b/ldns.spec index 05323d0..2877b6f 100644 --- a/ldns.spec +++ b/ldns.spec @@ -1,7 +1,7 @@ # # spec file for package ldns # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -30,7 +30,7 @@ BuildRequires: fdupes BuildRequires: libopenssl-devel BuildRequires: libpcap-devel BuildRequires: perl-Devel-CheckLib -BuildRequires: python-devel +BuildRequires: python3-devel BuildRequires: swig %description @@ -65,12 +65,12 @@ experimental software for current Internet Drafts. This package holds the development files. -%package -n python-ldns -Summary: Python bindings for ldns +%package -n python3-ldns +Summary: Python3 bindings for ldns Group: Development/Languages/Python Requires: %{libname} >= %{version} -%description -n python-ldns +%description -n python3-ldns Python bindings for the ldns library %package -n perl-DNS-LDNS @@ -89,6 +89,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" if pkg-config --max-version=1.1.0 openssl; then DISABLE_DANE="--disable-dane-verify" fi +export PYTHON=%{_bindir}/python3 %configure \ --disable-rpath \ --disable-static \ @@ -121,7 +122,7 @@ make DESTDIR=%{buildroot} \ make DESTDIR=%{buildroot} \ install-pyldns \ install-pyldnsx -rm -v %{buildroot}%{python_sitearch}/*.la +rm -v %{buildroot}%{python3_sitearch}/*.la make -C contrib/DNS-LDNS DESTDIR=%{buildroot} pure_install chmod 755 %{buildroot}%{perl_vendorarch}/auto/DNS/LDNS/LDNS.so @@ -181,7 +182,7 @@ rm -v %{buildroot}%{_libdir}/libldns.*a %{perl_vendorarch}/auto/DNS/LDNS/ %{_mandir}/man3/DNS::LDNS*3pm* -%files -n python-ldns -%{python_sitearch}/*ldns* +%files -n python3-ldns +%{python3_sitearch}/*ldns* %changelog