1 |
# $Id: smeserver-vacation.spec,v 1.3 2020/05/19 14:34:51 brianr Exp $ |
# $Id: smeserver-vacation.spec,v 1.5 2020/10/26 10:00:28 brianr Exp $ |
2 |
# Authority: dungog |
# Authority: dungog |
3 |
# Name: Stephen Noble |
# Name: Stephen Noble |
4 |
|
|
5 |
%define name smeserver-vacation |
%define name smeserver-vacation |
6 |
%define version 1.1 |
%define version 1.1 |
7 |
%define release 29 |
%define release 31 |
8 |
Summary: SME Server enhancement to enable vacation messages for users. |
Summary: SME Server enhancement to enable vacation messages for users. |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
38 |
Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch |
Patch22: smeserver-vacation-1.1-SME10-Move-to-manager2.patch |
39 |
Patch23: smeserver-vacation-1.1-Better-display-dates-in-list.patch |
Patch23: smeserver-vacation-1.1-Better-display-dates-in-list.patch |
40 |
Patch24: smeserver-vacation-1.1-Update-for-Apache-Mod-Proxy-based-server2.patch |
Patch24: smeserver-vacation-1.1-Update-for-Apache-Mod-Proxy-based-server2.patch |
41 |
|
Patch25: smeserver-vacation-1.1-Add-in-update-action-to-restart-smanager.patch |
42 |
|
|
43 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
44 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
45 |
Requires: e-smith-release >= 9.0, |
Requires: e-smith-release >= 9.0, |
46 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
47 |
|
# needs /usr/share/perl5/vendor_perl/ctime.pl |
48 |
|
Requires: perl-Perl4-CoreLibs |
49 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
50 |
#BuildRequires: smeserver-manager >= 24 |
#BuildRequires: smeserver-manager >= 24 |
51 |
AutoReqProv: no |
AutoReqProv: no |
56 |
enable vacation for themselves and to modify their own message |
enable vacation for themselves and to modify their own message |
57 |
|
|
58 |
%changelog |
%changelog |
59 |
|
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-31.sme |
60 |
|
- add requirement ctime.pl to display log [SME: 10927] |
61 |
|
|
62 |
|
* Sat Oct 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-30.sme |
63 |
|
- Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052] |
64 |
|
- to smeserver-vacation-update event |
65 |
|
|
66 |
* Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme |
* Thu Jun 11 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-29.sme |
67 |
- Update for Apache-Mod-Proxy mode Server2 [SME:10927] |
- Update for Apache-Mod-Proxy mode Server2 [SME:10927] |
68 |
|
|
375 |
%patch22 -p1 |
%patch22 -p1 |
376 |
%patch23 -p1 |
%patch23 -p1 |
377 |
%patch24 -p1 |
%patch24 -p1 |
378 |
|
%patch25 -p1 |
379 |
|
|
380 |
%build |
%build |
381 |
perl createlinks |
perl createlinks |
412 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
413 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
414 |
fi |
fi |
415 |
/sbin/e-smith/signal-event manager2-refresh |
|
416 |
systemctl restart smanager |
#if (systemctl list-unit-files |grep smanager) then |
417 |
|
# echo "Smanager restart in spec file" |
418 |
|
# /sbin/e-smith/signal-event manager2-refresh; |
419 |
|
# systemctl restart smanager |
420 |
|
#else |
421 |
|
# echo "No smanager restart in spec file" |
422 |
|
#fi |
423 |
|
|
424 |
%postun |
%postun |
425 |
#uninstall |
#uninstall |