blob: 1c96b0dd37605e46a7bb47b5df12fda73e05261d (
plain)
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
|
Name: i3lock
Version: 2.14.1
Release: 1
Summary: Simple X display locker like slock
License: MIT
URL: https://i3wm.org/%{name}/
Source0: %{URL}/%{name}-%{version}.tar.xz
Source1: %{URL}/%{name}-%{version}.tar.xz.asc
# Michael Stapelberg's GPG key:
Source2: gpgkey-424E14D703E7C6D43D9D6F364E7160ED4AC8EE1D.gpg
BuildRequires: gcc
BuildRequires: meson >= 0.45
# from meson.build
BuildRequires: pkg-config
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-xkb)
BuildRequires: pkgconfig(xcb-xinerama)
BuildRequires: pkgconfig(xcb-randr)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-event)
BuildRequires: pkgconfig(xcb-util)
BuildRequires: pkgconfig(xcb-atom)
BuildRequires: pkgconfig(xcb-xrm)
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
BuildRequires: pkgconfig(xkbcommon-x11) >= 0.5.0
BuildRequires: pkgconfig(cairo) >= 1.14.4
# these don't provide pkg-config files
BuildRequires: libev-devel
BuildRequires: pam-devel
# gpg verification
BuildRequires: gnupg2
BuildRequires: make
%description
i3lock is a simple screen locker like slock. After starting it, you will see a
white screen (you can configure the color/an image). You can return to your
screen by entering your password.
Many little improvements have been made to i3lock over time:
- i3lock forks, so you can combine it with an alias to suspend to RAM (run
"i3lock && echo mem > /sys/power/state" to get a locked screen after waking up
your computer from suspend to RAM)
- You can specify either a background color or a PNG image which will be
displayed while your screen is locked.
- You can specify whether i3lock should bell upon a wrong password.
- i3lock uses PAM and therefore is compatible with LDAP etc. On OpenBSD i3lock
uses the bsd_auth(3) framework.
%prep
gpg --import '%{SOURCE2}'
gpg --verify '%{SOURCE1}' '%{SOURCE0}'
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%files
%doc CHANGELOG README*
%license LICENSE
%{_bindir}/%{name}
%{_sysconfdir}/pam.d/%{name}
%{_mandir}/man1/i3lock.1*
%changelog
* Fri Feb 11 2023 lichaoran <pkwarcraft@hotmail.com> - 2.14.1
- Init package
|