From c4fac336358aeac9047d4554d6599e18606077da Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 20 Sep 2018 12:17:43 +0100 Subject: [PATCH] Remove Python 2 subpackage (#1631331) --- libproxy.spec | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/libproxy.spec b/libproxy.spec index 6bfaf22..f0baade 100644 --- a/libproxy.spec +++ b/libproxy.spec @@ -4,7 +4,7 @@ Name: libproxy Version: 0.4.15 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A library handling all the details of proxy configuration License: LGPLv2+ @@ -37,7 +37,6 @@ BuildRequires: pkgconfig(javascriptcoregtk-4.0) # kde BuildRequires: /usr/bin/kreadconfig5 # Python -BuildRequires: python2-devel BuildRequires: python3-devel %else # Obsoletes of disabled subpackages. @@ -68,15 +67,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The %{name}-bin package contains the proxy binary for %{name} %if ! 0%{?bootstrap} -%package -n python2-%{name} -Summary: Binding for %{name} and python2 -Requires: %{name} = %{version}-%{release} -BuildArch: noarch -%{?python_provide:%python_provide python2-%{name}} - -%description -n python2-%{name} -The python2 binding for %{name} - %package -n python3-%{name} Summary: Binding for %{name} and python3 Requires: %{name} = %{version}-%{release} @@ -156,8 +146,7 @@ developing applications that use %{name}. -DWITH_PERL=OFF \ %if ! 0%{?bootstrap} -DWITH_GNOME3=ON \ - -DWITH_PYTHON2=ON \ - -DPYTHON2_EXECUTABLE=%{__python2} \ + -DWITH_PYTHON2=OFF \ -DWITH_PYTHON3=ON \ -DWITH_WEBKIT3=ON \ -DWITH_MOZJS=ON \ @@ -198,9 +187,6 @@ make test %{_mandir}/man1/proxy.1* %if ! 0%{?bootstrap} -%files -n python2-%{name} -%{python2_sitelib}/%{name}.* - %files -n python3-%{name} %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{name}.* @@ -233,6 +219,9 @@ make test %changelog +* Thu Sep 20 2018 David King - 0.4.15-10 +- Remove Python 2 subpackage (#1631331) + * Sun Aug 26 2018 Peter Robinson 0.4.15-9 - Add patch and build against mozjs 52