Compare commits

...

9 Commits

Author SHA1 Message Date
madomado 060cfef07e what if
Signed-off-by: madomado <madonuko@outlook.com>
2025-09-02 01:30:35 +08:00
madonuko b1c9c7cb6a alksdfs 2025-09-02 00:59:04 +08:00
madomado bce700ac6d pam
Signed-off-by: madomado <madonuko@outlook.com>
2025-09-02 00:38:51 +08:00
madomado 1980e0477e Update eymate.spec
Signed-off-by: madomado <madonuko@outlook.com>
2025-09-02 00:28:04 +08:00
madonuko b6f94c7ed9 rm rf data 2025-09-01 23:54:13 +08:00
madonuko f4574d8628 large 2025-09-01 23:33:54 +08:00
madomado 2fc53cb763 Update eymate.spec
Signed-off-by: madomado <madonuko@outlook.com>
2025-09-01 22:54:29 +08:00
madonuko 6391180167 omg 2025-09-01 22:31:31 +08:00
madonuko aee6239c8e add: eymate 2025-08-29 22:20:28 +08:00
3 changed files with 61 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "eymate.spec"
}
}
+55
View File
@@ -0,0 +1,55 @@
Name: eymate
Version: 0.0.1
Release: 1%?dist
Summary: An Linux alternative to Windows facial IR login, simular to Howdy
License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR BSL-1.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND GPL-3.0 AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
SourceLicense: MIT OR Apache-2.0
URL: https://github.com/LDprg/eyMate
Source0: %url/archive/refs/tags/v%version.tar.gz
Source1: https://github.com/timesler/facenet-pytorch/archive/refs/tags/v2.5.3.tar.gz
BuildRequires: rpm_macro(cargo_install)
BuildRequires: python
BuildRequires: python3dist(torch)
BuildRequires: python3dist(torchvision)
BuildRequires: python3-gobject
BuildRequires: pkgconfig(opencv)
BuildRequires: pkgconfig(pam)
BuildRequires: git-core
BuildRequires: gcc-c++ gcc clang
Requires: python3dist(torch)
%description
%summary.
%prep
%autosetup -n eyMate-%version
%cargo_prep_online
cargo rm tch
cargo add tch@0.18.0
mkdir facenet_pytorch
cd facenet_pytorch
tar xf %{S:1} --strip-components=1
# save space
rm -rf data .github dependencies tests examples
rm %{S:1} %{S:0}
touch %{S:1} %{S:0}
%build
%cargo_license_summary_online
%{cargo_license_online} > LICENSE.dependencies
python build_model.py
%install
export LIBTORCH_USE_PYTORCH=1
export LIBTORCH_BYPASS_VERSION_CHECK=1
rm -rf .cargo/registry/
%cargo_install
install -Dm644 target/rpm/libpam_eymate.so -t %buildroot%_usr/lib/security/
install -Dm755 vggface2.pt -t %buildroot%_datadir/eymate/
%files
%doc README.md
%license LICENSE LICENSE.dependencies
%_bindir/eymate
%_datadir/eymate/
%_usr/lib/security/libpam_eymate.so
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("LDprg/eyMate"));