]> git.pld-linux.org Git - packages/fetchmail.git/blobdiff - fetchmail.spec
- update to rc7; adapterized
[packages/fetchmail.git] / fetchmail.spec
index 25855e7a4244bb00f14bae98764be246c25c7006..bf13a7857f0f7914f8728f7a54a3110138e1f258 100644 (file)
@@ -1,3 +1,8 @@
+#
+# Conditional build:
+%bcond_without ssl     # build without SSL support
+%bcond_without ipv6    # build without IPv6 support
+#
 Summary:       Remote mail fetch daemon for POP2, POP3, APOP, IMAP
 Summary(da):   Alsidig POP/IMAP post-afhentnings dæmon
 Summary(de):   Dämon zum Laden entfernter Mail (POP2, POP3, APOP, IMAP)
@@ -8,28 +13,28 @@ Summary(pt): Busca mensagens de um servidor usando POP ou IMAP
 Summary(ru):   õÔÉÌÉÔÁ ÉÚ×ÌÅÞÅÎÉÑ ÐÏÞÔÙ Ó ÕÄÁÌÅÎÎÏÊ ÍÁÛÉÎÙ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
 Summary(tr):   POP2, POP3, APOP, IMAP protokolleri ile uzaktan mektup alma yazýlýmý
 Summary(uk):   õÔÉ̦ÔÁ ÏÔÒÉÍÁÎÎÑ ÐÏÛÔɠڠצÄÄÁÌÅÎϧ ÍÁÛÉÎÉ ÐÏ ÐÒÏÔÏËÏÌÁÍ POP/IMAP
-Summary(zh_CN): ¹¦ÄÜÇ¿´óµÄ POP/IMAP µç×ÓÓʼþÊÕÈ¡ÊØ»¤½ø³Ì
+Summary(zh_CN):        ¹¦ÄÜÇ¿´óµÄ POP/IMAP µç×ÓÓʼþÊÕÈ¡ÊØ»¤½ø³Ì
 Name:          fetchmail
-Version:       6.1.2
-Release:       1
+Version:       6.2.9
+%define        _rc     rc7
+%define        _rel    1
+Release:       0.%{_rc}.%{_rel}
 License:       GPL
-Vendor:                Eric S. Raymond <esr@thyrsus.com>
 Group:         Applications/Mail
-Source0:       http://www.tuxedo.org/~esr/fetchmail/%{name}-%{version}.tar.gz
+Source0:       http://download.berlios.de/fetchmail/%{name}-%{version}-%{_rc}.tar.bz2
+# Source0-md5: 6a2b96b2e0661353582f88b8fd3eb6d9
 Source1:       %{name}conf.desktop
 Source2:       %{name}.sysconfig
 Source3:       %{name}.init
 Source4:       %{name}.logrotate
-Patch0:                %{name}-shroud.patch
-Patch1:                %{name}-po_updates.patch
-Patch2:                %{name}-pl.po-update.patch
 Icon:          fetchmail.gif
-URL:           http://www.tuxedo.org/~esr/fetchmail/
+URL:           http://fetchmail.berlios.de/
 BuildRequires: automake
 BuildRequires: bison
 BuildRequires: flex
 BuildRequires: gettext-devel
-%{!?_without_ssl:BuildRequires:        openssl-devel >= 0.9.6a}
+%{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
+BuildRequires: rpmbuild(macros) >= 1.219
 Requires:      setup >= 2.3
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -118,9 +123,9 @@ Summary(pt):        Um configurador gr
 Summary(ru):   çÒÁÆÉÞÅÓËÁÑ ÕÔÉÌÉÔÁ ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ÐÒÅÄÐÏÞÔÅÎÉÊ ÄÌÑ fetchmail
 Summary(uk):   çÒÁƦÞÎÁ ÕÔÉ̦ÔÁ ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÐÏÄÏÂÁÎØ ÄÌÑ fetchmail
 Group:         Applications/System
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 Requires:      python
-Requires:      tkinter
+Requires:      python-tkinter
 
 %description -n fetchmailconf
 A GUI configurator for generating fetchmail configuration file written
@@ -140,60 +145,58 @@ Um configurador gr
 para o fetchmail.
 
 %description -n fetchmailconf -l ru
-Fetchmailconf - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÎÁ TCL/TK ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ×ÁÛÅÇÏ ÆÁÊÌÁ
+Fetchmailconf - ÜÔÏ ÐÒÏÇÒÁÍÍÁ ÎÁ Tcl/Tk ÄÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ ×ÁÛÅÇÏ ÆÁÊÌÁ
 ÐÒÅÄÐÏÞÔÅÎÉÊ ~/.fetchmailrc.
 
 %description -n fetchmailconf -l uk
-Fetchmailconf - ÃÅ ÐÒÏÇÒÁÍÁ ÎÁ TCL/TK ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÁÛÏÇÏ ÆÁÊÌÁ
+Fetchmailconf - ÃÅ ÐÒÏÇÒÁÍÁ ÎÁ Tcl/Tk ÄÌÑ ËÏÎƦÇÕÒÁ槠×ÁÛÏÇÏ ÆÁÊÌÁ
 ×ÐÏÄÏÂÁÎØ ~/.fetchmailrc.
 
 %package daemon
 Summary:       SysV init script for demonize fetchmail for sucking emails
 Summary(pl):   Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona
 Group:         Applications/System
-Requires:      %{name} = %{version}
-PreReq:                rc-scripts >= 0.2.0
-PreReq:                /sbin/chkconfig
+Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name} = %{version}-%{release}
+Requires:      rc-scripts
 
 %description daemon
 SysV init script for demonize fetchmail for sucking emails.
 
 %description daemon -l pl
-Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako demona.
+Skrypt startowy SysV do uruchamiania systemowego fetchmaila jako
+demona.
 
 %prep
-%setup -q
-chmod -R u+w *
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%setup -q -n %{name}-%{version}-%{_rc}
 
 %build
 cp -f /usr/share/automake/config.* .
 %configure \
        --enable-nls \
        --without-included-gettext \
-       --enable-inet6 \
+       %{?with_ipv6:--enable-inet6} \
        --enable-RPA \
        --enable-NTLM \
        --enable-SDPS \
-       %{!?_without_ssl:--with-ssl=%{_prefix}} \
-       %{?_without_ssl:--without-ssl} \
+       %{?with_ssl:--with-ssl=%{_prefix}} \
+       %{!?with_ssl:--without-ssl} \
        --without-kerberos
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_applnkdir}/Settings \
+install -d $RPM_BUILD_ROOT%{_desktopdir} \
        $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
        $RPM_BUILD_ROOT/etc/logrotate.d
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Settings
-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}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/fetchmail
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/fetchmail
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
 echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
@@ -202,6 +205,8 @@ echo ".so fetchmail.1" > $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1
 
 %find_lang %{name}
 
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -223,19 +228,20 @@ fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc FEATURES README NEWS NOTES ABOUT-NLS INSTALL README.NTLM *.html FAQ
+%doc FEATURES README NEWS NOTES README.NTLM *.html FAQ
 %attr(755,root,root) %{_bindir}/fetchmail
 %{_mandir}/man1/fetchmail.1*
 
 %files -n fetchmailconf
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/fetchmailconf
-%{_applnkdir}/Settings/fetchmailconf.desktop
+%{_desktopdir}/fetchmailconf.desktop
 %{_mandir}/man1/fetchmailconf.1*
+%{py_sitescriptdir}/*.py[co]
 
 %files daemon
 %defattr(644,root,root,755)
-%attr(600,root,root) %config(noreplace,missingok) %{_sysconfdir}/fetchmailrc
-%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
+%attr(600,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/fetchmailrc
+%attr(754,root,root) /etc/rc.d/init.d/fetchmail
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/fetchmail
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/fetchmail
This page took 0.071236 seconds and 4 git commands to generate.