Accepting request 1039211 from home:StevenK:branches:network:cluster

- Actually move Python plugin to building with Python 3, and rename the
  Python binding package to reflect this.
- Add patch also-check-for-python3.patch to check for Python 3 as well.

OBS-URL: https://build.opensuse.org/request/show/1039211
OBS-URL: https://build.opensuse.org/package/show/network:cluster/genders?expand=0&rev=28
This commit is contained in:
Christian Goll 2022-12-01 07:26:00 +00:00 committed by Git OBS Bridge
parent c475128949
commit 2bfa2d44dc
3 changed files with 27 additions and 7 deletions

View File

@ -0,0 +1,13 @@
Index: genders-1.27.3/configure.ac
===================================================================
--- genders-1.27.3.orig/configure.ac
+++ genders-1.27.3/configure.ac
@@ -80,7 +80,7 @@ AM_PROG_LEX
AC_PROG_YACC
AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes")
AC_PATH_PROG([PERL], [perl])
-AC_PATH_PROG([PYTHON], [python])
+AC_PATH_PROG([PYTHON], [python], [python3])
AC_PATH_PROG([POD2MAN], [pod2man], [/usr/bin/pod2man], [$PATH:/usr/perl5/bin/])
AC_PATH_PROG([JAVAC], [javac])
AC_PATH_PROG([JAVAH], [javah])

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Dec 1 02:13:43 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Actually move Python plugin to building with Python 3, and rename the
Python binding package to reflect this.
- Add patch also-check-for-python3.patch to check for Python 3 as well.
-------------------------------------------------------------------
Mon Jul 25 12:25:49 UTC 2022 - Christian Goll <cgoll@suse.com>

View File

@ -31,6 +31,7 @@ Source: https://github.com/chaos/genders/archive/genders-%{slash_ver}/%{
Patch1: Fix-Python-package-installation-use-root.patch
Patch2: Remove-PERL_DESTDIR-use-DESTDIR-instead.patch
Patch4: lua_bindings.patch
Patch5: also-check-for-python3.patch
URL: https://github.com/chaos/genders
BuildRequires: autoconf
BuildRequires: autoconf-archive
@ -41,9 +42,6 @@ BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: lua-devel
BuildRequires: patchelf
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: %{name}-base
@ -80,13 +78,14 @@ Requires: %{name} = %{version}
%description devel
genders headers and libraries files needed for development
%package -n python-%{name}
%package -n python3-%{name}
Summary: Python bindings for genders
Group: Development/Languages/Python
Provides: python-%{name} = %{version}
Obsoletes: python-%{name}
Requires: %{name} = %{version}
Requires: python
%description -n python-%{name}
%description -n python3-%{name}
Necessary files for using genders with Python.
%package -n lua-%{name}
@ -146,6 +145,7 @@ rm -r genders-genders-%{slash_ver}
%autopatch -p1
%build
export PYTHON=python3
aclocal --force --install -I config
libtoolize -f -i
automake -a -f
@ -247,7 +247,7 @@ chmod 444 $brklib
%{_mandir}/man3/libgenders*
%if %{?_with_python_extensions:1}%{!?_with_python_extensions:0}
%files -n python-%{name}
%files -n python3-%{name}
%{_libdir}/python*
%endif