File revoco.spec of Package revoco
#
# spec file for package revoco
#
# Copyright (c) 2015 mischa.salle@gmail.com
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: revoco
Version: 0.6
Release: 1
#
Summary: Change the wheel behaviour of Logitech's MX-Revolution mouse
#
Group: Harware/Other
License: Apache-2.0
#
Url: https://github.com/sebastien/revoco/
Source0: https://github.com/sebastien/revoco/archive/master.tar.gz
Source1: revoco.1
Source2: 80-revoco.rules
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: pie.diff
%description
A command-line tool to setup the Logitech MX Revolution mouse
buttons behavior under Linux
Authors:
----------
Edgar Toernig <froese@gmx.de>
Petteri Räty (betelgeuse)
%prep
%setup -n revoco-master
%patch -P0
%build
make
%install
mkdir -p ${RPM_BUILD_ROOT}%{_bindir} \
${RPM_BUILD_ROOT}%{_mandir}/man1/ \
${RPM_BUILD_ROOT}%{_udevrulesdir}
install revoco ${RPM_BUILD_ROOT}%{_bindir}
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1
install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_udevrulesdir}
%files
%defattr(-,root,root,-)
%{_bindir}/revoco
%dir %(dirname %{_udevrulesdir})
%dir %{_udevrulesdir}
%{_udevrulesdir}/80-revoco.rules
%doc %{_mandir}/man1/revoco.1*
%changelog
* Fri Nov 20 2015 Mischa Salle <mischa.salle@gmail.com> 0.6-1
- rudimetary first version