File xinput_calibrator.spec of Package xinput_calibrator

#
# spec file for package xinput_calibrator
#
# Copyright (c) 2016 Cleber Paiva de Souza
#
# 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.


Name:           xinput_calibrator
Version:        0.7.5
Release:        15.1
Summary:        A generic touchscreen calibration program for X.Org
License:        MIT
Group:          System/X11/Utilities
Url:            http://www.freedesktop.org/wiki/Software/xinput_calibrator
Source0:        http://github.com/downloads/tias/xinput_calibrator/%{name}-%{version}.tar.gz
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
BuildRequires:  xorg-x11-libXext-devel
BuildRequires:  gcc-c++

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch1:         category.patch

%description
xinput_calibrator is a program for calibrating your touchscreen, when using
the X Window System.
It currently features:
 - works for any standard Xorg touchscreen driver (uses XInput protocol)
 - mis-click detection (prevents bogus calibration)
 - dynamically recalibrates the evdev driver
 - outputs the calibration as xorg.conf.d snippet or HAL policy file
 - and more

%prep
%setup -q
%patch1 -p1

%build
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file -i %{name} System

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/xinput_calibrator
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/pixmaps/%{name}.xpm
%{_mandir}/man1/xinput_calibrator.1%{?ext_man}

%changelog
* Tue Dec 27 2016 cleber@ssys.com.br
- package created