80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
Name: usermode
|
|
Version: 1.112
|
|
Release: 5
|
|
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: sysmacros.patch
|
|
Patch0001: fsfaddr.patch
|
|
Requires: pam passwd util-linux
|
|
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
|
|
|
|
Provides: %{name}-gtk = %{version}-%{release}
|
|
Obsoletes: %{name}-gtk < %{version}-%{release}
|
|
|
|
%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.
|
|
|
|
|
|
%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
|
|
%make_build VENDOR=openeuler
|
|
|
|
|
|
%install
|
|
%make_install VENDOR=openeuler
|
|
|
|
# make userformat symlink to usermount
|
|
%{__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 \
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
%{buildroot}%{_datadir}/applications/$i
|
|
done
|
|
|
|
%find_lang %{name}
|
|
|
|
%files -f %{name}.lang
|
|
%doc COPYING ChangeLog NEWS README
|
|
%config(noreplace) /etc/security/console.apps/config-util
|
|
%attr(4711,root,root) /usr/sbin/userhelper
|
|
%{_bindir}/*
|
|
%{_datadir}/usermode
|
|
%{_datadir}/pixmaps/*
|
|
%{_datadir}/applications/*
|
|
|
|
%files help
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man8/*
|
|
|
|
%changelog
|
|
* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.112-5
|
|
- Add provides of usermode-gtk
|
|
|
|
* Fri Sep 20 2019 Zaiwang Li <lizaiwang1@huawei.com> - 1.112-4
|
|
- Init Package
|