1 Star 0 Fork 0

jhon-hsu/hidapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hidapi.spec 2.85 KB
一键复制 编辑 原始数据 按行查看 历史
jhon-hsu 提交于 2021-08-27 11:20 . commit
%global commit d17db57b9d4354752e0af42f5f33007a42ef2906
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: hidapi
Version: 0.8.0
Release: 0.3.%{shortcommit}%{?dist}
Summary: Library for communicating with USB and Bluetooth HID devices
Group: Development/Libraries
License: GPLv3 or BSD
URL: http://www.signal11.us/oss/hidapi/
Source0: https://github.com/signal11/hidapi/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: libudev-devel
BuildRequires: libusb1-devel
BuildRequires: m4
%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 devel
Summary: Development files for hidapi
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n hidapi-devel
This package contains development files for hidapi which provides access to
USB and Bluetooth HID-class devices.
%prep
%setup -qn %{name}-%{commit}
%build
autoreconf -vif
%configure --disable-testgui --disable-static
make %{?_smp_mflags} V=1
%install
make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS.txt README.txt LICENSE*.txt
%{_libdir}/libhidapi-*.so.*
%files devel
%{_includedir}/hidapi
%{_libdir}/libhidapi-hidraw.so
%{_libdir}/libhidapi-libusb.so
%{_libdir}/pkgconfig/hidapi-hidraw.pc
%{_libdir}/pkgconfig/hidapi-libusb.pc
%changelog
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 0.8.0-0.3.d17db57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 0.8.0-0.2.d17db57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Sep 01 2015 Scott Talbert <[email protected]> - 0.8.0-0.1.d17db57
- Update to latest upstream commit d17db57
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 0.7.0-5.a88c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Aug 16 2014 Fedora Release Engineering <[email protected]> - 0.7.0-4.a88c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.7.0-3.a88c724
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Oct 29 2013 Scott Talbert <[email protected]> - 0.7.0-2.a88c724
- Incorporate review comments
* Wed Oct 23 2013 Scott Talbert <[email protected]> - 0.7.0-1.a88c724
- Initial packaging of hidapi library
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jhon-hsu/hidapi.git
[email protected]:jhon-hsu/hidapi.git
jhon-hsu
hidapi
hidapi
master

搜索帮助