!27 modify openeuler to _vendor

From: @zhangruifang2020 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2024-06-12 02:48:12 +00:00 committed by Gitee
commit 3dbd507717
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: usermode
Version: 1.113
Release: 3
Release: 4
Summary: Tools for certain user account management tasks
License: GPLv2+
URL: https://pagure.io/usermode/
@ -48,11 +48,11 @@ Package help includes man pages for usermode.
%build
%configure --with-selinux
%make_build VENDOR=openeuler
%make_build VENDOR=%{_vendor}
%install
%make_install VENDOR=openeuler
%make_install VENDOR=%{_vendor}
# make userformat symlink to usermount
%{__ln_s} usermount %{buildroot}%{_bindir}/userformat
@ -60,9 +60,9 @@ Package help includes man pages for usermode.
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
desktop-file-install --vendor openeuler --delete-original \
desktop-file-install --vendor %{_vendor} --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/$i
done
@ -92,6 +92,9 @@ done
%{_mandir}/man8/*
%changelog
* Tue Jun 11 2024 zhangruifang <zhangruifang@h-partners.com> - 1.113-4
- modify openeuler to _vendor
* Thu Sep 16 2021 wangjie <wangjie375@huawei.com> - 1.113-3
- segregated usermode-gtk