X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=fetchmail.spec;h=e03b7a2aa0098e649ee04f34edc6db9475788762;hb=aca44bfe5e48e403e965e3442d10d442877101ab;hp=43d2ace126671cf844a8e5b1e4750cbd86f9b5a8;hpb=5ab4103d72b2ae17ab4389ff3e2f7bd3edc6d448;p=packages%2Ffetchmail.git diff --git a/fetchmail.spec b/fetchmail.spec index 43d2ace..e03b7a2 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -7,22 +7,27 @@ Summary(pl): Zdalny demon pocztowy do protoko Summary(pt): Busca mensagens de um servidor usando POP ou IMAP Summary(tr): POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý Name: fetchmail -Version: 5.5.6 +Version: 5.8.2 Release: 1 License: GPL +Vendor: Eric S. Raymond Group: Applications/Mail Group(de): Applikationen/Post Group(pl): Aplikacje/Poczta Group(pt): Aplicações/Correio Eletrônico -Vendor: Eric S. Raymond -Source0: ftp://locke.ccil.org/pub/esr/fetchmail/%{name}-%{version}.tar.gz +Source0: http://www.tuxedo.org/~esr/fetchmail/%{name}-%{version}.tar.gz Source1: %{name}conf.desktop Source2: %{name}.sysconfig Source3: %{name}.init +Source4: %{name}.logrotate +Patch0: %{name}-shroud.patch Icon: fetchmail.gif URL: http://www.tuxedo.org/~esr/fetchmail/ -BuildRequires: openssl-devel >= 0.9.4-2 +%{!?bcond_off_ssl:BuildRequires: openssl-devel >= 0.9.6a} BuildRequires: gettext-devel +BuildRequires: flex +BuildRequires: bison +BuildRequires: sed Requires: smtpdaemon Requires: setup >= 2.3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -117,7 +122,7 @@ Group: Applications/System Group(de): Applikationen/System Group(pl): Aplikacje/System Requires: %{name} = %{version} -Requires: rc-scripts >= 0.2.0 +Prereq: rc-scripts >= 0.2.0 %description daemon SySV init script for demonize fetchmail for sucking emails. @@ -127,11 +132,11 @@ SySV init skrypt do uruchamiania systemowego fetchmaila jako daemon. %prep %setup -q +%patch0 -p1 %build chmod -R u+w * gettextize --copy --force -CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -DSSL_ENABLE" %configure \ --enable-nls \ --without-included-gettext \ @@ -139,23 +144,30 @@ CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -DSSL_ENABLE" --enable-RPA \ --enable-NTLM \ --enable-SDPS \ - --with-ssl=%{_prefix} + %{!?bcond_off_ssl:--with-ssl=%{_prefix}} \ + %{?bcond_off_ssl:--without-ssl} \ + --without-kerberos %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_libdir}/rhs/control-panel \ $RPM_BUILD_ROOT%{_applnkdir}/Settings \ - $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} + $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ + $RPM_BUILD_ROOT/etc/logrotate.d %{__make} install DESTDIR=$RPM_BUILD_ROOT install rh-config/*.{xpm,init} $RPM_BUILD_ROOT%{_libdir}/rhs/control-panel install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Settings -install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail -install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail +install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/fetchmail +install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/fetchmail +install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} + +rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1 +ln -s fetchmail.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1 -gzip -9nf FEATURES README NEWS NOTES *.html FAQ +gzip -9nf FEATURES README NEWS NOTES ABOUT-NLS INSTALL README.NTLM *.html FAQ touch $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc @@ -166,7 +178,7 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc 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 fetchamil daemon." + echo "Run \"/etc/rc.d/init.d/fetchmail start\" to start fetchmail daemon." fi %preun daemon @@ -197,5 +209,6 @@ rm -rf $RPM_BUILD_ROOT %files daemon %defattr(644,root,root,755) %attr(600,root,root) %config(noreplace,missingok) %{_sysconfdir}/fetchmailrc -%attr(754,root,root) /etc/rc.d/init.d/fetchmail -%attr(640,root,root) %config(noreplace) /etc/sysconfig/fetchmail +%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/fetchmail +%attr(640,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/fetchmail +%attr(640,root,root) %{_sysconfdir}/logrotate.d/fetchmail