05c77e5
%global modname mailman3_fedmsg_plugin
05c77e5
05c77e5
Name:               mailman3-fedmsg-plugin
05c77e5
Version:            0.1.1
05c77e5
Release:            1%{?dist}
05c77e5
Summary:            Emit fedmsg messages from mailman3
05c77e5
05c77e5
Group:              Development/Libraries
05c77e5
License:            LGPLv2+
05c77e5
URL:                http://pypi.python.org/pypi/mailman3-fedmsg-plugin
05c77e5
Source0:            http://pypi.python.org/packages/source/m/%{name}/%{name}-%{version}.tar.gz
05c77e5
05c77e5
BuildArch:          noarch
05c77e5
05c77e5
BuildRequires:      python2-devel
05c77e5
BuildRequires:      python-setuptools
05c77e5
05c77e5
Requires:           fedmsg
05c77e5
05c77e5
%description
05c77e5
Publish notifications about mails to the fedmsg bus.
05c77e5
05c77e5
Enable this by adding the following to your mailman.cfg file::
05c77e5
05c77e5
    [archiver.fedmsg]
05c77e5
    # The class implementing the IArchiver interface.
05c77e5
    class: mailman_fedmsg_plugin.Archiver
05c77e5
    enable: yes
05c77e5
05c77e5
You can exclude certain lists from fedmsg publication by
05c77e5
adding them to a 'mailman.excluded_lists' list in /etc/fedmsg.d/::
05c77e5
05c77e5
    config = {
05c77e5
        'mailman.excluded_lists': ['bugzilla', 'commits'],
05c77e5
    }
05c77e5
05c77e5
%prep
05c77e5
%setup -q -n %{name}-%{version}
05c77e5
05c77e5
# Remove bundled egg-info in case it exists
05c77e5
rm -rf %{modname}.egg-info
05c77e5
05c77e5
%build
05c77e5
%{__python} setup.py build
05c77e5
05c77e5
%install
05c77e5
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
05c77e5
05c77e5
%files
05c77e5
%doc README.rst LICENSE
05c77e5
%{python_sitelib}/%{modname}.py*
05c77e5
%{python_sitelib}/%{modname}-%{version}*
05c77e5
05c77e5
%changelog
05c77e5
* Thu May 23 2013 Ralph Bean <rbean@redhat.com> - 0.1.1-1
05c77e5
- Initial package for Fedora