- update to 2.9 - refresh i3lock-2.5-use-unix2_chkpwd.diff * Removed obsolete inactivity timeout * Set font face * Automatically unlock (without having to press <Enter>) one attempt which was entered while authenticating * Stop leaking the image_path dup * Displaying locking message when grabbing the pointer/keyboard * Display error message when locking failed * Add Enter on C-m * Change input slices to be exactly pi/3 in size instead of slightly more * Fix covering of composited notifications using the XComposite extension * Remove last traces of DPMS OBS-URL: https://build.opensuse.org/request/show/502814 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3lock?expand=0&rev=18
110 lines
3.4 KiB
RPMSpec
110 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package i3lock
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
Name: i3lock
|
|
Version: 2.9
|
|
Release: 0
|
|
Summary: Screen Locker for the i3 Window Manager
|
|
License: BSD-3-Clause
|
|
Group: System/GUI/Other
|
|
Url: http://i3wm.org/i3lock/
|
|
Source: http://i3wm.org/i3lock/i3lock-%{version}.tar.bz2
|
|
Source1: i3lock.pam
|
|
# borrowed from gnome-icon-theme
|
|
Source2: i3lock-icon.png
|
|
Source3: xlock.sh
|
|
# PATCH-FEATURE-OPENSUSE i3lock-2.5-use-unix2_chkpwd.diff -- seife+obs@b1-systems.com
|
|
Patch1: i3lock-2.5-use-unix2_chkpwd.diff
|
|
BuildRequires: gcc
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libudev1
|
|
BuildRequires: make
|
|
BuildRequires: pam-devel
|
|
BuildRequires: pam-modules
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(cairo)
|
|
BuildRequires: pkgconfig(libev)
|
|
BuildRequires: pkgconfig(xcb-atom)
|
|
BuildRequires: pkgconfig(xcb-image)
|
|
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
|
|
BuildRequires: pkgconfig(xkbcommon-x11)
|
|
Requires: pam-modules
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
%package xlock-compat
|
|
Summary: Xlock-compatibility script which calls i3lock
|
|
Group: System/GUI/Other
|
|
Requires: ImageMagick
|
|
Requires: xdpyinfo
|
|
Conflicts: xlockmore
|
|
|
|
%description xlock-compat
|
|
This package provides a script %{_bindir}/xlock which calls i3lock to lock your screen.
|
|
This is handy for hard-coded screen-saver invocations e.g. in XFCE4, so you can use
|
|
i3lock instead of xlock with them.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
make %{?_smp_mflags} \
|
|
USE_UNIX2_CHKPWD=1 \
|
|
PREFIX="%{_prefix}" \
|
|
SYSCONFDIR="%{_sysconfdir}"
|
|
|
|
%install
|
|
export CFLAGS="%{optflags}"
|
|
make \
|
|
USE_UNIX2_CHKPWD=1 \
|
|
PREFIX="%{_prefix}" \
|
|
SYSCONFDIR="%{_sysconfdir}" \
|
|
DESTDIR=%{buildroot} \
|
|
install
|
|
|
|
rm "%{buildroot}%{_sysconfdir}/pam.d/i3lock"
|
|
install -m0644 "%{SOURCE1}" "%{buildroot}%{_sysconfdir}/pam.d/%{name}"
|
|
|
|
install -D -m0644 i3lock.1 "%{buildroot}%{_mandir}/man1/i3lock.1"
|
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/i3lock-xlock-compat/i3lock-icon.png
|
|
install -m0755 %{SOURCE3} %{buildroot}/%{_bindir}/xlock
|
|
|
|
%files xlock-compat
|
|
%defattr(-,root,root)
|
|
%{_bindir}/xlock
|
|
%{_datadir}/i3lock-xlock-compat
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc CHANGELOG LICENSE README.md
|
|
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
|
|
%{_bindir}/i3lock
|
|
%{_mandir}/man1/i3lock.1*
|
|
|
|
%changelog
|