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 |
Obsoletes: qmHandle |
15 |
Obsoletes: e-smith-qmail-view |
16 |
Obsoletes: e-smith-qmHandle |
17 |
Obsoletes: smeserver-saco-qmHandle |
18 |
Provides: smeserver-qmHandle |
19 |
Requires: e-smith-base |
20 |
Requires: e-smith-lib |
21 |
Requires: perl |
22 |
Requires: smeserver-release >= 8 |
23 |
BuildRequires: e-smith-devtools |
24 |
|
25 |
AutoReqProv: no |
26 |
|
27 |
%description |
28 |
A panel for managing the Qmail queues using qmHandle |
29 |
(http://sourceforge.net/projects/qmhandle) |
30 |
|
31 |
%changelog |
32 |
* Fri Aug 31 2012 JP Pialasse <tests@pialasse.com> 1.4-3.sme |
33 |
- fix path of sv |
34 |
|
35 |
* Thu Aug 30 2012 JP Pialasse <tests@pialasse.com> 1.4-2.sme |
36 |
- fix buildrequires and import in buildsys |
37 |
|
38 |
%changelog |
39 |
* Thu Aug 23 2012 JP Pialasse <tests@pialasse.com> 1.4-1.sme |
40 |
- Initial release |
41 |
|
42 |
%prep |
43 |
%setup |
44 |
%patch1 -p1 |
45 |
|
46 |
|
47 |
%build |
48 |
perl createlinks |
49 |
|
50 |
%install |
51 |
rm -rf $RPM_BUILD_ROOT |
52 |
|
53 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
54 |
rm -f e-smith-%{version}-filelist |
55 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
56 |
|
57 |
%clean |
58 |
rm -rf $RPM_BUILD_ROOT |
59 |
|
60 |
%files -f %{name}-%{version}-filelist |
61 |
|
62 |
%defattr(-,root,root) |
63 |
%attr(4750 root admin) "/etc/e-smith/web/functions/qmh" |
64 |
%attr(0755 root root) "/usr/bin/qmHandle" |
65 |
|
66 |
%pre |
67 |
|
68 |
%post -p /bin/sh |
69 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
70 |
|
71 |
%preun |
72 |
|
73 |
%postun -p /bin/sh |
74 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
75 |
|