Package archivemail: Specfile

%def_disable check

Name: archivemail
Version: 0.9.0
Release: alt3

Summary: Archive and compress old email
License: GPLv2+
Group: File tools

BuildArch: noarch

Url: http://archivemail.sourceforge.net/

Source0: %name-%version.tar
Patch: %name-%version-%release.patch

BuildPreReq: python-modules python-devel tidy xsltproc
BuildPreReq: docbook-style-xsl

%description 
archivemail is a tool written in python(1) for archiving and compressing
old email in mailboxes. By default it will read the mailbox MAILBOX,
moving messages that are older that the specified number of days (180 by
default) to a mbox-format mailbox in the same directory that is
compressed with gzip(1).

archivemail supports reading IMAP, Maildir, MH and mbox-format mailboxes, but
it will always write archive files to mbox-format mailboxes that are compressed
with gzip(1).

%prep
%setup
%patch -p1

%check
./test_archivemail

%build
%make doc

%install
#mkdir -p %buildroot{%_bindir,%_man1dir}
#install -p -m755 %name %buildroot%_bindir/%name
#install -p -m644 %name.1 %buildroot%_man1dir
%python_build_install

rm %buildroot%python_sitelibdir/archivemail-*.egg-info

%files
%_bindir/*
%_man1dir/*
%doc CHANGELOG FAQ NEWS README TODO test_archivemail examples/

%changelog
* Sat Apr 27 2019 Vitaly Lipatov <lav@altlinux.ru> 0.9.0-alt3
- disable check

* Tue Mar 26 2019 Vitaly Lipatov <lav@altlinux.ru> 0.9.0-alt2
- fix build: apply patch from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724043

* Wed Sep 03 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1
- Version 0.9.0

* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.8.0-alt1.1
- Rebuild with Python-2.7

* Wed Aug 11 2010 Andrey Rahmatullin <wrar@altlinux.org> 0.8.0-alt1
- 0.8.0
- re-enable tests (and move them to %%check)

* Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.7.2-alt2.1
- Rebuilt with python 2.6

* Sat Mar 22 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.7.2-alt2
- disable tests

* Sun Nov 11 2007 Andrey Rahmatullin <wrar@altlinux.ru> 0.7.2-alt1
- 0.7.2
- remove manual Requires

* Sun Nov 05 2006 Andrey Rahmatullin <wrar@altlinux.ru> 0.7.0-alt1
- 0.7.0

* Wed Aug 23 2006 Andrey Rahmatullin <wrar@altlinux.ru> 0.6.2-alt1
- 0.6.2

* Sat Jun 10 2006 Andrey Rahmatullin <wrar@altlinux.ru> 0.6.1-alt0.1
- initial build