1 |
# $Id: smeserver-fetchmail.spec,v 1.33 2012/03/20 15:38:22 slords Exp $ |
2 |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
4 |
|
5 |
Summary: sme module to generate fetchmail poll |
6 |
%define name smeserver-fetchmail |
7 |
Name: %{name} |
8 |
%define version 1.4 |
9 |
%define release 1 |
10 |
%define smepanel FetchMails |
11 |
Version: %{version} |
12 |
Release: %{release}%{?dist} |
13 |
License: GPL |
14 |
Group: Networking/Daemons |
15 |
Source: %{name}-%{version}.tgz |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
18 |
Requires: smeserver-release >= 8.0 |
19 |
Requires: e-smith-email >= 4.16.0-18 |
20 |
Requires: e-smith-formmagick >= 1.4.0-12 |
21 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
Obsoletes: sme-fetchmail |
23 |
Obsoletes: smeserver-fetchmail-utf8 |
24 |
AutoReqProv: no |
25 |
|
26 |
%changelog |
27 |
* Sun Jun 3 2012 JP PIALASSE tests@pialasse.com 2.7-1.sme |
28 |
- Initial version |
29 |
|
30 |
%description |
31 |
sme server enhancement to make fetchmail more useable |
32 |
|
33 |
%prep |
34 |
%setup |
35 |
|
36 |
%build |
37 |
perl createlinks |
38 |
echo "%{version}-%{release}" >root/etc/e-smith/db/configuration/defaults/%{smepanel}/version |
39 |
|
40 |
%install |
41 |
rm -rf $RPM_BUILD_ROOT |
42 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
43 |
rm -f %{name}-%{version}-filelist |
44 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
45 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
46 |
|
47 |
%clean |
48 |
rm -rf $RPM_BUILD_ROOT |
49 |
|
50 |
%files -f %{name}-%{version}-filelist |
51 |
%defattr(-,root,root) |