cwiid/cwiid.spec

122 lines
3.4 KiB
RPMSpec
Raw Normal View History

Name: cwiid
Version: 0.6.00
Release: 3mamba
Summary: A collection of Linux tools written in C for interfacing to the Nintendo Wiimote
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://abstrakraft.org/cwiid/
Source: http://abstrakraft.org/cwiid/downloads/cwiid-%{version}.tgz
Patch0: cwiid-0.6.00-hci_read.patch
Patch1: cwiid-0.6.00-libbluetooth.patch
Patch2: cwiid-0.6.00-pkg-config.patch
Patch3: cwiid-0.6.00-x86_64-python.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libbluetooth-devel
BuildRequires: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libpango-devel
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A collection of Linux tools written in C for interfacing to the Nintendo Wiimote.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
## note: you can add this requirement if .pc files are provided by this package
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p0
%patch3 -p1
%build
autoreconf
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall LDCONFIG=/bin/true
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sysconfdir}/cwiid/wminput/acc_ptr
%{_sysconfdir}/cwiid/wminput/buttons
%{_sysconfdir}/cwiid/wminput/default
%{_sysconfdir}/cwiid/wminput/gamepad
%{_sysconfdir}/cwiid/wminput/ir_ptr
%{_sysconfdir}/cwiid/wminput/neverball
%{_sysconfdir}/cwiid/wminput/nunchuk_acc_ptr
%{_bindir}/lswm
%{_bindir}/wmgui
%{_bindir}/wminput
%{_mandir}/man1/wmgui.1.gz
%{_mandir}/man1/wminput.1.gz
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libcwiid.so.*
%dir %{_libdir}/cwiid
%dir %{_libdir}/cwiid/plugins
%{_libdir}/cwiid/plugins/acc.so
%{_libdir}/cwiid/plugins/ir_ptr.so
%{_libdir}/cwiid/plugins/nunchuk_acc.so
%{python_sitearch}/cwiid-0.6.00-py*.egg-info
%{python_sitearch}/cwiid.so
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/cwiid.h
%{_libdir}/libcwiid.a
%{_libdir}/libcwiid.so
%{_libdir}/pkgconfig/cwiid.pc
%{_datadir}/doc/cwiid/Xmodmap
%{_datadir}/doc/cwiid/wminput.list
%doc ChangeLog NEWS README
%changelog
* Tue May 21 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.00-3mamba
- python 2.7 rebuild
* Thu Mar 28 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.00-2mamba
- added pkgconfig support
* Thu Jan 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.00-1mamba
- package created by silvan using the webbuild interface