File xinput_calibrator.spec of Package xinput_calibrator

#
# spec file for package xinput_calibrator
#
# Copyright (c) 2015 Frank Kunz
#
# 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:        0
Summary:        Utility to calibrate X input touchsreens
License:        MIT
Group:          System/X11/Utilities
Url:            http://xorg.freedesktop.org/
Source0:        http://github.com/downloads/tias/xinput_calibrator/%{name}-%{version}.tar.gz
Patch1:         category.patch
Patch2:         prj_files.patch
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(inputproto) >= 2.0.99.1
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xi) >= 1.4.99.1
BuildRequires:  gcc-c++
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
xinput is a utility to configure and test XInput devices.

%prep
%autosetup -p1

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file -r %{name} System Monitor

%check

%files
%license COPYING
%doc README
%{_bindir}/xinput_calibrator
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/pixmaps/%{name}.xpm
%{_mandir}/man1/xinput_calibrator.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by