From d59d4b8dcd5e148a31b19da813c3e38e80b399991a0a3da88ab22f7f6071ccf6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 3 Aug 2022 07:51:56 +0000 Subject: [PATCH] Accepting request 992459 from home:lnussel:branches:network:synchronization:files - use %_pam_moduledir (boo#1190949) - run spec-cleaner OBS-URL: https://build.opensuse.org/request/show/992459 OBS-URL: https://build.opensuse.org/package/show/network:synchronization:files/pam_csync?expand=0&rev=25 --- pam_csync.changes | 6 ++++++ pam_csync.spec | 27 +++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/pam_csync.changes b/pam_csync.changes index 9cd1730..0152f13 100644 --- a/pam_csync.changes +++ b/pam_csync.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 3 06:47:39 UTC 2022 - Ludwig Nussel + +- use %_pam_moduledir (boo#1190949) +- run spec-cleaner + ------------------------------------------------------------------- Wed Jun 10 08:55:47 UTC 2020 - Andreas Schneider diff --git a/pam_csync.spec b/pam_csync.spec index 46d2da4..99b0219 100644 --- a/pam_csync.spec +++ b/pam_csync.spec @@ -1,7 +1,7 @@ # # spec file for package pam_csync # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,24 @@ # +%if !%{defined _pam_moduledir} +%define _pam_moduledir /%{_lib}/security +%endif Name: pam_csync -BuildRequires: cmake -BuildRequires: libcsync-devel -BuildRequires: libiniparser-devel -BuildRequires: pam-devel Version: 0.43.0 Release: 0 Summary: A PAM module for roaming home directories License: GPL-2.0-or-later Group: System/Libraries -URL: http://www.csync.org/ +URL: https://www.csync.org/ Source0: https://gitlab.com/csync/pam_csync/-/archive/%{version}/%{name}-%{version}.tar.gz Source1: baselibs.conf # PATCH-FIX-UPSTREAM 0002-Update-FSF-address.patch Patch2: 0002-Update-FSF-address.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake +BuildRequires: libcsync-devel +BuildRequires: libiniparser-devel +BuildRequires: pam-devel %description This is a PAM module to provide roaming home directories for a user @@ -39,18 +41,11 @@ session. The authentication module verifies the identity of a user and triggers a synchronization with the server on the first login and the last logout. - - -Authors: --------- - Andreas Schneider - - %prep %autosetup -p1 %build -%cmake +%cmake -DPAM_MODULE_INSTALL_DIR=%{_pam_moduledir} %cmake_build %install @@ -59,7 +54,7 @@ Authors: %files %doc FAQ README %license COPYING -/%{_lib}/security/pam_csync.so +%{_pam_moduledir}/pam_csync.so %dir %{_sysconfdir}/security %config(noreplace) %{_sysconfdir}/security/pam_csync.conf %{_mandir}/man?/pam_csync.*