%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: maildirproc
Version: 0.4.3
Release: 1%{?dist}
Summary: Sort mail from mail boxes in the maildir format
Group: Applications/Internet
License: GPLv2+
URL: http://joel.rosdahl.net/maildirproc/
Source0: http://joel.rosdahl.net/maildirproc/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
%description
maildirproc is a program that processes one or several existing mail boxes in
the maildir format. It is primarily focused on mail sorting, which means
moving, copying, forwarding, and deleting mail according to a set of rules.
It can be seen as an alternative to procmail, but instead of being a delivery
agent (which wants to be part of the delivery chain), maildirproc only
processes mail which has already been delivered. That is a feature, not a bug.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE NEWS README doc/*
%{_bindir}/%{name}
%{python_sitelib}/%{name}-%{version}-*.egg-info
%changelog
* Mon May 03 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.3-1
- Update to 0.4.3
* Sun Apr 11 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.2-1
- Initial package