1 |
%define name smeserver-qmHandle |
2 |
Name: %{name} |
3 |
%define version 1.4 |
4 |
%define release 3 |
5 |
Version: %{version} |
6 |
Release: %{release}%{?dist} |
7 |
BuildArch: noarch |
8 |
License: GPL |
9 |
Group: Networking/Info |
10 |
Summary: adds a panel for managing the Qmail queues using qmHandle |
11 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
12 |
Source: %{name}-%{version}.tgz |
13 |
Patch1: smeserver-qmHandle-1.4-patch1.patch |
14 |
Patch2: smeserver-qmHandle-1.4-locale-2013-07-14.patch |
15 |
|
16 |
Obsoletes: qmHandle |
17 |
Obsoletes: e-smith-qmail-view |
18 |
Obsoletes: e-smith-qmHandle |
19 |
Obsoletes: smeserver-saco-qmHandle |
20 |
Provides: smeserver-qmHandle |
21 |
Requires: e-smith-base |
22 |
Requires: e-smith-lib |
23 |
Requires: perl |
24 |
Requires: smeserver-release >= 8 |
25 |
BuildRequires: e-smith-devtools |
26 |
|
27 |
AutoReqProv: no |
28 |
|
29 |
%description |
30 |
A panel for managing the Qmail queues using qmHandle |
31 |
(http://sourceforge.net/projects/qmhandle) |
32 |
|
33 |
%changelog |
34 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.4-4.sme |
35 |
- apply locale 2013-07-14 patch |
36 |
|
37 |
* Fri Aug 31 2012 JP Pialasse <tests@pialasse.com> 1.4-3.sme |
38 |
- fix path of sv |
39 |
|
40 |
* Thu Aug 30 2012 JP Pialasse <tests@pialasse.com> 1.4-2.sme |
41 |
- fix buildrequires and import in buildsys |
42 |
|
43 |
%changelog |
44 |
* Thu Aug 23 2012 JP Pialasse <tests@pialasse.com> 1.4-1.sme |
45 |
- Initial release |
46 |
|
47 |
%prep |
48 |
%setup |
49 |
%patch1 -p1 |
50 |
%patch2 -p1 |
51 |
|
52 |
%build |
53 |
perl createlinks |
54 |
|
55 |
%install |
56 |
rm -rf $RPM_BUILD_ROOT |
57 |
|
58 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
59 |
rm -f e-smith-%{version}-filelist |
60 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
61 |
|
62 |
%clean |
63 |
rm -rf $RPM_BUILD_ROOT |
64 |
|
65 |
%files -f %{name}-%{version}-filelist |
66 |
|
67 |
%defattr(-,root,root) |
68 |
%attr(4750 root admin) "/etc/e-smith/web/functions/qmh" |
69 |
%attr(0755 root root) "/usr/bin/qmHandle" |
70 |
|
71 |
%pre |
72 |
|
73 |
%post -p /bin/sh |
74 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
75 |
|
76 |
%preun |
77 |
|
78 |
%postun -p /bin/sh |
79 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
80 |
|