[CentOS-devel] imapsync: contributed RPM submission

Michael Best mbest at pendragon.org
Sat Apr 29 05:49:21 UTC 2006


Durval Menezes wrote:
> 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,

Thanks for the package.  To make it compatible with x86_64 I made some 
modifications.

-Mike
-------------- 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}%{_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 <mbest at pendragon.org> 1.142-dm1
- change /usr/lib to %{_libdir}
- change i386 to %{_arch}

* 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


More information about the CentOS-devel mailing list