1 |
Summary: sme server crontab maanger |
2 |
%define name smeserver-crontab_manager |
3 |
Name: %{name} |
4 |
%define version 2.0 |
5 |
%define release 1 |
6 |
Version: %{version} |
7 |
Release: %{release} |
8 |
Copyright: Freely distributable |
9 |
Group: Service |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
#Patch0: %{name}-%{version}.patch.yyyymmddnn |
12 |
Packager: Jean-Philippe Pialasse <test@pialasse.com> |
13 |
BuildRoot: /var/tmp/e-smith-buildroot |
14 |
BuildRequires: e-smith-devtools |
15 |
BuildArchitectures: noarch |
16 |
Requires: e-smith-base, e-smith-lib, e-smith >= 4.1 |
17 |
AutoReqProv: no |
18 |
|
19 |
%changelog |
20 |
* Wed May 26 2010 Jean-Philippe Pialasse <tests@pialasse.com> |
21 |
- fix expand-template /etc/crontab needed for sme7 |
22 |
|
23 |
* Mon Jan 07 2008 Michel van hees <michel@vanhees.cc> |
24 |
- Thanks t Sylvain Gomez to fix problem with french traduction |
25 |
|
26 |
* Fri Aug 03 2007 Michel Van hees <michel@vanhees.cc> |
27 |
- Fix bug with error 403 in panels |
28 |
|
29 |
* Mon Jul 16 2007 Michel Van hees <michel@vanhees.cc> |
30 |
- Thanks to Sulvain Gomez that fixes the uninstall procedure. |
31 |
|
32 |
* Sun Jan 01 2005 Michel Van hees <michel@vanhees.cc> |
33 |
- Added support of french |
34 |
|
35 |
* Mon Oct 11 2004 Michel Van hees <michel@vanhees.cc> |
36 |
- Initial release |
37 |
|
38 |
%description |
39 |
sme server administration panel to control crontab |
40 |
|
41 |
%prep |
42 |
%setup |
43 |
#%patch0 -p1 |
44 |
#%patch1 -p1 |
45 |
|
46 |
%build |
47 |
perl createlinks |
48 |
|
49 |
%install |
50 |
rm -rf $RPM_BUILD_ROOT |
51 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
52 |
rm -f %{name}-%{version}-filelist |
53 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
54 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
55 |
|
56 |
%clean |
57 |
rm -rf $RPM_BUILD_ROOT |
58 |
|
59 |
%pre |
60 |
%preun |
61 |
#/sbin/e-smith/db configuration delete cronmanager |
62 |
#/sbin/e-smith/expand-template /etc/crontab |
63 |
|
64 |
%post |
65 |
var=`/sbin/e-smith/db configuration getprop sysconfig ReleaseVersion|cut -c1` |
66 |
if [ $var = "6" -o $var = "7" ] |
67 |
then |
68 |
/etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1 |
69 |
fi |
70 |
/sbin/e-smith/db configuration set cronmanager configuration |
71 |
|
72 |
%postun |
73 |
var=`/sbin/e-smith/db configuration getprop sysconfig ReleaseVersion|cut -c1` |
74 |
if [ $var = "6" -o $var = "7" ] |
75 |
then |
76 |
/etc/e-smith/events/actions/navigation-conf > /dev/null 2>&1 |
77 |
fi |
78 |
/sbin/e-smith/db configuration delete cronmanager |
79 |
|
80 |
%files -f %{name}-%{version}-filelist |
81 |
%defattr(-,root,root) |