From 3eb70571e9c1912b3fa60bfe68572473fa03d24061cc9c625a82b29c2c78dfb9 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Tue, 7 Jan 2020 13:43:21 +0000 Subject: [PATCH] Accepting request 758232 from home:mslacken:pr - moved python plugin to python3 OBS-URL: https://build.opensuse.org/request/show/758232 OBS-URL: https://build.opensuse.org/package/show/network:cluster/genders?expand=0&rev=24 --- genders.changes | 5 +++++ genders.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/genders.changes b/genders.changes index aa54b26..a963eb1 100644 --- a/genders.changes +++ b/genders.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 19 14:19:10 UTC 2019 - Christian Goll + +- moved python plugin to python3 + ------------------------------------------------------------------- Fri Nov 29 09:35:37 UTC 2019 - Ana Guerrero Lopez diff --git a/genders.spec b/genders.spec index 3915480..e93813d 100644 --- a/genders.spec +++ b/genders.spec @@ -40,8 +40,6 @@ BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: lua-devel -BuildRequires: python -BuildRequires: python-devel BuildRequires: python3 BuildRequires: python3-devel BuildRequires: perl(ExtUtils::MakeMaker) @@ -79,13 +77,13 @@ 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 Requires: %{name} = %{version} Requires: python -%description -n python-%{name} +%description -n python3-%{name} Necessary files for using genders with Python. %package -n lua-%{name} @@ -150,6 +148,9 @@ aclocal --force --install -I config libtoolize -f -i automake -a -f autoconf --force +mkdir -p bin/ +ln -s $(which python3) bin/python +export PATH=$(pwd)/bin/:${PATH} %configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \ %{?_with_perl_extensions} \ %{?_without_perl_extensions} \ @@ -184,6 +185,7 @@ for file in %{buildroot}%{_prefix}/lib/genders/*.pl; do grep '#!/usr/bin/perl' $ rm -v %{buildroot}%{_libdir}/libgendersplusplus.la %endif rm -v %{buildroot}%{_libdir}/libgenders.la +rm -rv %{buildroot}%{_libdir}/python*/site-packages/__pycache__ find %{buildroot}%{_libdir}/lua -name \*.la -delete mkdir -p %{buildroot}%{_sysconfdir} # create sample config, but remove comments @@ -241,7 +243,7 @@ sed -i -e 's/^\([^#]\)/## \1/' %{buildroot}%{_sysconfdir}/genders %{_mandir}/man3/libgenders* %if %{?_with_python_extensions:1}%{!?_with_python_extensions:0} -%files -n python-%{name} +%files -n python3-%{name} %{_libdir}/python* %endif