File mjpg-streamer.spec of Package mjpg-streamer
#
# spec file for package mjpg-streamer (Version SVN Rev. 160)
#
# Copyright 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Summary: Stream webcam video to HTTP
Name: mjpg-streamer
Version: 1.0
Release: 3.4
License: GPL-2.0
Group: Productivity/Multimedia/Video/Players
Source0: %{name}-%{version}.tar.gz
Patch1: fix-build.patch
URL: https://github.com/jacksonliam/mjpg-streamer
Packager: Alessandro de Oliveira Faria (A.K.A CABELO) <cabelo@opensuse.org>
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: opencv-devel
BuildRequires: SDL-devel
BuildRequires: libgphoto2-devel
BuildRequires: libjpeg-devel
%description
MJPG-streamer takes JPGs from Linux-UVC compatible webcams, from local files or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software. It is the successor of uvc-streamer, a Linux-UVC streaming application with Pan/Tilt.
This package is using a maintained fork which added also support for Raspberry Pi Camera.
%prep
%setup -q -n %{name}-%version/mjpg-streamer-experimental
%patch1 -p2
%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=%_libdir -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=%_libdir -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
%install
%cmake_install
%files
%defattr(-,root,root,-)
%doc README.md
%{_bindir}/mjpg_streamer
/usr/lib/mjpg-streamer
/usr/share/mjpg-streamer
%changelog
* Tue Jul 11 2017 adrian@suse.de
- initial package of forked version