File sixpair.spec of Package sixpair

#
# spec file for package 
#
# Copyright (c) 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           sixpair
Version:        1.0
Release:        0
License:        GPL-2.0
Summary:        A tool to pair PS3 Controllers via USB
Url:            http://www.pabr.org/sixlinux/sixpair.c
Group:          Hardware/Joystick
Source0:         %{name}.c
BuildRequires:  libusb-compat-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
With this tool you can pair a PS3 Controller with a bluetooth Host for example your notebook or a android tablet. sixpair can change the MAC address of the Controller via USB to the new destination MAC (your laptop)

%prep

%build
gcc -o sixpair %{SOURCE0} -lusb

%install
install -D -m 0755 sixpair %{buildroot}/%{_sbindir}/sixpair


%files
%defattr(-,root,root)
%{_sbindir}/sixpair

%changelog

openSUSE Build Service is sponsored by