diff --git a/config-util b/config-util new file mode 100644 index 0000000000000000000000000000000000000000..a6b909624ab298188cc6fe4bfbab1d2e76999088 --- /dev/null +++ b/config-util @@ -0,0 +1,2 @@ +USER=root +UGROUPS=wheel diff --git a/usermode-1.114.tar.xz b/usermode-1.114.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..f5871ad8157af8cb8c7d592cd60a91de1d132815 Binary files /dev/null and b/usermode-1.114.tar.xz differ diff --git a/usermode.spec b/usermode.spec new file mode 100644 index 0000000000000000000000000000000000000000..74e5e08971cb58051948e1fa1491eb13ba6bc629 --- /dev/null +++ b/usermode.spec @@ -0,0 +1,62 @@ +%define anolis_release 1 +%global _hardened_build 1 + +Name: usermode +Summary: Tools for certain user account management tasks +Version: 1.114 +Release: %{anolis_release}%{?dist} +License: GPLv2+ +URL: https://pagure.io/%{name}/ +Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz +Source1: config-util + +BuildRequires: make gcc gettext, glib2-devel, intltool +BuildRequires: libblkid-devel, libselinux-devel, libuser-devel +BuildRequires: pam-devel, perl-XML-Parser util-linux + +Requires: pam, passwd, util-linux + +%description +The usermode package contains the userhelper program, which can be +used to allow configured programs to be run with superuser privileges +by ordinary users. + +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%configure --with-selinux --without-fexecve --without-gtk + +%make_build + +%install +%make_install INSTALL='install -p' + +mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps +install -p -m 644 %{SOURCE1} \ + $RPM_BUILD_ROOT/etc/security/console.apps/config-util + +%find_lang %{name} + +%files -f %{name}.lang +%license COPYING +%attr(4711,root,root) /usr/sbin/userhelper +%{_bindir}/consolehelper +%{_mandir}/man8/userhelper.8* +%{_mandir}/man8/consolehelper.8* +%config(noreplace) /etc/security/console.apps/config-util + +%files doc +%doc ChangeLog NEWS README + +%changelog +* Fri Apr 21 2023 happy_orange - 1.114-1 +- init package