Merge pull request !5 from syyhao/init
This commit is contained in:
openeuler-ci-bot 2020-03-17 17:30:01 +08:00 committed by Gitee
commit 72aff23408
2 changed files with 10 additions and 1 deletions

2
config-util Normal file
View File

@ -0,0 +1,2 @@
USER=root
UGROUPS=wheel

View File

@ -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 <buildteam@openeuler.org> - 1.112-8
- Add Source1
* Sat Jan 4 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.112-7
- Delete redundant file