Name: hidapi Version: 0.7.0 Release: 0.20120921git85d608e%{?dist} Summary: A library for communicating with USB and Bluetooth HID devices License: GPLv3 or BSD URL: http://www.signal11.us/oss/hidapi # The source was created from GIT repository Source0: http://www.ozancaglayan.com/fedora/SOURCES/%{name}-%{version}.20120921git85d608e.tar.bz2 BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: libudev-devel BuildRequires: libusb1-devel BuildRequires: m4 BuildRequires: pkgconfig %description HIDAPI is a multi-platform library which allows an application to interface with USB and Bluetooth HID-class devices on Windows, Linux, FreeBSD and Mac OS X. On Linux, either the hidraw or the libusb back-end can be used. There are trade-offs and the functionality supported is slightly different. %package -n hidapi-devel Summary: Development files for hidapi Requires: hidapi = %{version}-%{release} Requires: pkgconfig %description -n hidapi-devel This package contains development files for hidapi which provides access to USB and Bluetooth HID-class devices. %prep %setup -q -n hidapi-%{version}.20120921git85d608e %build autoreconf -vif %configure --disable-testgui --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} %post -n hidapi -p /sbin/ldconfig %postun -n hidapi -p /sbin/ldconfig %files %doc AUTHORS.txt README.txt LICENSE*.txt %{_libdir}/libhidapi-*.so.* %files -n hidapi-devel %dir %{_includedir}/hidapi %{_includedir}/hidapi/hidapi.h %{_libdir}/libhidapi-hidraw.so %{_libdir}/libhidapi-libusb.so %{_libdir}/pkgconfig/hidapi-hidraw.pc %{_libdir}/pkgconfig/hidapi-libusb.pc %changelog * Sat Nov 17 2012 Ozan Çağlayan - 0.7.0-0.20120921git85d608e - Initial packaging of hidapi library