Remove Python 2 support (#1634715)
This commit is contained in:
parent
122525edac
commit
6933729ad4
@ -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 <richmattes@gmail.com> - 0.5.7-5
|
||||
- Remove Python 2 support (#1634715)
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user