create user and group required by systemd tmpfile conf [release 1.3.2-2mamba;Sun Jul 03 2016]
This commit is contained in:
parent
b6bc83633a
commit
192a7b1f02
30
colord.spec
30
colord.spec
@ -1,6 +1,8 @@
|
||||
%define colord_uid 65441
|
||||
%define colord_gid 65441
|
||||
Name: colord
|
||||
Version: 1.3.2
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: A system service that makes it easy to manage, install and generate color profiles
|
||||
Group: System/Servers
|
||||
Vendor: openmamba
|
||||
@ -85,6 +87,29 @@ This package includes the %{name} API documentation.
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%pre
|
||||
if [ $1 -ge 1 ]; then
|
||||
# add Colord user
|
||||
/usr/sbin/groupadd colord -g %{colord_gid} &>/dev/null
|
||||
/usr/sbin/useradd -u %{colord_uid} -c 'Colord user' -d /dev/null \
|
||||
-s /bin/false colord -g %{colord_gid} 2>/dev/null
|
||||
systemctl -q daemon-reload
|
||||
systemd-tmpfiles --create colord.conf
|
||||
fi
|
||||
:
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
:
|
||||
|
||||
%preun
|
||||
# erase
|
||||
if [ $1 -eq 0 ]; then
|
||||
userdel colord || true
|
||||
groupdel colord || true
|
||||
fi
|
||||
:
|
||||
|
||||
%post -n lib%{name} -p /sbin/ldconfig
|
||||
%postun -n lib%{name} -p /sbin/ldconfig
|
||||
|
||||
@ -175,6 +200,9 @@ This package includes the %{name} API documentation.
|
||||
%{_datadir}/gtk-doc/html/%{name}/*
|
||||
|
||||
%changelog
|
||||
* Sun Jul 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-2mamba
|
||||
- create user and group required by systemd tmpfile conf
|
||||
|
||||
* Tue Apr 19 2016 Automatic Build System <autodist@mambasoft.it> 1.3.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user