File xwiimote-ng.spec of Package xwiimote-ng

Name:       xwiimote-ng
Version:	3.0.1
Release:	1
License:	MIT
Summary:	An open-source device driver for Nintendo Wii / Wii U remotes
Url:		http://pingus.seul.org/~grumbel/xboxdrv
Group:		Hardware/Joystick
Source:		%{name}-%{version}.tar.gz
BuildRequires:	gcc-c++
BuildRequires:	build
BuildRequires:	cmake
BuildRequires:	make
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libudev-devel
BuildRequires:	ncurses
BuildRequires:	libtool
BuildRequires:	ncurses-devel
BuildRequires:	pkgconfig
BuildRequires:	libncurses5
BuildRequires:	chrpath
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%ifarch x86_64
  %if 0%{?suse_version}
    %define lib_dir_64 64
  %endif
%endif

%description
xwiimote is an open-source device driver for Nintendo Wii / Wii U remotes. It
contains tools and libraries which work together with the official hid-wiimote
kernel driver, available since linux-3.1.
Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com>

%prep
%setup -q -n %{name}-%{version}

%check

%build
%cmake \
        -DCMAKE_INSTALL_PREFIX=/usr .
%cmake_build

%install
install -d %{buildroot}/usr/lib/udev/rules.d
install -d %{buildroot}/etc/X11/xorg.conf.d
install -m 755 res/70-udev-xwiimote.rules %{buildroot}/usr/lib/udev/rules.d/70-udev-xwiimote.rules
install -m 755 res/50-xorg-fix-xwiimote.conf %{buildroot}/etc/X11/xorg.conf.d/50-xorg-fix-xwiimote.conf
%cmake_install

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%config %attr(0644, root, root) "/usr/lib/udev/rules.d/70-udev-xwiimote.rules"
%config %attr(0644, root, root) "/etc/X11/xorg.conf.d/50-xorg-fix-xwiimote.conf"
/usr/include/xwiimote-ng.h
/etc/X11/xorg.conf.d/
/usr/lib/
/usr/lib64/
/usr/share/


%changelog
openSUSE Build Service is sponsored by