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
This commit is contained in:
Christian Goll 2020-01-07 13:43:21 +00:00 committed by Git OBS Bridge
parent 46d9c18040
commit 3eb70571e9
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 19 14:19:10 UTC 2019 - Christian Goll <cgoll@suse.com>
- moved python plugin to python3
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 29 09:35:37 UTC 2019 - Ana Guerrero Lopez <aguerrero@suse.com> Fri Nov 29 09:35:37 UTC 2019 - Ana Guerrero Lopez <aguerrero@suse.com>

View File

@ -40,8 +40,6 @@ BuildRequires: flex
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool BuildRequires: libtool
BuildRequires: lua-devel BuildRequires: lua-devel
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python3 BuildRequires: python3
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
@ -79,13 +77,13 @@ Requires: %{name} = %{version}
%description devel %description devel
genders headers and libraries files needed for development genders headers and libraries files needed for development
%package -n python-%{name} %package -n python3-%{name}
Summary: Python bindings for genders Summary: Python bindings for genders
Group: Development/Languages/Python Group: Development/Languages/Python
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: python Requires: python
%description -n python-%{name} %description -n python3-%{name}
Necessary files for using genders with Python. Necessary files for using genders with Python.
%package -n lua-%{name} %package -n lua-%{name}
@ -150,6 +148,9 @@ aclocal --force --install -I config
libtoolize -f -i libtoolize -f -i
automake -a -f automake -a -f
autoconf --force autoconf --force
mkdir -p bin/
ln -s $(which python3) bin/python
export PATH=$(pwd)/bin/:${PATH}
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \ %configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
%{?_with_perl_extensions} \ %{?_with_perl_extensions} \
%{?_without_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 rm -v %{buildroot}%{_libdir}/libgendersplusplus.la
%endif %endif
rm -v %{buildroot}%{_libdir}/libgenders.la rm -v %{buildroot}%{_libdir}/libgenders.la
rm -rv %{buildroot}%{_libdir}/python*/site-packages/__pycache__
find %{buildroot}%{_libdir}/lua -name \*.la -delete find %{buildroot}%{_libdir}/lua -name \*.la -delete
mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_sysconfdir}
# create sample config, but remove comments # create sample config, but remove comments
@ -241,7 +243,7 @@ sed -i -e 's/^\([^#]\)/## \1/' %{buildroot}%{_sysconfdir}/genders
%{_mandir}/man3/libgenders* %{_mandir}/man3/libgenders*
%if %{?_with_python_extensions:1}%{!?_with_python_extensions:0} %if %{?_with_python_extensions:1}%{!?_with_python_extensions:0}
%files -n python-%{name} %files -n python3-%{name}
%{_libdir}/python* %{_libdir}/python*
%endif %endif