mirror of
https://abf.rosa.ru/djam/pam.git
synced 2025-02-23 16:32:51 +00:00
Fix last login info time ru format in gdm
This commit is contained in:
parent
7691297153
commit
e2d0eed484
1 changed files with 11 additions and 1 deletions
12
pam.spec
12
pam.spec
|
@ -15,7 +15,7 @@
|
|||
Summary: A security tool which provides authentication for applications
|
||||
Name: pam
|
||||
Version: 1.5.1
|
||||
Release: 3
|
||||
Release: 4
|
||||
Epoch: 1
|
||||
# The library is BSD licensed with option to relicense as GPLv2+ - this option is redundant
|
||||
# as the BSD license allows that anyway. pam_timestamp and pam_console modules are GPLv2+,
|
||||
|
@ -332,6 +332,16 @@ install -m644 -D %{SOURCE13} %{buildroot}%{_prefix}/lib/tmpfiles.d/pam.conf
|
|||
# For drakauth copy system-auth to system-auth-default
|
||||
cp -f %{buildroot}/etc/pam.d/system-auth %{buildroot}/etc/pam.d/system-auth-default
|
||||
|
||||
# Fix gdm last login time ru format
|
||||
pushd %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES
|
||||
msgunfmt Linux-PAM.mo -o Linux-PAM.po
|
||||
rm -f Linux-PAM.mo
|
||||
sed -i "/msgstr/ s/ \x25a \x25b \x25e \x25H:\x25M:\x25S \x25Z \x25Y/ \x25a, \x25e \x25B \x25H:\x25M/" Linux-PAM.po
|
||||
sed -i "/msgstr/ s/Последний вход в систему:/Последний вход:/" Linux-PAM.po
|
||||
msgfmt Linux-PAM.po -o Linux-PAM.mo
|
||||
rm -f Linux-PAM.po
|
||||
popd
|
||||
|
||||
%find_lang Linux-PAM
|
||||
|
||||
%check
|
||||
|
|
Loading…
Add table
Reference in a new issue