!25 [sync] PR-24: modify openeuler to _vendor

From: @openeuler-sync-bot 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2024-03-26 12:15:20 +00:00 committed by Gitee
commit 6e332fda43
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: usermode Name: usermode
Version: 1.114 Version: 1.114
Release: 2 Release: 3
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/
@ -46,11 +46,11 @@ Package help includes man pages for usermode.
%build %build
%configure --with-selinux %configure --with-selinux
%make_build VENDOR=openeuler %make_build VENDOR=%{_vendor}
%install %install
%make_install VENDOR=openeuler %make_install VENDOR=%{_vendor}
# make userformat symlink to usermount # make userformat symlink to usermount
%{__ln_s} usermount %{buildroot}%{_bindir}/userformat %{__ln_s} usermount %{buildroot}%{_bindir}/userformat
@ -58,9 +58,9 @@ Package help includes man pages for usermode.
install -D -p -m 644 %{SOURCE1} %{buildroot}/etc/security/console.apps/config-util 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 for i in %{_vendor}-userinfo.desktop %{_vendor}-userpasswd.desktop %{_vendor}-usermount.desktop; do
echo 'NotShowIn=GNOME;KDE;' >>%{buildroot}%{_datadir}/applications/$i echo 'NotShowIn=GNOME;KDE;' >>%{buildroot}%{_datadir}/applications/$i
desktop-file-install --vendor openeuler --delete-original \ desktop-file-install --vendor %{_vendor} --delete-original \
--dir %{buildroot}%{_datadir}/applications \ --dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/$i %{buildroot}%{_datadir}/applications/$i
done done
@ -90,6 +90,9 @@ done
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Tue Mar 26 2024 wangqingsan <wangqingsan@huawei.com> - 1.114-3
- modify openeuler to _vendor
* Wed Jul 27 2022 yuanxing <yuanxing@kylinsec.com.cn> - 1.114-2 * 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 - add util-linux-user require to solve the problem that useinfo cannot be used normally