[CentOS-devel] imapsync: contributed RPM submission

Sun Apr 2 13:31:58 UTC 2006
Durval Menezes <durval at tmp.com.br>

Hello,

Here's my submission for a new package: imapsync, a imap mailbox
synchronizer that's very useful for migrating imap accounts.

The URL to the SRPM is: 
	http://www.durval.com.br/RPMS/el4/imapsync/imapsync-1.142-dm1.src.rpm

I've attached the .spec file.

Best Regards,
-- 
   Durval Menezes (durval AT tmp DOT com DOT br, http://www.tmp.com.br/)
-------------- next part --------------
%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}/usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
rm -f %{buildroot}/usr/lib/perl5/vendor_perl/5.8.5/i386-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
* Sun Nov 27 2005 Durval Menezes <durval AT tmp DOT com DOT br> 1.142-dm1
- Update to 1.142

* Sun Mar 06 2005 Omar Kilani <omar at tinysofa.org> 1.121-1ts
- Update to 1.121.
- Initial tinysofa release.

* Wed Jul 28 2004 Michael Brown <mbrown at fensystems.co.uk> 1.96-1fs
- First packaged version