105 lines
3.4 KiB
RPMSpec
105 lines
3.4 KiB
RPMSpec
|
#
|
||
|
# spec file for package
|
||
|
#
|
||
|
# Copyright (c) 2014 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/
|
||
|
#
|
||
|
|
||
|
%define sover 0
|
||
|
|
||
|
Name: hidapi
|
||
|
Version: 0.8.0rc1
|
||
|
Release: 0
|
||
|
License: GPL-3.0+ or BSD-3-Clause
|
||
|
Summary: Simple library for communicating with USB and Bluetooth HID devices
|
||
|
Url: https://github.com/signal11/hidapi
|
||
|
Group: System/Libraries
|
||
|
Source: %{name}-%{version}.tar.bz2
|
||
|
BuildRequires: make gcc-c++
|
||
|
BuildRequires: libtool automake autoconf
|
||
|
BuildRequires: libudev-devel
|
||
|
BuildRequires: libusb-1_0-devel
|
||
|
BuildRequires: pkg-config
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
HIDAPI is a library which allows an application to interface with USB and Bluetooth HID-Class devices.
|
||
|
While it can be used to communicate with standard HID devices like keyboards, mice, and Joysticks, it is most useful when used with custom (Vendor-Defined) HID devices.
|
||
|
|
||
|
%package -n libhidapi-devel
|
||
|
Summary: Development libraries and header files for hidapi
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: glibc-devel
|
||
|
Requires: libudev-devel
|
||
|
Requires: libusb-1_0-devel
|
||
|
Requires: libhidapi-devel = %{version}
|
||
|
Requires: libhidapi-hidraw%{sover} = %{version}
|
||
|
Requires: libhidapi-libusb%{sover} = %{version}
|
||
|
|
||
|
%description -n libhidapi-devel
|
||
|
This package contains the header files and libraries for building
|
||
|
programs using the hidapi library.
|
||
|
|
||
|
%package -n libhidapi-hidraw%{sover}
|
||
|
Summary: Simple library for communicating with USB and Bluetooth HID devices
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n libhidapi-hidraw%{sover}
|
||
|
HIDAPI is a library which allows an application to interface with USB and Bluetooth HID-Class devices.
|
||
|
|
||
|
%package -n libhidapi-libusb%{sover}
|
||
|
Summary: Simple library for communicating with USB and Bluetooth HID devices
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n libhidapi-libusb%{sover}
|
||
|
HIDAPI is a library which allows an application to interface with USB and Bluetooth HID-Class devices.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
./bootstrap
|
||
|
%configure --disable-static --docdir=%{_defaultdocdir}/%{name}
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
%make_install
|
||
|
|
||
|
%post -n libhidapi-libusb%{sover} -p /sbin/ldconfig
|
||
|
%post -n libhidapi-hidraw%{sover} -p /sbin/ldconfig
|
||
|
|
||
|
%postun -n libhidapi-libusb%{sover} -p /sbin/ldconfig
|
||
|
%postun -n libhidapi-hidraw%{sover} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc README.txt LICENSE*.txt AUTHORS.txt HACKING.txt
|
||
|
|
||
|
%files -n libhidapi-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/hidapi
|
||
|
%{_libdir}/pkgconfig/*
|
||
|
%{_libdir}/libhidapi-*.so
|
||
|
%{_libdir}/libhidapi-*.la
|
||
|
|
||
|
%files -n libhidapi-hidraw%{sover}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libhidapi-hidraw.so.%{sover}*
|
||
|
|
||
|
%files -n libhidapi-libusb%{sover}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libhidapi-libusb.so.%{sover}*
|
||
|
|
||
|
%changelog
|
||
|
|