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