Commit 3bd76d53 authored by Vitaly Lipatov's avatar Vitaly Lipatov

0.5.5.2-alt1

- add udev rules to get correct permissions - add support for arch dependent package name
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"
......@@ -2,28 +2,33 @@
%define optflags_lto %nil
Name: wine-grdwine
Version: 0.5.5.1
Release: alt2
Version: 0.5.5.2
Release: alt1
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 wine-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 "%winepkgname" != "%name"
%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.2-alt1
- add udev rules to get correct permissions
- add support for arch dependent package name
* 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