!15 segregated usermode-gtk

From: @jlwwlsqc
Reviewed-by: @zhujianwei001
Signed-off-by: @zhujianwei001
This commit is contained in:
openeuler-ci-bot 2021-09-16 11:47:53 +00:00 committed by Gitee
commit c597724f02

View File

@ -1,6 +1,6 @@
Name: usermode Name: usermode
Version: 1.113 Version: 1.113
Release: 3 Release: 4
Summary: Tools for certain user account management tasks Summary: Tools for certain user account management tasks
License: GPLv2+ License: GPLv2+
URL: https://pagure.io/usermode/ URL: https://pagure.io/usermode/
@ -15,9 +15,6 @@ BuildRequires: desktop-file-utils gettext intltool perl-XML-Parser util-linux
BuildRequires: glib2-devel gtk2-devel libblkid-devel libSM-devel libselinux-devel libuser-devel BuildRequires: glib2-devel gtk2-devel libblkid-devel libSM-devel libselinux-devel libuser-devel
BuildRequires: pam-devel startup-notification-devel BuildRequires: pam-devel startup-notification-devel
Provides: %{name}-gtk = %{version}-%{release}
Obsoletes: %{name}-gtk < %{version}-%{release}
%description %description
usermode contains the userhelper program, which can be used to allow configured usermode contains the userhelper program, which can be used to allow configured
programs to be run with superuser privileges by ordinary users, and several programs to be run with superuser privileges by ordinary users, and several
@ -26,6 +23,19 @@ graphical tools for users:
* usermount lets users mount, unmount, and format filesystems. * usermount lets users mount, unmount, and format filesystems.
* userpasswd allows users to change their passwords. * userpasswd allows users to change their passwords.
%package gtk
Summary: Graphical tools for certain user account management tasks
Requires: %{name} = %{version}-%{release}
%description gtk
The usermode-gtk package contains several graphical tools for users:
userinfo, usermount and userpasswd. Userinfo allows users to change
their finger information. Usermount lets users mount, unmount, and
format file systems. Userpasswd allows users to change their
passwords.
Install the usermode-gtk package if you would like to provide users with
graphical tools for certain account management tasks.
%package help %package help
Summary: Man pages for usermode Summary: Man pages for usermode
@ -62,17 +72,29 @@ done
%files -f %{name}.lang %files -f %{name}.lang
%doc COPYING ChangeLog NEWS README %doc COPYING ChangeLog NEWS README
%attr(4711,root,root) /usr/sbin/userhelper %attr(4711,root,root) /usr/sbin/userhelper
%{_bindir}/* %{_bindir}/consolehelper
%{_datadir}/usermode %{_datadir}/usermode
%config(noreplace) /etc/security/console.apps/config-util
%files gtk
%{_bindir}/usermount
%{_bindir}/userformat
%{_bindir}/userinfo
%{_bindir}/userpasswd
%{_bindir}/consolehelper-gtk
%{_bindir}/pam-panel-icon
%{_datadir}/%{name}
%{_datadir}/pixmaps/* %{_datadir}/pixmaps/*
%{_datadir}/applications/* %{_datadir}/applications/*
%config(noreplace) /etc/security/console.apps/config-util
%files help %files help
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Thu Sep 16 2021 wangjie <wangjie375@huawei.com> - 1.113-4
- segregated usermode-gtk
* Thu May 27 2021 panxiaohe <panxiaohe@huawei.com> - 1.113-3 * Thu May 27 2021 panxiaohe <panxiaohe@huawei.com> - 1.113-3
- Add gcc to BuildRequires - Add gcc to BuildRequires