File maildirproc.spec of Package maildirproc
# vim: set sw=3 ts=3 noet:
# norootforbuild
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: maildirproc
Version: 0.5.0
Release: 0
Summary: Rule based Maildir Mail Box Processor
Source: http://joel.rosdahl.net/maildirproc/releases/maildirproc-python2-%{version}.tar.bz2
Source99: maildirproc-rpmlintrc
URL: http://joel.rosdahl.net/maildirproc/
Group: Productivity/Networking/Email/Utilities
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python python-devel
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%py_requires
%description
maildirproc is a program that processes one or several existing mail boxes in
the maildir format. It is primarily focused on mail sorting — i.e., 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
already delivered mail. And that's a feature, not a bug.
%prep
%setup -q -n "maildirproc-python2-%{version}"
%build
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
%clean
%__rm -rf "%{buildroot}"
%files -f files.lst
%defattr(-,root,root)
%doc LICENSE NEWS README doc/*