05c77e5
%global modname mailman3_fedmsg_plugin
05c77e5
4c61f4c
%if 0%{?fedora}
4c61f4c
%{!?python3_pkgversion: %global python3_pkgversion 3}
4c61f4c
%else
4c61f4c
%{!?python3_pkgversion: %global python3_pkgversion 34}
4c61f4c
%endif
4c61f4c
05c77e5
Name:               mailman3-fedmsg-plugin
43d4b76
Version:            0.5
48a5e86
Release:            2%{?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
4c61f4c
BuildRequires:      python%{python3_pkgversion}-devel
4c61f4c
BuildRequires:      python%{python3_pkgversion}-setuptools
05c77e5
4c61f4c
Requires:           python%{python3_pkgversion}-fedmsg-core
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
4c61f4c
%{__python3} setup.py build
05c77e5
05c77e5
%install
4c61f4c
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
05c77e5
05c77e5
%files
05c77e5
%doc README.rst LICENSE
4c61f4c
%{python3_sitelib}/%{modname}.py*
4ab047b
%{python3_sitelib}/__pycache__/%{modname}*
4c61f4c
%{python3_sitelib}/%{modname}-%{version}*
05c77e5
05c77e5
%changelog
48a5e86
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
48a5e86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
48a5e86
43d4b76
* Tue Jan 26 2016 Ralph Bean <rbean@redhat.com> - 0.5-1
edfb0a3
- new version
edfb0a3
edfb0a3
* Tue Jan 26 2016 Ralph Bean <rbean@redhat.com> - 0.5-1
43d4b76
- new version
43d4b76
679e690
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
679e690
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
679e690
c2a6729
* Mon Jun 29 2015 Ralph Bean <rbean@redhat.com> - 0.4-1
c2a6729
- new version
c2a6729
33d1702
* Mon Jun 29 2015 Ralph Bean <rbean@redhat.com> - 0.3-1
33d1702
- new version
33d1702
4c61f4c
* Fri Jun 26 2015 Ralph Bean <rbean@redhat.com> - 0.2-1
4c61f4c
- new version
4c61f4c
- port to python3 only.
4c61f4c
- accomodate python34 on epel7.
4c61f4c
48b3bcc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-4
48b3bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
48b3bcc
d141f18
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
d141f18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d141f18
4f53640
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-2
4f53640
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4f53640
05c77e5
* Thu May 23 2013 Ralph Bean <rbean@redhat.com> - 0.1.1-1
05c77e5
- Initial package for Fedora