]> git.pld-linux.org Git - SPECS.git/blob - pam-pam_face-authentication.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / pam-pam_face-authentication.spec
1 Summary:        This is Pluggable Authentication Module for Face based Authentication
2 Summary(pl.UTF-8):      Modularny system uwierzytelniania PAM opearty o weryfikację twarzy.
3 Name:           pam-pam_face-authentication
4 Version:        0.3
5 Release:        0.2
6 License:        GPL
7 Group:          Applications/System
8 URL:            http://www.pam-face-authentication.org
9 Source0:        http://pam-face-authentication.googlecode.com/files/pam-face-authentication-%{version}.tar.gz
10 # Source0-md5:  5ef71bcf4bdebd2ee7216387ef17fc27
11 Patch0:         cmake.patch
12 BuildRequires:  cmake >= 2.6
13 BuildRequires:  gsl-devel
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  ncurses-devel
16 BuildRequires:  opencv-devel
17 BuildRequires:  pam-devel
18 BuildRequires:  xorg-lib-libX11-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This is Pluggable Authentication Module for Face based Authentication.
23
24 %description -l pl.UTF-8
25 Modularny system uwierzytelniania PAM opearty o weryfikację twarzy.
26
27 %prep
28 %setup -q -n pam-face-authentication-%{version}
29 %patch0 -p1
30
31 # use cmake file provided by opencv-devel
32 rm cmake/modules/FindOpenCV.cmake
33
34 %build
35 install -d build
36 cd build
37 %cmake ..
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 %{__make} -C build install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 # wtf?
46 mv $RPM_BUILD_ROOT{%{_prefix}/kde/4/bin,%{_bindir}}/xwindowFaceAuth
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc ChangeLog AUTHORS README
54 %attr(755,root,root) /%{_lib}/security/pam_face_authentication.so
55 %attr(755,root,root) %{_bindir}/qt-facetrainer
56 %attr(755,root,root) %{_bindir}/xwindowFaceAuth
57 %{_desktopdir}/qt-facetrainer.desktop
58 %{_datadir}/haarcascade.xml
59 %{_datadir}/haarcascade_eye.xml
60 %{_datadir}/haarcascade_eye_tree_eyeglasses.xml
61 %{_datadir}/haarcascade_nose.xml
62 %{_iconsdir}/pfa-logo.png
This page took 0.114313 seconds and 3 git commands to generate.