Blob Blame History Raw
Name:           librealsense
Version:        1.9.7
Release:        2%{?dist}
Summary:        Cross-platform camera capture for Intel RealSense

License:        ASL 2.0
URL:            https://github.com/IntelRealSense/librealsense
Source0:        https://github.com/IntelRealSense/librealsense/archive/v1.9.7.tar.gz#/librealsense-%{version}.tar.gz
Patch0:         librealsense.destdir.patch
Patch1:         librealsense.armflags.patch

BuildRequires:  doxygen
BuildRequires:  libusb-devel
BuildRequires:  glfw-devel
BuildRequires:  systemd

ExcludeArch:    %{arm}

%description
This project is a cross-platform library (Linux, OSX, Windows) for capturing
data from the Intel® RealSense™ F200, SR300 and R200 cameras. This effort was
initiated to better support researchers, creative coders, and app developers in
domains such as robotics, virtual reality, and the internet of things. Several
often-requested features of RealSense™ devices are implemented in this project,
including multi-camera capture.


%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        doc
Summary:        Documentation for %{name}

%description    doc
The %{name}-doc package contains documentation for developing applications with
%{name}.


%prep
%autosetup


%build
%make_build library

sed -i "s:/usr/local/bin:%{_libdir}/realsense:" config/*
sed -i "s/plugdev/users/g" config/*rules

pushd doc/Doxygen_API
doxygen


%install
%make_install LIBDIR=%{_libdir} INCLUDEDIR=%{_includedir}

mkdir -p %{buildroot}/%{_udevrulesdir}
install -p -m644 config/99-realsense-libusb.rules %{buildroot}/%{_udevrulesdir}
mkdir -p %{buildroot}/%{_libdir}/realsense
install -p -m755 config/usb-R200-in{,_udev} %{buildroot}/%{_libdir}/realsense


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%license LICENSE
%doc readme.md
%{_libdir}/*.so
%{_libdir}/realsense
%{_udevrulesdir}/*

%files devel
%{_includedir}/*

%files doc
%doc doc/Doxygen_API/html/*


%changelog
* Mon Jan 16 2017 Till Hofmann <till.hofmann@posteo.de> - 1.9.7-2
- Fix paths in udev rules

* Mon Aug 29 2016 Till Hofmann <till.hofmann@posteo.de> - 1.9.7-1
- Initial package