Commit 79deba5d authored by Vitaly Lipatov's avatar Vitaly Lipatov

0.5.5.1-alt3

- add udev rules to get correct permissions - build 32 bit package as wine32-grdwine
parent 0d8f6370
tar: @name@
copy?: *.rules
# Guardant ID
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="0002", MODE="0666"
# Guardant Sign/Time
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="0008", MODE="0666"
# Guardant Code
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="0009", MODE="0666"
# Guardant Code Pro
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="00c0", MODE="0666"
# HID
SUBSYSTEM=="usb", GOTO="grd_hid_rules_end_check_subsystem"
SUBSYSTEM!="usbmisc" GOTO="grd_hid_rules_end"
LABEL="grd_hid_rules_end_check_subsystem"
ACTION!="add", GOTO="grd_hid_rules_end"
KERNEL!="hiddev*", GOTO="grd_hid_rules_end"
# Guardant Sign/Time HID
ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="000c", MODE="0666", SYMLINK+="grdhid%n", NAME="grdhid%n"
# Guardant Code HID
ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="000d", MODE="0666", SYMLINK+="grdhid%n", NAME="grdhid%n"
# Guardant Code Pro HID
ATTRS{idVendor}=="0a89", ATTRS{idProduct}=="00c1", MODE="0666", SYMLINK+="grdhid%n", NAME="grdhid%n"
LABEL="grd_hid_rules_end"
......@@ -3,27 +3,32 @@
Name: wine-grdwine
Version: 0.5.5.1
Release: alt2
Release: alt3
Summary: Guardant usb dongle helper library for Wine
License: LGPLv2
Group: Emulators
Url: https://guardant.com
Packager: Konstantin Kondratyuk <kondratyuk@altlinux.org>
#Source-url: ftp://ftp.guardant.ru/support/linux/grdwine-%version.tar.gz
# Source-url: https://github.com/Etersoft/grdwine/archive/refs/tags/v%version.tar.gz
Source: %name-%version.tar
Source1: 90-grdnt.rules
BuildRequires: libwine-devel >= 6.23
ExclusiveArch: %ix86 x86_64
%ifarch x86_64 aarch64
%def_with build64
%define winepkgname wine-grdwine
%else
%def_without build64
%define winepkgname wine32-grdwine
%endif
......@@ -48,7 +53,6 @@ ExclusiveArch: %ix86 x86_64
%define winesodir aarch64-unix
%endif
%add_verify_elf_skiplist %libwinedir/%winesodir/grdwine.dll.so
%description
......@@ -58,7 +62,22 @@ Filesystem and Linux USB HID Device Interface.
Supports Guardant Sign/Time and Guardant Code dongles.
Old keys Stealth II and Stealth III are not supported here
(check WINE@Etersoft to get support).
(check WINE@Etersoft 2.x to get support).
%if_without build64
%package -n %winepkgname
Group: Development/C
Summary: Guardant usb dongle helper library for Wine
%description -n %winepkgname
Guardant usb dongle helper library for Wine.
Implementation of the GrdWine is based on Linux USB Device
Filesystem and Linux USB HID Device Interface.
Supports Guardant Sign/Time and Guardant Code dongles.
Old keys Stealth II and Stealth III are not supported here
(check WINE@Etersoft 2.x to get support).
%endif
%prep
%setup
......@@ -81,12 +100,22 @@ Old keys Stealth II and Stealth III are not supported here
%install
%makeinstall_std
%if_with build64
install -D -m0644 %SOURCE1 %buildroot%_udevrulesdir/90-grdnt.rules
%endif
%files
%files -n %winepkgname
%libwinedir/%winesodir/grdwine.dll.so
%libwinedir/%winepedir/grdwine.dll
%if_with build64
%_udevrulesdir/*.rules
%endif
%changelog
* Thu Jun 09 2022 Vitaly Lipatov <lav@altlinux.ru> 0.5.5.1-alt3
- add udev rules to get correct permissions
- build 32 bit package as wine32-grdwine
* Sat Apr 09 2022 Vitaly Lipatov <lav@altlinux.ru> 0.5.5.1-alt2
- build and pack wine stub
- disable LTO (for a time)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment