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 usecache 0
|
||||||
%define cache /var/cache/man
|
%define cache /var/cache/man
|
||||||
|
%define man_uid 21
|
||||||
%define man_gid 21
|
%define man_gid 21
|
||||||
|
|
||||||
Name: man-db
|
Name: man-db
|
||||||
Version: 2.6.7.1
|
Version: 2.6.7.1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A set of documentation tools: man, apropos and whatis
|
Summary: A set of documentation tools: man, apropos and whatis
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -72,6 +73,8 @@ rm -f %{buildroot}%{_mandir}/man1/zsoelim.*
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -g %{man_gid} man 2>/dev/null || :
|
/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
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
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}/X11R6/cat[123456789n]/* 2>/dev/null
|
||||||
rm -f %{cache}/whatis 2>/dev/null
|
rm -f %{cache}/whatis 2>/dev/null
|
||||||
/usr/sbin/groupdel man 2>/dev/null
|
/usr/sbin/groupdel man 2>/dev/null
|
||||||
|
/usr/sbin/userdel man 2>/dev/null
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -114,21 +118,24 @@ exit 0
|
|||||||
%{_mandir}/man8/mandb.*
|
%{_mandir}/man8/mandb.*
|
||||||
%lang(es) %{_mandir}/es/man?/*
|
%lang(es) %{_mandir}/es/man?/*
|
||||||
%lang(it) %{_mandir}/it/man?/*
|
%lang(it) %{_mandir}/it/man?/*
|
||||||
%ifarch %{ix86}
|
#%ifarch %{ix86}
|
||||||
# FIXME: not present in x86_64 and arm
|
## FIXME: not present in x86_64 and arm
|
||||||
%lang(da) %{_mandir}/da/man?/*
|
#%lang(da) %{_mandir}/da/man?/*
|
||||||
%lang(de) %{_mandir}/de/man?/*
|
#%lang(de) %{_mandir}/de/man?/*
|
||||||
%lang(fr) %{_mandir}/fr/man?/*
|
#%lang(fr) %{_mandir}/fr/man?/*
|
||||||
%lang(id) %{_mandir}/id/man?/*
|
#%lang(id) %{_mandir}/id/man?/*
|
||||||
%lang(ja) %{_mandir}/ja/man?/*
|
#%lang(ja) %{_mandir}/ja/man?/*
|
||||||
%lang(nl) %{_mandir}/nl/man?/*
|
#%lang(nl) %{_mandir}/nl/man?/*
|
||||||
%lang(pl) %{_mandir}/pl/man?/*
|
#%lang(pl) %{_mandir}/pl/man?/*
|
||||||
%lang(ru) %{_mandir}/ru/man?/*
|
#%lang(ru) %{_mandir}/ru/man?/*
|
||||||
%lang(zh_CN) %{_mandir}/zh_CN/man?/*
|
#%lang(zh_CN) %{_mandir}/zh_CN/man?/*
|
||||||
%endif
|
#%endif
|
||||||
#%doc ChangeLog NEWS README
|
#%doc ChangeLog NEWS README
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Apr 15 2014 Automatic Build System <autodist@mambasoft.it> 2.6.7.1-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user