Package wine-grdwine: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | # TODO: %define optflags_lto %nil # Fedora specific %define _lto_cflags %{nil} Name: wine-grdwine Version: 0.5.7.4 Release: alt2 Summary: Guardant usb dongle helper library for Wine License: LGPLv2 Group: Emulators Url: https://guardant.com #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 ExclusiveArch: %ix86 x86_64 %define libwinedir %_libdir/wine # TODO: use mingw detection from wine or just wait for total PE using %def_with pebuild # check if we need wow64 build also %if "%(test -d %libwinedir/i386-windows && echo 1)" == "1" %def_with wow64 %endif %ifarch x86_64 aarch64 %def_with build64 %define winearch wine64 %define winepkgname wine-grdwine %define winedevpkgname wine-devel-tools %endif # workaround for https://bugzilla.altlinux.org/38130 # buildwow64 = _arch = x86_64 && with wow64 %if "%_arch" == "x86_64" && %{expand:%%{?_with_wow64:1}%%{!?_with_wow64:0}} %def_with buildwow64 %endif %ifarch %ix86 %def_without build64 %define winepkgname wine-grdwine %define winedevpkgname wine-devel-tools %endif BuildRequires: %winedevpkgname >= 9 # lib.req: ERROR: /tmp/.private/lav/wine-cpcsp_proxy-buildroot/usr/lib64/wine/x86_64-unix/cpcsp_proxy.so: library ntdll.so not found AutoReq: no # TODO: move to rpm-macros-wine # set arch dependent dirs %ifarch %{ix86} %define winepedir i386-windows %define winesodir i386-unix %endif %ifarch x86_64 %define winepedir x86_64-windows %define winesodir x86_64-unix %endif %ifarch %{arm} %define winepedir arm-windows %define winesodir arm-unix %endif %ifarch aarch64 %define winepedir aarch64-windows %define winesodir aarch64-unix %endif %define winepe32dir i386-windows %add_verify_elf_skiplist %libwinedir/%winesodir/grdwine.dll.so %add_verify_elf_skiplist %libwinedir/%winesodir/grdwine.so %description 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 to get support). %prep %setup %if_with buildwow64 cp -a grdwine grdwine_wow64 %endif %build %make_build -C grdwine \ LIBDIR=%_libdir \ WINELIBDIR=%libwinedir \ %if_with pebuild TARGETDLL=grdwine.dll \ %else TARGETDLL="grdwine.dll grdwine.dll.so" \ %endif %nil %if_with buildwow64 %make_build -C grdwine_wow64 \ LIBDIR=%_libdir \ WOW64BUILD=yes \ TARGETDLL=grdwine.dll \ grdwine.dll %nil %endif %install mkdir -p %buildroot%libwinedir/{%winesodir,%winepedir} cp grdwine/grdwine.so %buildroot%libwinedir/%winesodir cp grdwine/grdwine.dll %buildroot%libwinedir/%winepedir %if_with buildwow64 mkdir -p %buildroot%libwinedir/%winepe32dir cp grdwine_wow64/grdwine.dll %buildroot%libwinedir/%winepe32dir %endif %if_without pebuild cp grdwine/grdwine.dll.so %buildroot%libwinedir/%winesodir %endif %if_with build64 install -D -m0644 %SOURCE1 %buildroot%_udevrulesdir/90-grdnt.rules %endif %files -n %winepkgname %libwinedir/%winesodir/grdwine.so %libwinedir/%winepedir/grdwine.dll %if_with buildwow64 %libwinedir/%winepe32dir/grdwine.dll %endif %if_without pebuild %libwinedir/%winesodir/grdwine.dll.so %endif %if_with build64 %_udevrulesdir/*.rules %endif %changelog * Wed Feb 04 2026 Vitaly Lipatov <lav@altlinux.ru> 0.5.7.4-alt2 - build with wow64 support (fix ALT bug 56872) - fix guardant Stealth 2 support (eterbug #18641) - add missed 90-grdnt.rules (don't unset build64 with wow64) * Wed May 22 2024 Vitaly Lipatov <lav@altlinux.ru> 0.5.7-alt3 - added guardant Stealth 2 support (eterbug #17339) * Sat May 20 2023 Vitaly Lipatov <lav@altlinux.ru> 0.5.7-alt2 - disable LTO for Fedora too * Sat Oct 29 2022 Vitaly Lipatov <lav@altlinux.ru> 0.5.7-alt1 - update to 0.5.7 * 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) * Thu Apr 01 2021 Vitaly Lipatov <lav@altlinux.ru> 0.5.5.1-alt1 - new version 0.5.5.1 (with rpmrb script) + fix build with wine since 6.4 - change download URL * Tue Jun 23 2020 Vitaly Lipatov <lav@altlinux.ru> 0.5.5-alt2 - add AC_SYS_LARGEFILE to configure.ac * Thu May 30 2019 Konstantin Kondratyuk <kondratyuk@altlinux.org> 0.5.5-alt1 - new version (0.5.5) with rpmgs script |