18 |
Summary: Kolab Groupware Solution |
Summary: Kolab Groupware Solution |
19 |
Name: pykolab |
Name: pykolab |
20 |
Version: 0.5.10 |
Version: 0.5.10 |
21 |
Release: %mkrel 2 |
Release: %mkrel 3 |
22 |
License: GPLv3+ |
License: GPLv3+ |
23 |
Group: System/Servers |
Group: System/Servers |
24 |
URL: http://git.kolab.org/pykolab |
URL: http://git.kolab.org/pykolab |
25 |
Source0: http://git.kolab.org/pykolab//%{name}-%{version}.tar.gz |
Source0: http://git.kolab.org/pykolab//%{name}-%{version}.tar.gz |
26 |
Source1: kolab-saslauthd-tmpfiles.conf |
Source1: kolab-saslauthd-tmpfiles.conf |
27 |
Source2: kolab-server-tmpfiles.conf |
Source2: kolab-server-tmpfiles.conf |
28 |
|
Source3: wallace-tmpfiles.conf |
29 |
Patch0: mga-schema-loc.patch |
Patch0: mga-schema-loc.patch |
30 |
BuildRequires: gettext-devel |
BuildRequires: gettext-devel |
31 |
BuildArch: noarch |
BuildArch: noarch |
163 |
%{__install} -p -m 644 wallace/wallace.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/wallace |
%{__install} -p -m 644 wallace/wallace.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/wallace |
164 |
|
|
165 |
%{__install} -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/kolab-saslauthd.conf |
%{__install} -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/kolab-saslauthd.conf |
166 |
%{__install} -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/kolab-server.conf |
%{__install} -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/kolab-server.conf |
167 |
|
%{__install} -D -p -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/wallace.conf |
168 |
|
|
169 |
%find_lang pykolab |
%find_lang pykolab |
170 |
|
|
201 |
fi |
fi |
202 |
|
|
203 |
%post -n kolab-saslauthd |
%post -n kolab-saslauthd |
|
|
|
|
|
|
|
############needs work |
|
204 |
if [ $1 -eq 1 ]; then |
if [ $1 -eq 1 ]; then |
205 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
206 |
else |
else |
214 |
fi |
fi |
215 |
|
|
216 |
%post -n kolab-server |
%post -n kolab-server |
|
|
|
|
############needs work |
|
217 |
if [ $1 -eq 1 ] ; then |
if [ $1 -eq 1 ] ; then |
218 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
219 |
fi |
fi |
228 |
if [ $1 -eq 1 ] ; then |
if [ $1 -eq 1 ] ; then |
229 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
230 |
else |
else |
231 |
/sbin/service wallace condrestart |
/bin/systemctl condrestart wallace |
232 |
fi |
fi |
233 |
|
|
234 |
%preun -n wallace |
%preun -n wallace |
235 |
if [ $1 = 0 ]; then |
if [ $1 = 0 ]; then |
236 |
/bin/systemctl --no-reload disable wallace.service |
/bin/systemctl --no-reload disable wallace.service |
237 |
/biin/systemctl stop wallace.service |
/bin/systemctl stop wallace.service |
238 |
fi |
fi |
239 |
|
|
240 |
|
|
323 |
%{_sbindir}/wallaced |
%{_sbindir}/wallaced |
324 |
%{python_sitelib}/wallace |
%{python_sitelib}/wallace |
325 |
%attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab |
%attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab |
|
%attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace |
|
326 |
|
%attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace |
327 |
|
%{_tmpfilesdir}/wallace.conf |