libfreenect/libfreenect.spec

346 lines
11 KiB
RPMSpec
Raw Normal View History

%global commit 88166014859c09f6ad6a93f0862bdcc4e46dc87e
2014-05-02 23:49:19 +00:00
%global shortcommit %(c=%{commit}; echo ${c:0:7})
2012-09-03 00:39:51 +00:00
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
Name: libfreenect
Version: 0.5.7
2020-01-27 12:33:42 +00:00
Release: 12%{?dist}
2012-09-03 00:39:51 +00:00
Summary: Device driver for the Kinect
2017-03-09 00:07:17 +00:00
# Core libfreenect is available as ASL 2.0 OR GPLv2
# OpenNI driver is available as ASL 2.0
License: ASL 2.0 and (GPLv2 or ASL 2.0)
2012-09-03 00:39:51 +00:00
URL: http://www.openkinect.org/
2015-03-04 15:21:10 +00:00
Source0: https://github.com/OpenKinect/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
# Edit udev rule to only allow access to the device from the video group
Patch0: %{name}-0.5.7-videogroup.patch
2014-05-02 23:49:19 +00:00
# Freenect openni driver is a plugin lib, and doesn't need soversion symlinks
Patch1: %{name}-0.4.1-openni2.patch
# Allow for proper libdir
Patch3: %{name}-0.4.2-libdir.patch
# BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1143912
Patch4: secarch.patch
2017-03-09 00:07:17 +00:00
# Fix the installation path for python libs
Patch7: %{name}-0.5.5-py3.patch
# Fixes to OpenCV support
# https://github.com/OpenKinect/libfreenect/pull/555
Patch8: 0001-Build-libfreenect_cv-and-cvdemo-as-C-sources.patch
Patch9: 0002-Fix-bugs-in-sync-library-error-handling.patch
2020-01-27 12:33:42 +00:00
# Fixup of OpenCV fixes
Patch10: libfreenect-opencv4.patch
2013-01-09 16:41:24 +00:00
BuildRequires: gcc-c++
2012-09-03 00:39:51 +00:00
BuildRequires: cmake
BuildRequires: Cython
BuildRequires: doxygen
BuildRequires: freeglut-devel
BuildRequires: libusb1-devel
BuildRequires: libGL-devel
BuildRequires: libXi-devel
BuildRequires: libXmu-devel
BuildRequires: opencv-devel
2019-01-20 17:36:19 +00:00
BuildRequires: python3-Cython
2017-03-09 00:07:17 +00:00
BuildRequires: python3-devel
BuildRequires: python3-numpy
2012-09-03 00:39:51 +00:00
Requires: udev
%description
libfreenect is a free and open source library that provides access to the
Kinect device. Currently, the library supports the RGB webcam, the depth
image, the LED, and the tilt motor.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package static
Summary: Development files for %{name}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
The %{name}-static package contains static libraries for
developing applications that use %{name}.
%package fakenect
Summary: Library to play back recorded data for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description fakenect
Fakenect consists of a "record" program to save dumps from the kinect sensor
and a library that can be linked to, providing an interface compatible with
freenect. This allows you to save data and repeat for experiments, debug
problems, share datasets, and experiment with the kinect without having one.
%package opencv
Summary: OpenCV bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2012-09-03 00:39:51 +00:00
%description opencv
The %{name}-opencv package contains the libfreenect binding
library for OpenCV development.
2012-09-03 00:39:51 +00:00
2017-03-09 00:07:17 +00:00
%package -n python3-%{name}
Summary: Python 3 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python3-numpy
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
The %{name}-python package contains python 3 bindings for %{name}
2012-09-03 00:39:51 +00:00
2014-05-02 23:49:19 +00:00
%package openni
Summary: OpenNI2 driver for the Kinect
%description openni
The OpenNI2-FreenectDriver is a bridge to libfreenect implemented as an
OpenNI2 driver. It allows OpenNI2 to use Kinect hardware on Linux and OSX.
It was originally a separate project but is now distributed with libfreenect.
2012-09-03 00:39:51 +00:00
%prep
2015-03-04 15:21:10 +00:00
%setup -qn %{name}-%{commit}
2014-05-02 23:49:19 +00:00
rm -rf platform/windows
2017-03-09 00:07:17 +00:00
%patch0 -p0 -b .videogroup
2014-05-02 23:49:19 +00:00
%patch1 -p0 -b .openni2
%patch3 -p0 -b .libdir
%patch4 -p1 -b .secarch
2017-03-09 00:07:17 +00:00
%patch7 -p1 -b .py3
%patch8 -p1
%patch9 -p1
2020-01-27 12:33:42 +00:00
%patch10 -p1 -b .cv4
2012-09-03 00:39:51 +00:00
%build
mkdir build
pushd build
# FTBFS with opencv 3.4.1:
# https://bugzilla.redhat.com/show_bug.cgi?id=1551748
%cmake .. \
-DBUILD_AUDIO=ON \
-DBUILD_C_SYNC=ON \
-DBUILD_CV=ON \
-DBUILD_REDIST_PACKAGE=ON \
-DBUILD_EXAMPLES=ON \
-DBUILD_FAKENECT=ON \
2019-01-20 17:36:19 +00:00
-DBUILD_PYTHON=OFF \
-DBUILD_PYTHON2=OFF \
-DBUILD_PYTHON3=ON \
2017-03-09 00:07:17 +00:00
-DBUILD_OPENNI2_DRIVER=ON
2012-09-03 00:39:51 +00:00
make %{?_smp_mflags} VERBOSE=1
popd
pushd doc
doxygen Doxyfile
popd
%install
rm -rf %{buildroot}
make -C build install DESTDIR=%{buildroot}
# Install the kinect udev rule
2012-09-03 00:39:51 +00:00
mkdir -p %{buildroot}/lib/udev/rules.d
mkdir -p %{buildroot}%{_libdir}/openni2
2012-09-03 00:39:51 +00:00
install -p -m 0644 platform/linux/udev/51-kinect.rules %{buildroot}/lib/udev/rules.d
# Delete libtool archives
2012-09-03 00:39:51 +00:00
find %{buildroot} -name '*.la' -exec rm -f {} ';'
# Move the fwfetcher script to the correct datadir
2012-09-03 00:39:51 +00:00
mkdir -p %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_datadir}/fwfetcher.py %{buildroot}%{_datadir}/%{name}
# Move openni plugin: rhbz#1094787
mv %{buildroot}%{_libdir}/OpenNI2-FreenectDriver %{buildroot}%{_libdir}/openni2/Drivers
2012-09-03 00:39:51 +00:00
%files
2017-03-09 00:07:17 +00:00
%license APACHE20 GPL2
%doc README.md CONTRIB
2012-09-03 00:39:51 +00:00
/lib/udev/rules.d/*
%{_libdir}/libfreenect.so.*
%{_libdir}/libfreenect_sync.so.*
%exclude %{_bindir}/freenect-cvdemo
%exclude %{_bindir}/fakenect
%{_bindir}/freenect-*
%{_datadir}/%{name}
%files opencv
%{_bindir}/freenect-cvdemo
%{_libdir}/libfreenect_cv.so.*
2012-09-03 00:39:51 +00:00
%files devel
%doc doc/html
%doc examples/*.c wrappers/cpp/cppview.cpp
%{_includedir}/libfreenect
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/fakenect/*.so
%files static
%{_libdir}/*.a
2017-03-09 00:07:17 +00:00
%files -n python3-%{name}
%{python3_sitearch}/*.so
2012-09-03 00:39:51 +00:00
%files fakenect
%dir %{_libdir}/fakenect
2014-05-02 23:49:19 +00:00
%{_bindir}/fakenect-record
2012-09-03 00:39:51 +00:00
%{_libdir}/fakenect/*.so.*
%{_bindir}/fakenect
2014-05-02 23:49:19 +00:00
%{_mandir}/man1/fakenect*1.*
%files openni
%{_libdir}/openni2
2012-09-03 00:39:51 +00:00
%changelog
2020-01-27 12:33:42 +00:00
* Mon Jan 27 2020 Nicolas Chauvet <kwizart@gmail.com> - 0.5.7-12
- Fix for OpenCV4
2019-12-29 19:40:51 +00:00
* Sun Dec 29 2019 Nicolas Chauvet <kwizart@gmail.com> - 0.5.7-11
2019-12-29 10:21:42 +00:00
- Rebuilt for opencv4
2019-10-04 12:38:07 +00:00
* Tue Sep 17 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.5.7-9
- Rebuilt for new freeglut
2019-08-19 08:17:43 +00:00
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.7-8
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2019-01-20 17:36:19 +00:00
* 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
2018-06-19 08:45:56 +00:00
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.7-3
- Rebuilt for Python 3.7
* Sat May 26 2018 Rich Mattes <richmattes@gmail.com> - 0.5.7-2
- Re-enable OpenCV bindings (rhbz#1551748)
- Fix bogus obsoletes (rhbz#1537213)
- Update udev rule to allow device access to "video" group
* Mon Mar 05 2018 Adam Williamson <awilliam@redhat.com> - 0.5.7-1
- Bump to 0.5.7 (bug fixes)
- Disable openCV support for now (see #1551748)
2018-03-05 19:59:51 +00:00
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.5.5-2
- Rebuild due to bug in RPM (RHBZ #1468476)
2017-03-09 00:07:17 +00:00
* Wed Mar 08 2017 Rich Mattes <richmattes@gmail.com> - 0.5.5-1
- Update to release 0.5.5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-05-14 16:52:50 +00:00
* Sat May 14 2016 Rich Mattes <richmattes@gmail.com> - 0.5.3-3
- Rebuild for opencv-3.1 changes
2016-05-02 13:38:00 +00:00
* Mon May 02 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.5.3-2
- Rebuild for opencv-3.1.0.
* Sun Feb 21 2016 Rich Mattes <richmattes@gmail.com> - 0.5.3-1
- Update to release 0.5.3 (rhbz#1272803)
- Fix rawhide FTBFS (rhbz#1307722)
- Patch freenct-cppview to catch exception when no freenect device is present (rhbz#1310356)
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-09-26 16:41:55 +00:00
* Sat Sep 26 2015 Rich Mattes <richmattes@gmail.com> - 0.5.2-5
- Add dependency on numpy (rhbz#1265472)
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-05-02 13:17:16 +00:00
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.5.2-3
- Rebuilt for GCC 5 C++11 ABI change
* Wed Mar 04 2015 Rich Mattes <richmattes@gmail.com> - 0.5.2-1
- Add patch for s390 and ppc (rhbz#1143912)
2015-03-04 15:21:10 +00:00
* Wed Mar 04 2015 Rich Mattes <richmattes@gmail.com> - 0.5.2-1
- Update to release 0.5.2 (rhbz#1160258)
* Tue Aug 19 2014 Jiri Kastner <jkastner /at/ redhat /dot/ com> - 0.5.0-1
- update to release 0.5.0 (rhbz#1124171)
- Move openni plugin to libdir/openni2/Drivers (rhbz#1094787)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Jun 01 2014 Rich Mattes <richmattes@gmail.com> - 0.4.3-1
- Update to release 0.4.3
- Move openni plugin to libdir/openni2/ (rhbz#1094787)
* Mon May 05 2014 Rich Mattes <richmattes@gmail.com> - 0.4.2-1
- Update to release 0.4.2
- Add platform detection for aarch64
2014-05-02 23:49:19 +00:00
* Fri May 02 2014 Rich Mattes <richmattes@gmail.com> - 0.4.1-1
- Update to release 0.4.1
* Fri Nov 22 2013 Rich Mattes <richmattes@gmail.com> - 0.2.0-1
- Update to release 0.2.0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2013-01-09 16:41:24 +00:00
* Wed Jan 09 2013 Dan Horák <dan[at]danny.cz> - 0.1.2-4
- fixes for secondary arches
2012-11-10 00:35:08 +00:00
* Sat Nov 10 2012 Rich Mattes <richmattes@gmail.com> - 0.1.2-3
- Rebuild for new OpenCV
2012-09-03 00:39:51 +00:00
* Wed Aug 15 2012 Rich Mattes <richmattes@gmail.com> - 0.1.2-2
- Filtered private python lib provides
- Clarified that freenect_generate_tarball.sh works with a git tag
* Thu Apr 26 2012 Rich Mattes <richmattes@gmail.com> - 0.1.2-1
- Update to git tag 0.1.2
- Create OpenCV wrapper sub-package
- Create fakenect library sub-package
2014-05-02 23:49:19 +00:00
* Thu Mar 24 2011 Rich Mattes <richmattes@gmail.com> - 0-0.3.4a159fgit
2012-09-03 00:39:51 +00:00
- Force cmake to honor rpm optflags
- Change to out-of-tree build
2014-05-02 23:49:19 +00:00
* Thu Mar 24 2011 Rich Mattes <richmattes@gmail.com> - 0-0.2.4a159fgit
2012-09-03 00:39:51 +00:00
- Update to latest snapshot
* Mon Jan 31 2011 Rich Mattes <richmattes@gmail.com> - 0-0.1.687b2da5git
- Initial package