From 2643ae6756a9322f861ef42b022e6f2db0d942f1c0ca1ec1bee0005818e8d66d Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 28 Jun 2023 12:34:53 +0000 Subject: [PATCH] Accepting request 1095805 from home:kukuk:no-utmp - Add last compat symlink and manual page OBS-URL: https://build.opensuse.org/request/show/1095805 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/wtmpdb?expand=0&rev=17 --- wtmpdb.changes | 5 +++++ wtmpdb.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/wtmpdb.changes b/wtmpdb.changes index 74d470e..12f4ca7 100644 --- a/wtmpdb.changes +++ b/wtmpdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 27 06:30:33 UTC 2023 - Thorsten Kukuk + +- Add last compat symlink and manual page + ------------------------------------------------------------------- Wed Jun 21 06:52:21 UTC 2023 - Thorsten Kukuk diff --git a/wtmpdb.spec b/wtmpdb.spec index 824db08..69a6086 100644 --- a/wtmpdb.spec +++ b/wtmpdb.spec @@ -32,6 +32,8 @@ BuildRequires: pkgconfig(pam) BuildRequires: pkgconfig(sqlite3) Requires(post): pam-config Requires(postun):pam-config +# Split provide for last +Provides: util-linux:/usr/bin/last %description pam_wtmpdb and wtmpdb are Y2038 safe versions of wtmp and the last utility. pam_wtmpdb collects all data in a sqlite3 database and wtmpdb creates boot and shutdown entries or formats and prints the contents of the wtmp database. @@ -54,11 +56,13 @@ to develop applications that needs to read, write or modify the wtmpdb database. %setup -q %build -%meson -Dman=true +%meson -Dman=true -Dcompat-symlink=true %meson_build %install %meson_install +mkdir -p %{buildroot}%{_mandir}/man1 +echo ".so wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1 %check %meson_test @@ -86,6 +90,7 @@ fi %files %license LICENSE +%{_bindir}/last %{_bindir}/wtmpdb %{_unitdir}/wtmpdb-update-boot.service %{_unitdir}/wtmpdb-rotate.service @@ -93,6 +98,7 @@ fi %{_tmpfilesdir}/wtmpdb.conf %{_pam_moduledir}/pam_wtmpdb.so %ghost %{_localstatedir}/lib/wtmpdb +%{_mandir}/man1/last.1%{?ext_man} %{_mandir}/man8/wtmpdb.8%{?ext_man} %{_mandir}/man8/pam_wtmpdb.8%{?ext_man}