From 6933729ad431175cfdc04e11b2eb60904a4197a7 Mon Sep 17 00:00:00 2001 From: Rich Mattes Date: Jan 20 2019 17:36:19 +0000 Subject: Remove Python 2 support (#1634715) --- diff --git a/libfreenect.spec b/libfreenect.spec index 3d31a34..7dd3642 100644 --- a/libfreenect.spec +++ b/libfreenect.spec @@ -8,7 +8,7 @@ Name: libfreenect Version: 0.5.7 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Device driver for the Kinect # Core libfreenect is available as ASL 2.0 OR GPLv2 # OpenNI driver is available as ASL 2.0 @@ -41,8 +41,7 @@ BuildRequires: libGL-devel BuildRequires: libXi-devel BuildRequires: libXmu-devel BuildRequires: opencv-devel -BuildRequires: python2-devel -BuildRequires: python2-numpy +BuildRequires: python3-Cython BuildRequires: python3-devel BuildRequires: python3-numpy @@ -88,18 +87,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The %{name}-opencv package contains the libfreenect binding library for OpenCV development. -%package -n python2-%{name} -Summary: Python 2 bindings for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: python2-numpy -# Until F28 -Provides: %{name}-python%{?_isa} = %{version}-%{release} -Obsoletes: %{name}-python < 0.5.5 -%{?python_provide:%python_provide python2-%{name}} - -%description -n python2-%{name} -The %{name}-python package contains python 2 bindings for %{name} - %package -n python3-%{name} Summary: Python 3 bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -141,7 +128,9 @@ pushd build -DBUILD_REDIST_PACKAGE=ON \ -DBUILD_EXAMPLES=ON \ -DBUILD_FAKENECT=ON \ - -DBUILD_PYTHON=ON \ + -DBUILD_PYTHON=OFF \ + -DBUILD_PYTHON2=OFF \ + -DBUILD_PYTHON3=ON \ -DBUILD_OPENNI2_DRIVER=ON make %{?_smp_mflags} VERBOSE=1 @@ -170,14 +159,6 @@ mv %{buildroot}%{_datadir}/fwfetcher.py %{buildroot}%{_datadir}/%{name} # Move openni plugin: rhbz#1094787 mv %{buildroot}%{_libdir}/OpenNI2-FreenectDriver %{buildroot}%{_libdir}/openni2/Drivers -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%post opencv -p /sbin/ldconfig - -%postun opencv -p /sbin/ldconfig - %files %license APACHE20 GPL2 %doc README.md CONTRIB @@ -204,9 +185,6 @@ mv %{buildroot}%{_libdir}/OpenNI2-FreenectDriver %{buildroot}%{_libdir}/openni2/ %files static %{_libdir}/*.a -%files -n python2-%{name} -%{python2_sitearch}/*.so - %files -n python3-%{name} %{python3_sitearch}/*.so @@ -221,6 +199,9 @@ mv %{buildroot}%{_libdir}/OpenNI2-FreenectDriver %{buildroot}%{_libdir}/openni2/ %{_libdir}/openni2 %changelog +* Sun Jan 20 2019 Rich Mattes - 0.5.7-5 +- Remove Python 2 support (#1634715) + * Fri Jul 13 2018 Fedora Release Engineering - 0.5.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild