2013-03-07 17:21:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package i3lock
|
|
|
|
#
|
2022-08-09 11:28:08 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-02-15 15:21:16 +00:00
|
|
|
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
2012-11-14 10:26:22 +00:00
|
|
|
# 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.
|
|
|
|
|
2018-10-23 21:41:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-03-07 17:21:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-11-14 10:26:22 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2013-03-07 17:21:29 +00:00
|
|
|
Name: i3lock
|
2020-12-27 22:23:35 +00:00
|
|
|
Version: 2.13
|
2013-03-07 17:21:29 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Screen Locker for the i3 Window Manager
|
|
|
|
License: BSD-3-Clause
|
2018-10-23 21:41:22 +00:00
|
|
|
URL: https://i3wm.org/i3lock/
|
2018-02-07 03:43:28 +00:00
|
|
|
Source: https://i3wm.org/i3lock/%{name}-%{version}.tar.bz2
|
2014-03-30 16:34:07 +00:00
|
|
|
# borrowed from gnome-icon-theme
|
|
|
|
Source2: i3lock-icon.png
|
|
|
|
Source3: xlock.sh
|
2013-03-07 17:21:29 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
2015-01-19 13:04:25 +00:00
|
|
|
BuildRequires: pkgconfig(cairo)
|
2017-06-10 16:03:58 +00:00
|
|
|
BuildRequires: pkgconfig(libev)
|
2015-01-19 13:04:25 +00:00
|
|
|
BuildRequires: pkgconfig(xcb-atom)
|
2013-03-07 17:21:29 +00:00
|
|
|
BuildRequires: pkgconfig(xcb-image)
|
2018-10-23 21:41:22 +00:00
|
|
|
BuildRequires: pkgconfig(xcb-xrm)
|
2016-04-27 07:36:32 +00:00
|
|
|
BuildRequires: pkgconfig(xkbcommon) >= 0.5.0
|
2017-06-10 16:03:58 +00:00
|
|
|
BuildRequires: pkgconfig(xkbcommon-x11)
|
2012-11-14 10:26:22 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2014-03-30 16:34:07 +00:00
|
|
|
%package xlock-compat
|
2016-04-26 12:51:26 +00:00
|
|
|
Summary: Xlock-compatibility script which calls i3lock
|
2014-03-30 16:34:07 +00:00
|
|
|
Requires: ImageMagick
|
2015-05-12 07:22:25 +00:00
|
|
|
Requires: xdpyinfo
|
2014-03-30 16:34:07 +00:00
|
|
|
Conflicts: xlockmore
|
|
|
|
|
|
|
|
%description xlock-compat
|
2017-06-10 16:03:58 +00:00
|
|
|
This package provides a script %{_bindir}/xlock which calls i3lock to lock your screen.
|
2014-03-30 16:34:07 +00:00
|
|
|
This is handy for hard-coded screen-saver invocations e.g. in XFCE4, so you can use
|
|
|
|
i3lock instead of xlock with them.
|
|
|
|
|
2012-11-14 10:26:22 +00:00
|
|
|
%prep
|
2020-06-06 14:45:59 +00:00
|
|
|
%autosetup -p 1
|
2012-11-14 10:26:22 +00:00
|
|
|
|
|
|
|
%build
|
2018-10-23 21:41:22 +00:00
|
|
|
%configure
|
2012-11-14 10:26:22 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
2020-06-06 14:45:59 +00:00
|
|
|
%make_build
|
2012-11-14 10:26:22 +00:00
|
|
|
|
|
|
|
%install
|
2018-02-07 03:43:28 +00:00
|
|
|
%make_install
|
2012-11-14 10:26:22 +00:00
|
|
|
|
2018-02-07 03:43:28 +00:00
|
|
|
install -D -m0644 %{name}.1 "%{buildroot}%{_mandir}/man1/%{name}.1"
|
2017-06-10 16:03:58 +00:00
|
|
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/i3lock-xlock-compat/i3lock-icon.png
|
2014-03-30 16:34:07 +00:00
|
|
|
install -m0755 %{SOURCE3} %{buildroot}/%{_bindir}/xlock
|
2020-09-12 20:18:07 +00:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2022-08-09 11:28:08 +00:00
|
|
|
mkdir -p %{buildroot}%{_pam_vendordir}
|
|
|
|
mv %{buildroot}%{_sysconfdir}/pam.d/* %{buildroot}%{_pam_vendordir}/
|
2020-09-12 20:18:07 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%pre
|
|
|
|
for i in pam.d/i3lock ; do
|
|
|
|
test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i}.rpmsave.old ||:
|
|
|
|
done
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
# Migration to /usr/etc.
|
|
|
|
for i in pam.d/i3lock ; do
|
|
|
|
test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i} ||:
|
|
|
|
done
|
2014-03-30 16:34:07 +00:00
|
|
|
|
|
|
|
%files xlock-compat
|
|
|
|
%{_bindir}/xlock
|
2018-10-23 21:41:22 +00:00
|
|
|
%{_datadir}/%{name}-xlock-compat
|
2014-03-30 16:34:07 +00:00
|
|
|
|
2012-11-14 10:26:22 +00:00
|
|
|
%files
|
2018-10-23 21:41:22 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG README.md
|
2020-09-12 20:18:07 +00:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2022-08-09 11:28:08 +00:00
|
|
|
%{_pam_vendordir}/%{name}
|
2020-09-12 20:18:07 +00:00
|
|
|
%else
|
2014-02-17 10:11:38 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
|
2020-09-12 20:18:07 +00:00
|
|
|
%endif
|
2018-02-07 03:43:28 +00:00
|
|
|
%{_bindir}/%{name}
|
2018-10-23 21:41:22 +00:00
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2012-11-14 10:26:22 +00:00
|
|
|
|
|
|
|
%changelog
|