From cd41da1fe7709ba2db99f09d380024a00d8cf126 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 10 Sep 2010 17:52:37 +0000 Subject: [PATCH] - new, based on fc spec probaly worth to read also: http://www.chrisstreeter.com/archive/2009/04/305/gmail-imap-backup-with-mbsync-on-ubuntu Changed files: isync.spec -> 1.1 --- isync.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 isync.spec diff --git a/isync.spec b/isync.spec new file mode 100644 index 0000000..4cd636a --- /dev/null +++ b/isync.spec @@ -0,0 +1,57 @@ +# NOTE +# - new name will be probably mbsync, but project name still stays isync +Summary: Tool to synchronize IMAP4 and Maildir mailboxes +Name: isync +Version: 1.0.4 +Release: 1 +License: GPL v2+ +Group: Applications/Networking +URL: http://isync.sourceforge.net/ +Source0: http://downloads.sourceforge.net/isync/%{name}-%{version}.tar.gz +# Source0-md5: 8a836a6f4b43cd38a8b8153048417616 +Patch0: recursive_imap_ubuntu.patch +BuildRequires: db-devel +BuildRequires: iconv +BuildRequires: openssl-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +isync is a command line application which synchronizes mailboxes; +currently Maildir and IMAP4 mailboxes are supported. New messages, +message deletions and flag changes can be propagated both ways. isync +is suitable for use in IMAP-disconnected mode. + +%prep +%setup -q +%patch0 -p1 + +# Convert to utf-8 +for file in ChangeLog; do + mv $file timestamp + iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp + touch -r timestamp $file +done + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + INSTALL="install -p" \ + DESTDIR=$RPM_BUILD_ROOT + +rm -r $RPM_BUILD_ROOT%{_datadir}/doc/isync + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS NEWS README TODO ChangeLog src/mbsyncrc.sample src/compat/isyncrc.sample +%attr(755,root,root) %{_bindir}/isync +%attr(755,root,root) %{_bindir}/mbsync +%attr(755,root,root) %{_bindir}/mdconvert +%attr(755,root,root) %{_bindir}/get-cert +%{_mandir}/man1/* -- 2.44.0