Summary(uk): õÔÉ̦ÔÁ ÏÔÒÉÍÁÎÎÑ ÐÏÛÔÉ Ú ×¦ÄÄÁÌÅÎϧ ÍÁÛÉÎÉ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
Summary(zh_CN): ¹¦ÄÜÇ¿´óµÄ POP/IMAP µç×ÓÓʼþÊÕÈ¡ÊØ»¤½ø³Ì
Name: fetchmail
-Version: 6.3.2
+Version: 6.3.6
Release: 1
License: GPL
Group: Applications/Mail
-Source0: http://download.berlios.de/fetchmail/%{name}-%{version}.tar.bz2
-# Source0-md5: a532134a5e3b35b4f8b78a8184439837
+#Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824
+Source0: http://download2.berlios.de/fetchmail/%{name}-%{version}.tar.bz2
+# Source0-md5: 4fab7ca100ca36e41a2e8dbf5b32a3cf
Source1: %{name}conf.desktop
Source2: %{name}.sysconfig
Source3: %{name}.init
Source4: %{name}.logrotate
+Patch0: %{name}-pl.po-update.patch
URL: http://fetchmail.berlios.de/
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: gettext-devel
-%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
-BuildRequires: rpmbuild(macros) >= 1.219
+%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l}
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: setup >= 2.3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
+%patch0 -p1
+
+# to rebuild po/pl.gmo
+rm -f po/stamp-po
%build
cp -f /usr/share/automake/config.* .
%post daemon
/sbin/chkconfig --add fetchmail
-if [ -f /var/lock/subsys/fetchmail ]; then
- /etc/rc.d/init.d/fetchmail restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/fetchmail start\" to start fetchmail daemon."
-fi
+%service fetchmail restart "fetchmail daemon"
%preun daemon
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/fetchmail ]; then
- /etc/rc.d/init.d/fetchmail stop >&2
- fi
+ %service fetchmail stop
/sbin/chkconfig --del fetchmail
fi