From ac0e35c585948636c540e553fce64951adfe2962 Mon Sep 17 00:00:00 2001 From: openeuler-basic Date: Tue, 17 Mar 2020 12:27:51 +0800 Subject: [PATCH] add Source1 --- config-util | 2 ++ usermode.spec | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 config-util diff --git a/config-util b/config-util new file mode 100644 index 0000000..a6b9096 --- /dev/null +++ b/config-util @@ -0,0 +1,2 @@ +USER=root +UGROUPS=wheel diff --git a/usermode.spec b/usermode.spec index 52a3307..7a0286b 100644 --- a/usermode.spec +++ b/usermode.spec @@ -1,10 +1,11 @@ Name: usermode Version: 1.112 -Release: 7 +Release: 8 Summary: Tools for certain user account management tasks License: GPLv2+ URL: https://pagure.io/usermode/ Source: https://releases.pagure.org/usermode/usermode-%{version}.autotoolized.tar.xz +Source1: config-util Patch0000: Include-sys-sysmacros.h-manually.patch Requires: pam passwd util-linux @@ -45,6 +46,8 @@ Package help includes man pages for usermode. %{__ln_s} usermount %{buildroot}%{_bindir}/userformat %{__ln_s} usermount.1 %{buildroot}%{_mandir}/man1/userformat.1 +install -D -p -m 644 %{SOURCE1} %{buildroot}/etc/security/console.apps/config-util + for i in openeuler-userinfo.desktop openeuler-userpasswd.desktop openeuler-usermount.desktop; do echo 'NotShowIn=GNOME;KDE;' >>%{buildroot}%{_datadir}/applications/$i desktop-file-install --vendor openeuler --delete-original \ @@ -61,12 +64,16 @@ done %{_datadir}/usermode %{_datadir}/pixmaps/* %{_datadir}/applications/* +%config(noreplace) /etc/security/console.apps/config-util %files help %{_mandir}/man1/* %{_mandir}/man8/* %changelog +* Tue Mar 17 2020 openEuler Buildteam - 1.112-8 +- Add Source1 + * Sat Jan 4 2020 openEuler Buildteam - 1.112-7 - Delete redundant file -- Gitee