Dnia Wed, Jul 12, 2023 at 01:22:08PM +0200, Jan Palus napisaĆ(a): > > Override pam configuration shipped with i3lock with custom one that has: > > auth include system-auth > > just like (all?) other screensavers/lockers and it should be fine. > > Other than this > > 1. Fix case in Summary: > 2. Update required macros according to linked BuildRequires.txt (for > %ninja_* macros) > 3. Clone empty pld repository for i3lock or just create a local git > repo, commit the spec and pam file and attach output of > `git format-patch -1` so authorship will be preserved correctly when > applying.
All done, thanks for reviewing it! Regards, Mateusz
>From 54d6ec043900d3b74fb9d22f314d7145d545af16 Mon Sep 17 00:00:00 2001 From: Mateusz Kocielski <s...@digitalsun.pl> Date: Wed, 12 Jul 2023 19:04:44 +0200 Subject: [PATCH] Initial version of i3lock spec Prepared with helping hand from Jan Palus <at...@pld-linux.org> --- i3lock.pam | 1 + i3lock.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 i3lock.pam create mode 100644 i3lock.spec diff --git a/i3lock.pam b/i3lock.pam new file mode 100644 index 0000000..2a1bcd9 --- /dev/null +++ b/i3lock.pam @@ -0,0 +1 @@ +auth include system-auth diff --git a/i3lock.spec b/i3lock.spec new file mode 100644 index 0000000..34d323b --- /dev/null +++ b/i3lock.spec @@ -0,0 +1,49 @@ +Summary: Improved screen locker +Name: i3lock +Version: 2.14.1 +Release: 1 +License: BSD +Group: Applications +Source0: https://i3wm.org/i3lock/%{name}-%{version}.tar.xz +# Source0-md5: 33d4bc8256a1566fbac911e405e53fdd +Source1: %{name}.pam +URL: https://i3wm.org/i3lock/ +BuildRequires: cairo-devel >= 1.14.4 +BuildRequires: libev-devel +BuildRequires: libxcb-devel +BuildRequires: meson >= 0.45.0 +BuildRequires: ninja +BuildRequires: pam-devel +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.736 +BuildRequires: xcb-util-devel +BuildRequires: xcb-util-image-devel +BuildRequires: xcb-util-xrm-devel +BuildRequires: xorg-lib-libxkbcommon-x11-devel +Requires: cairo >= 1.14.4 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Minimalist screen locker based on slock. + +%prep +%setup -q + +%build +%meson build +%ninja_build -C build + +%install +rm -rf $RPM_BUILD_ROOT +%ninja_install -C build +install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/i3lock + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE CHANGELOG +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/i3lock +%attr(755,root,root) %{_bindir}/i3lock +%{_mandir}/man1/i3lock.1* -- 2.41.0
_______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en