add user man required by systemd tmpfiles.d file [release 2.6.7.1-2mamba;Thu Oct 16 2014]
This commit is contained in:
parent
a27cd65b68
commit
15255a12a5
33
man-db.spec
33
man-db.spec
@ -1,10 +1,11 @@
|
||||
%define usecache 0
|
||||
%define cache /var/cache/man
|
||||
%define man_uid 21
|
||||
%define man_gid 21
|
||||
|
||||
Name: man-db
|
||||
Version: 2.6.7.1
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: A set of documentation tools: man, apropos and whatis
|
||||
Group: System/Tools
|
||||
Vendor: openmamba
|
||||
@ -72,6 +73,8 @@ rm -f %{buildroot}%{_mandir}/man1/zsoelim.*
|
||||
|
||||
%pre
|
||||
/usr/sbin/groupadd -g %{man_gid} man 2>/dev/null || :
|
||||
/usr/sbin/useradd -u %{man_uid} -g %{man_gid} -s /bin/false -r -d %{cache} \
|
||||
-c "man cache" man >/dev/null 2>&1 || :
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
@ -80,6 +83,7 @@ if [ $1 -eq 0 ]; then
|
||||
rm -f %{cache}/X11R6/cat[123456789n]/* 2>/dev/null
|
||||
rm -f %{cache}/whatis 2>/dev/null
|
||||
/usr/sbin/groupdel man 2>/dev/null
|
||||
/usr/sbin/userdel man 2>/dev/null
|
||||
fi
|
||||
exit 0
|
||||
|
||||
@ -114,21 +118,24 @@ exit 0
|
||||
%{_mandir}/man8/mandb.*
|
||||
%lang(es) %{_mandir}/es/man?/*
|
||||
%lang(it) %{_mandir}/it/man?/*
|
||||
%ifarch %{ix86}
|
||||
# FIXME: not present in x86_64 and arm
|
||||
%lang(da) %{_mandir}/da/man?/*
|
||||
%lang(de) %{_mandir}/de/man?/*
|
||||
%lang(fr) %{_mandir}/fr/man?/*
|
||||
%lang(id) %{_mandir}/id/man?/*
|
||||
%lang(ja) %{_mandir}/ja/man?/*
|
||||
%lang(nl) %{_mandir}/nl/man?/*
|
||||
%lang(pl) %{_mandir}/pl/man?/*
|
||||
%lang(ru) %{_mandir}/ru/man?/*
|
||||
%lang(zh_CN) %{_mandir}/zh_CN/man?/*
|
||||
%endif
|
||||
#%ifarch %{ix86}
|
||||
## FIXME: not present in x86_64 and arm
|
||||
#%lang(da) %{_mandir}/da/man?/*
|
||||
#%lang(de) %{_mandir}/de/man?/*
|
||||
#%lang(fr) %{_mandir}/fr/man?/*
|
||||
#%lang(id) %{_mandir}/id/man?/*
|
||||
#%lang(ja) %{_mandir}/ja/man?/*
|
||||
#%lang(nl) %{_mandir}/nl/man?/*
|
||||
#%lang(pl) %{_mandir}/pl/man?/*
|
||||
#%lang(ru) %{_mandir}/ru/man?/*
|
||||
#%lang(zh_CN) %{_mandir}/zh_CN/man?/*
|
||||
#%endif
|
||||
#%doc ChangeLog NEWS README
|
||||
|
||||
%changelog
|
||||
* Thu Oct 16 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7.1-2mamba
|
||||
- add user man required by systemd tmpfiles.d file
|
||||
|
||||
* Tue Apr 15 2014 Automatic Build System <autodist@mambasoft.it> 2.6.7.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user