File eviacam.spec of Package eviacam

Name:		eviacam
Version:	2.1.3
Release:	20.1
Summary:	A mouse cursor emulator tracking the users eye movement through a webcam
Group:	Applications/System
License:	GPLv3+
URL:		https://github.com/cmauri/eviacam
Source0:	https://github.com/cmauri/eviacam/archive/v2.1.3.tar.gz#/%{name}-%{version}.tar.gz
Packager:  Alessandro de Oliveira Faria (A.K.A CABELO) <cabelo@opensuse.org> 
BuildRequires: -post-build-checks -rpmlint-Factory -rpmlint-mini  -rpmlint
BuildRequires:  libpng-devel
#BuildRequires:	gcc-c++, libv4l-devel, atlas-devel, opencv-devel, libXtst-devel, libXext-devel, gettext, desktop-file-utils
#BuildRequires:	gcc-c++, libv4l-devel, libatlas3-devel, opencv-devel, libXtst-devel, libXext-devel, gettext, desktop-file-utils
BuildRequires:	gcc-c++, libv4l-devel, opencv-devel, libXtst-devel, libXext-devel, gettext, desktop-file-utils
BuildRequires:	wxGTK-devel wxWidgets-devel automake libtool metatheme-breeze-common  gtk2-metatheme-breeze 
Requires: metatheme-breeze-common  gtk2-metatheme-breeze opencv 
Patch0: %{name}-libopencv.patch
Patch1: %{name}-alt-compat.patch

%description
eViacam tracks the users eye movement and moves the mouse cursor
accordingly. It provides a GTK user interface for configuration.
It works with any common camera.

%package help
Summary:	Help files for %{name}
BuildArch:	noarch
Requires:	%{name}

%description help
This package contains the help files for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
./autogen.sh
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%doc README COPYING AUTHORS ChangeLog INSTALL THANKS TODO
%{_bindir}/%{name}
%{_bindir}/eviacamloader
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/help
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.*
%{_mandir}/man1/%{name}*.1.*

%files help
%{_datadir}/%{name}/help

%changelog
* Sat Oct 28 2017 Alessandro de Oliveira Faria <cabelo@opensuse.org> 2.1.1
- Rebuild for openSUSE
- Initial package