]> git.pld-linux.org Git - packages/hidapi.git/commitdiff
- new URLs, updated to 0.9.0 auto/th/hidapi-0.9.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 11:25:38 +0000 (13:25 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 11:25:38 +0000 (13:25 +0200)
- removed obsolete sh patch

hidapi-sh.patch [deleted file]
hidapi.spec

diff --git a/hidapi-sh.patch b/hidapi-sh.patch
deleted file mode 100644 (file)
index c8e1b9c..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
---- hidapi-a6a622ffb680c55da0de787ff93b80280498330f/configure.ac.orig  2016-09-20 05:40:12.000000000 +0200
-+++ hidapi-a6a622ffb680c55da0de787ff93b80280498330f/configure.ac       2018-05-20 17:24:50.587037139 +0200
-@@ -63,14 +63,14 @@
-       # HIDAPI/hidraw libs
-       PKG_CHECK_MODULES([libudev], [libudev], true, [hidapi_lib_error libudev])
--      LIBS_HIDRAW_PR+=" $libudev_LIBS"
--      CFLAGS_HIDRAW+=" $libudev_CFLAGS"
-+      LIBS_HIDRAW_PR="$LIBS_HIDRAW_PR $libudev_LIBS"
-+      CFLAGS_HIDRAW="$CFLAGS_HIDRAW $libudev_CFLAGS"
-       # HIDAPI/libusb libs
--      AC_CHECK_LIB([rt], [clock_gettime], [LIBS_LIBUSB_PRIVATE+=" -lrt"], [hidapi_lib_error librt])
-+      AC_CHECK_LIB([rt], [clock_gettime], [LIBS_LIBUSB_PRIVATE="$LIBS_LIBUSB_PRIVATE -lrt"], [hidapi_lib_error librt])
-       PKG_CHECK_MODULES([libusb], [libusb-1.0 >= 1.0.9], true, [hidapi_lib_error libusb-1.0])
--      LIBS_LIBUSB_PRIVATE+=" $libusb_LIBS"
--      CFLAGS_LIBUSB+=" $libusb_CFLAGS"
-+      LIBS_LIBUSB_PRIVATE="$LIBS_LIBUSB_PRIVATE $libusb_LIBS"
-+      CFLAGS_LIBUSB="$CFLAGS_LIBUSB $libusb_CFLAGS"
-       ;;
- *-darwin*)
-       AC_MSG_RESULT([ (Mac OS X back-end)])
-@@ -180,10 +180,10 @@
-               if test "x$foxconfig" = "xfalse"; then
-                       hidapi_prog_error fox-config "FOX Toolkit"
-               fi
--              LIBS_TESTGUI+=`$foxconfig --libs`
--              LIBS_TESTGUI+=" -framework Cocoa -L/usr/X11R6/lib"
--              CFLAGS_TESTGUI+=`$foxconfig --cflags`
--              OBJCFLAGS+=" -x objective-c++"
-+              LIBS_TESTGUI="$LIBS_TESTGUI`$foxconfig --libs`"
-+              LIBS_TESTGUI="$LIBS_TESTGUI -framework Cocoa -L/usr/X11R6/lib"
-+              CFLAGS_TESTGUI="$CFLAGS_TESTGUI`$foxconfig --cflags`"
-+              OBJCFLAGS="$OBJCFLAGS -x objective-c++"
-       elif test "x$os" = xwindows; then
-               # On Windows, just set the paths for Fox toolkit
-               if test "x$win_implementation" = xmingw; then
index 6e5987d42637dbfde25faf13a9bbe534b0f23ef8..d5bdc45dbcd9232f36f548c3ae92efd86f3f540d 100644 (file)
@@ -1,21 +1,18 @@
 #
 # Conditional build:
-%bcond_without apidocs         # do not build and package API docs
-
-%define                snap    20180121
-%define                commit  a6a622ffb680c55da0de787ff93b80280498330f
+%bcond_without apidocs         # API documentation
 
 Summary:       HID API for Windows, Linux and Mac OS X
 Summary(pl.UTF-8):     API HID dla systemów Windows, Linux oraz Mac OS X
 Name:          hidapi
-Version:       0.8.0
-Release:       0.%{snap}.1
+Version:       0.9.0
+Release:       1
 License:       GPL v3 or BSD or HIDAPI
 Group:         Libraries
-Source0:       https://github.com/signal11/hidapi/archive/%{commit}/%{name}-%{version}.tar.gz
-# Source0-md5: dfbec50a01bf8c45cce003293648013e
-Patch0:                %{name}-sh.patch
-URL:           http://www.signal11.us/oss/hidapi/
+#Source0Download: https://github.com/libusb/hidapi/releases
+Source0:       https://github.com/libusb/hidapi/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a6bafd1bc5b74d411b77e0a90f601aed
+URL:           https://github.com/libusb/hidapi
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake
 %{?with_apidocs:BuildRequires: doxygen}
@@ -67,7 +64,7 @@ Statyczna biblioteka HIDAPI.
 Summary:       HIDAPI API documentation
 Summary(pl.UTF-8):     Dokumentacja API biblioteki HIDAPI
 Group:         Documentation
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
 BuildArch:     noarch
 %endif
 
@@ -78,8 +75,7 @@ API documentation for HIDAPI library.
 Dokumentacja API biblioteki HIDAPI.
 
 %prep
-%setup -q -n %{name}-%{commit}
-%patch0 -p1
+%setup -q -n %{name}-%{name}-%{version}
 
 cp -p linux/README.txt README-linux.txt
 
@@ -105,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhidapi-*.la
+
 # packaged as %doc
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/hidapi
 
@@ -117,7 +116,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 # included hid.rules as doc only - it uses e.g. MODE="0666", so requires some adjustments at least for stricter permissions
-%doc AUTHORS.txt LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt README.txt README-linux.txt udev/99-hid.rules
+%doc AUTHORS.txt LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt README.md README-linux.txt udev/99-hid.rules
 %attr(755,root,root) %{_libdir}/libhidapi-hidraw.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libhidapi-hidraw.so.0
 %attr(755,root,root) %{_libdir}/libhidapi-libusb.so.*.*.*
@@ -127,8 +126,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libhidapi-hidraw.so
 %attr(755,root,root) %{_libdir}/libhidapi-libusb.so
-%{_libdir}/libhidapi-hidraw.la
-%{_libdir}/libhidapi-libusb.la
 %{_includedir}/hidapi
 %{_pkgconfigdir}/hidapi-hidraw.pc
 %{_pkgconfigdir}/hidapi-libusb.pc
This page took 0.184863 seconds and 4 git commands to generate.