File cwiid.spec of Package cwiid
Name: cwiid
License: GPL
Group: Hardware/Joystick
URL: http://abstrakraft.org/cwiid/
Autoreqprov: on
Version: 0.6.1.git
Release: 1
Summary: C Interface and uinput controller for Nintendo Wiimote
Source0: %{name}-%{version}.tar.gz
Patch0: nunchuk_stick.patch
Patch1: presentation.patch
Patch2: makefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 10
BuildRequires: bluez-devel gtk-devel bluez-libs pkg-config python-devel gtk2-devel
%endif
%if 0%{?suse_version} >= 1010
BuildRequires: flex bison
%endif
%if 0%{?fedora_version} >= 7
BuildRequires: bluez-libs bluez-libs-devel pkgconfig python-devel gtk2-devel
%endif
%if 0%{?debian_version}
BuildRequires: debianutils ncurses-devel e2fsprogs deb2suse fakeroot dpkg-devel zlib-devel python-devel flex bluez-libs python debian-debhelper
BuildRequires: bison python-support cdbs gtk2-devel
%endif
Requires: bluez-libs
%description
This is the development tracking site for CWiid, a collection of Linux tools written in C for interfacing to the Nintendo Wiimote.
Feel free to contribute to the Wiki, talk about CWiid in the Discussion Forums, or create Tickets (account no longer required).
See http://wiili.org and http://wiibrew.org for information about the Wiimote and other drivers.
Authors:
--------
L. Donnie Smith <cwiid@abstrakraft.org>
%prep
%setup
%patch0 -p0
%patch1 -p0
%patch2 -p0
%build
DATAROOTDIR=/usr/share
aclocal
autoconf
export RPM_OPT_FLAGS
# ./configure --disable-ldconfig --prefix=/usr \ --sysconfdir=%{_sysconfdir} \ --libdir=%{_libdir} \ --localstatedir=%{_localstatedir} \ --docdir=%{_docdir}/%{name} \ --mandir=%{_mandir}
%configure --disable-ldconfig
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc COPYING ChangeLog NEWS AUTHORS README
# %{_docdir}/%{name}/README
%attr(0755,root,root) %{_sysconfdir}/cwiid
%{_bindir}/wmgui
%{_bindir}/wminput
%{_bindir}/lswm
%{_datadir}/man/man1/*
%{_datadir}/doc/cwiid/*
%{_includedir}/*
%{_libdir}/*
%changelog
* Thu Apr 10 2007 - allau@novell.com
- Pull in latest release from the web
- Update the plugin with nc stick control