disable python2 subpackage

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-10-01 12:42:41 +02:00
parent c563e58980
commit fa07070eb0
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -1,6 +1,10 @@
%global libname solv %global libname solv
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} <= 29)
%bcond_without python2_bindings %bcond_without python2_bindings
%else
%bcond_with python2_bindings
%endif
%if 0%{?rhel} && 0%{?rhel} <= 7 %if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with perl_bindings %bcond_with perl_bindings
%bcond_with ruby_bindings %bcond_with ruby_bindings
@ -38,7 +42,7 @@
Name: lib%{libname} Name: lib%{libname}
Version: 0.6.35 Version: 0.6.35
Release: 1%{?commit:.git.%{commitnum}.%{?shortcommit}}%{?dist} Release: 2%{?commit:.git.%{commitnum}.%{?shortcommit}}%{?dist}
Summary: Package dependency solver Summary: Package dependency solver
License: BSD License: BSD
@ -183,8 +187,20 @@ Python 3 version.
%{?with_complex_deps:-DENABLE_COMPLEX_DEPS=1} \ %{?with_complex_deps:-DENABLE_COMPLEX_DEPS=1} \
%{?with_perl_bindings:-DENABLE_PERL=ON} \ %{?with_perl_bindings:-DENABLE_PERL=ON} \
%{?with_ruby_bindings:-DENABLE_RUBY=ON} \ %{?with_ruby_bindings:-DENABLE_RUBY=ON} \
%{?with_python2_bindings:-DENABLE_PYTHON=ON} \ %if %{with python2_bindings} || %{with python3_bindings}
%{?with_python3_bindings:-DENABLE_PYTHON3=ON} \ -DENABLE_PYTHON=ON \
%if %{with python2_bindings}
-DPythonLibs_FIND_VERSION=%{python2_version} \
-DPythonLibs_FIND_VERSION_MAJOR=2 \
%if %{with python3_bindings}
-DENABLE_PYTHON3=ON \
-DPYTHON3_EXECUTABLE=%{__python3} \
%endif
%else
-DPythonLibs_FIND_VERSION=%{python3_version} \
-DPythonLibs_FIND_VERSION_MAJOR=3 \
%endif
%endif
%{nil} %{nil}
%ninja_build -C "%{_vpath_builddir}" %ninja_build -C "%{_vpath_builddir}"
@ -278,6 +294,9 @@ Python 3 version.
%endif %endif
%changelog %changelog
* Mon Oct 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.35-2
- Disable python2 subpackage
* Thu Aug 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.35-1 * Thu Aug 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.35-1
- Update to 0.6.35 - Update to 0.6.35