Accepting request 226005 from home:matwey:branches:hardware
This is to fix issues for submitting to Factory: 1. incorrect version 2. packing *.la 3. packing LICSENSE OBS-URL: https://build.opensuse.org/request/show/226005 OBS-URL: https://build.opensuse.org/package/show/hardware/hidapi?expand=0&rev=2
This commit is contained in:
parent
b1205616ee
commit
97fdbfca02
2
_service
2
_service
@ -4,7 +4,7 @@
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">hidapi</param>
|
||||
<param name="revision">hidapi-0.8.0-rc1</param>
|
||||
<param name="versionformat">0.8.0rc1</param>
|
||||
<param name="versionformat">0.8.0~rc1</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
|
19
do_not_install_docs.patch
Normal file
19
do_not_install_docs.patch
Normal file
@ -0,0 +1,19 @@
|
||||
Index: hidapi-0.8.0~rc1/Makefile.am
|
||||
===================================================================
|
||||
--- hidapi-0.8.0~rc1.orig/Makefile.am
|
||||
+++ hidapi-0.8.0~rc1/Makefile.am
|
||||
@@ -39,14 +39,6 @@ endif
|
||||
|
||||
EXTRA_DIST = udev doxygen
|
||||
|
||||
-dist_doc_DATA = \
|
||||
- README.txt \
|
||||
- AUTHORS.txt \
|
||||
- LICENSE-bsd.txt \
|
||||
- LICENSE-gpl3.txt \
|
||||
- LICENSE-orig.txt \
|
||||
- LICENSE.txt
|
||||
-
|
||||
SCMCLEAN_TARGETS= \
|
||||
aclocal.m4 \
|
||||
config.guess \
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a688591272b412e2ae1ad9c3590653e3a5231dc4ba195a86931fd8b72b48b640
|
||||
size 83684
|
3
hidapi-0.8.0~rc1.tar.bz2
Normal file
3
hidapi-0.8.0~rc1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c9c94b373e8ca30328dd1d7de3413479dc32e55f430c50d5e5e4b00939bb7f8
|
||||
size 83586
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 14 16:07:45 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
- Add do_not_install_docs.patch: don't let make install docs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 27 08:28:30 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
|
15
hidapi.spec
15
hidapi.spec
@ -18,13 +18,15 @@
|
||||
%define sover 0
|
||||
|
||||
Name: hidapi
|
||||
Version: 0.8.0rc1
|
||||
Version: 0.8.0~rc1
|
||||
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
|
||||
# PATCH-FIX-OPENSUSE do_not_install_docs.patch -- don't let make install put files into /usr/share/doc/packages
|
||||
Patch0: do_not_install_docs.patch
|
||||
BuildRequires: make gcc-c++
|
||||
BuildRequires: libtool automake autoconf
|
||||
BuildRequires: libudev-devel
|
||||
@ -42,7 +44,6 @@ 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}
|
||||
|
||||
@ -56,6 +57,7 @@ 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.
|
||||
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-libusb%{sover}
|
||||
Summary: Simple library for communicating with USB and Bluetooth HID devices
|
||||
@ -63,9 +65,11 @@ 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.
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
./bootstrap
|
||||
@ -74,6 +78,7 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
|
||||
|
||||
%post -n libhidapi-libusb%{sover} -p /sbin/ldconfig
|
||||
%post -n libhidapi-hidraw%{sover} -p /sbin/ldconfig
|
||||
@ -81,16 +86,12 @@ make %{?_smp_mflags}
|
||||
%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)
|
||||
%doc README.txt AUTHORS.txt HACKING.txt
|
||||
%{_includedir}/hidapi
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_libdir}/libhidapi-*.so
|
||||
%{_libdir}/libhidapi-*.la
|
||||
|
||||
%files -n libhidapi-hidraw%{sover}
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
x
Reference in New Issue
Block a user