diff --git a/.cvsignore b/.cvsignore index e69de29..bf7ef64 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +imapsync-1.249.tgz diff --git a/imapsync.spec b/imapsync.spec new file mode 100644 index 0000000..88a72c2 --- /dev/null +++ b/imapsync.spec @@ -0,0 +1,57 @@ +Name: imapsync +Summary: Tool to migrate email between IMAP servers +Version: 1.249 +Release: 1%{?dist} +License: GPLv2 +Group: Applications/Internet + +URL: http://freshmeat.net/projects/imapsync/ +Source: http://www.linux-france.org/prj/imapsync/dist/%{name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Test::Simple) +BuildRequires: perl(Mail::Box) +BuildRequires: perl(Mail::IMAPClient) +BuildRequires: perl(Date::Manip) + +%description +imapsync is a tool for facilitating incremental recursive IMAP +transfers from one mailbox to another. It is useful for mailbox migration, +and reduces the amount of data transferred by only copying messages that +are not present on both servers. Read, unread, and deleted flags are preserved, +and the process can be stopped and resumed. The original messages can +optionally be deleted after a successful transfer. + +%prep +%setup -q + +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} $* |\ + sed -e '/perl(--prefix2)/d' +EOF + +%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req +chmod +x %{__perl_requires} + +%build + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install DESTDIR="$RPM_BUILD_ROOT" +iconv -f iso-8859-1 -t utf-8 -o ChangeLog.utf8 ChangeLog && %{__mv} ChangeLog.utf8 ChangeLog +iconv -f iso-8859-1 -t utf-8 -o TODO.utf8 TODO && %{__mv} TODO.utf8 TODO + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc GPL ChangeLog CREDITS INSTALL TODO README FAQ +%{_bindir}/imapsync +%attr(644, root, root) %{_mandir}/man1/imapsync.1* + +%ChangeLog +* Thu Apr 10 2008 Marek Mahut - 1.249-1 +- Initial build. diff --git a/sources b/sources index e69de29..78e6a79 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5e0e4a65f2217101df6b90df3bc4d358 imapsync-1.249.tgz