2019-09-30 11:19:11 -04:00
|
|
|
Name: usermode
|
2022-02-08 09:05:45 +08:00
|
|
|
Version: 1.114
|
2024-03-26 11:30:51 +08:00
|
|
|
Release: 3
|
2019-09-30 11:19:11 -04:00
|
|
|
Summary: Tools for certain user account management tasks
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://pagure.io/usermode/
|
2020-07-24 14:34:09 +08:00
|
|
|
Source: https://releases.pagure.org/usermode/usermode-%{version}.tar.xz
|
2020-03-17 12:27:51 +08:00
|
|
|
Source1: config-util
|
2019-09-30 11:19:11 -04:00
|
|
|
|
2022-07-27 16:16:21 +08:00
|
|
|
Requires: pam passwd util-linux util-linux-user
|
2021-05-27 16:12:14 +08:00
|
|
|
BuildRequires: gcc
|
2019-09-30 11:19:11 -04:00
|
|
|
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: pam-devel startup-notification-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
usermode contains the userhelper program, which can be used to allow configured
|
|
|
|
|
programs to be run with superuser privileges by ordinary users, and several
|
|
|
|
|
graphical tools for users:
|
|
|
|
|
* userinfo allows users to change their finger information.
|
|
|
|
|
* usermount lets users mount, unmount, and format filesystems.
|
|
|
|
|
* userpasswd allows users to change their passwords.
|
|
|
|
|
|
2021-09-16 18:51:38 +08:00
|
|
|
%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.
|
2019-09-30 11:19:11 -04:00
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Man pages for usermode
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Package help includes man pages for usermode.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --with-selinux
|
2024-03-26 11:30:51 +08:00
|
|
|
%make_build VENDOR=%{_vendor}
|
2019-09-30 11:19:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2024-03-26 11:30:51 +08:00
|
|
|
%make_install VENDOR=%{_vendor}
|
2019-09-30 11:19:11 -04:00
|
|
|
|
|
|
|
|
# make userformat symlink to usermount
|
|
|
|
|
%{__ln_s} usermount %{buildroot}%{_bindir}/userformat
|
|
|
|
|
%{__ln_s} usermount.1 %{buildroot}%{_mandir}/man1/userformat.1
|
|
|
|
|
|
2020-03-17 12:27:51 +08:00
|
|
|
install -D -p -m 644 %{SOURCE1} %{buildroot}/etc/security/console.apps/config-util
|
|
|
|
|
|
2024-03-26 11:30:51 +08:00
|
|
|
for i in %{_vendor}-userinfo.desktop %{_vendor}-userpasswd.desktop %{_vendor}-usermount.desktop; do
|
2019-09-30 11:19:11 -04:00
|
|
|
echo 'NotShowIn=GNOME;KDE;' >>%{buildroot}%{_datadir}/applications/$i
|
2024-03-26 11:30:51 +08:00
|
|
|
desktop-file-install --vendor %{_vendor} --delete-original \
|
2019-09-30 11:19:11 -04:00
|
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
|
|
|
%{buildroot}%{_datadir}/applications/$i
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%doc COPYING ChangeLog NEWS README
|
|
|
|
|
%attr(4711,root,root) /usr/sbin/userhelper
|
2021-09-16 18:51:38 +08:00
|
|
|
%{_bindir}/consolehelper
|
2019-09-30 11:19:11 -04:00
|
|
|
%{_datadir}/usermode
|
2021-09-16 18:51:38 +08:00
|
|
|
%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}
|
2019-09-30 11:19:11 -04:00
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-03-26 11:30:51 +08:00
|
|
|
* Tue Mar 26 2024 wangqingsan <wangqingsan@huawei.com> - 1.114-3
|
|
|
|
|
- modify openeuler to _vendor
|
|
|
|
|
|
2022-07-27 16:16:21 +08:00
|
|
|
* Wed Jul 27 2022 yuanxing <yuanxing@kylinsec.com.cn> - 1.114-2
|
|
|
|
|
- add util-linux-user require to solve the problem that useinfo cannot be used normally
|
|
|
|
|
|
2022-02-08 09:05:45 +08:00
|
|
|
* Tue Feb 8 2022 yangzhuangzhuang <yangzhuangzhuang1@h-partners.com> - 1.114-1
|
|
|
|
|
- update to 1.114
|
|
|
|
|
|
2021-09-16 18:51:38 +08:00
|
|
|
* Thu Sep 16 2021 wangjie <wangjie375@huawei.com> - 1.113-4
|
|
|
|
|
- segregated usermode-gtk
|
|
|
|
|
|
2021-05-27 16:12:14 +08:00
|
|
|
* Thu May 27 2021 panxiaohe <panxiaohe@huawei.com> - 1.113-3
|
|
|
|
|
- Add gcc to BuildRequires
|
|
|
|
|
|
2020-07-30 13:36:03 +08:00
|
|
|
* Thu Jul 30 2020 shenyangyang <shenyangyang4@huawei.com> - 1.113-2
|
|
|
|
|
- Do not use deprecated flask.h and av_permissions
|
|
|
|
|
|
2020-07-24 14:34:09 +08:00
|
|
|
* Fri Jul 24 2020 Hugel <gengqihu1@huawei.com> - 1.113-1
|
|
|
|
|
- Update to 1.113
|
|
|
|
|
|
2020-03-17 12:27:51 +08:00
|
|
|
* Tue Mar 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.112-8
|
|
|
|
|
- Add Source1
|
|
|
|
|
|
2020-01-08 14:31:11 +08:00
|
|
|
* Sat Jan 4 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.112-7
|
|
|
|
|
- Delete redundant file
|
|
|
|
|
|
2019-12-31 15:59:44 +08:00
|
|
|
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.112-6
|
|
|
|
|
- Delete unneeded patch
|
|
|
|
|
|
2019-12-25 21:29:46 +08:00
|
|
|
* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.112-5
|
|
|
|
|
- Add provides of usermode-gtk
|
|
|
|
|
|
2019-09-30 11:19:11 -04:00
|
|
|
* Fri Sep 20 2019 Zaiwang Li <lizaiwang1@huawei.com> - 1.112-4
|
|
|
|
|
- Init Package
|