%define name imapsync %define version 1.142 %define release dm1 Summary: IMAP folder synchronisation tool Name: %{name} Version: %{version} Release: %{release} Source0: http://www.linux-france.org/prj/imapsync/dist/%{name}-%{version}.tgz Source1: %{name}-Makefile.PL.bz2 Copyright: GPL Group: Networking/Mail BuildRoot: %{_tmppath}/%{name}-buildroot BuildArchitectures: noarch Requires: perl-Mail-IMAPClient %description The command imapsync is a tool allowing incremental and recursive imap transfer from one mailbox to another. imapsync reduces the amount of data transfered by not transfering a given message if it is already on both sides. Same headers, same message size and the transfer is done only once. All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted. You can stop the transfer at any time and restart it later. %prep %setup bzcat %{SOURCE1} > Makefile.PL %build %__perl Makefile.PL INSTALLDIRS=vendor make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=%{buildroot} install rm -f %{buildroot}%{_libdir}/perl5/5.8.5/%{_arch}-linux-thread-multi/perllocal.pod rm -f %{buildroot}%{_libdir}/perl5/vendor_perl/5.8.5/%{_arch}-linux-thread-multi/auto/imapsync/.packlist %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog CREDITS FAQ GPL README %{_bindir}/%{name} %{_mandir}/man*/* %changelog * Fri Apr 28 2006 Michael Best 1.142-dm1 - change /usr/lib to %{_libdir} - change i386 to %{_arch} * Sun Nov 27 2005 Durval Menezes 1.142-dm1 - Update to 1.142 * Sun Mar 06 2005 Omar Kilani 1.121-1ts - Update to 1.121. - Initial tinysofa release. * Wed Jul 28 2004 Michael Brown 1.96-1fs - First packaged version