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
fb71549
Release:            20%{?dist}
05c77e5
Summary:            Emit fedmsg messages from mailman3
05c77e5
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
fb71549
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-20
fb71549
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
fb71549
62c58a2
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-19
62c58a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
62c58a2
b8156b0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5-18
b8156b0
- Rebuilt for Python 3.10
b8156b0
87fd7f4
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-17
87fd7f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
87fd7f4
86826df
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-16
86826df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
86826df
1ef3395
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5-15
1ef3395
- Rebuilt for Python 3.9
1ef3395
55ce528
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-14
55ce528
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
55ce528
46be764
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5-13
46be764
- Rebuilt for Python 3.8.0rc1 (#1748018)
46be764
0d48d73
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5-12
0d48d73
- Rebuilt for Python 3.8
0d48d73
70e9be2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-11
70e9be2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
70e9be2
8587bfc
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-10
8587bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8587bfc
a1a617a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-9
a1a617a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a1a617a
2837577
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5-8
2837577
- Rebuilt for Python 3.7
2837577
a9ca6b4
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-7
a9ca6b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a9ca6b4
57bb611
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-6
57bb611
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
57bb611
f09fbb2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-5
f09fbb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f09fbb2
8f4cbbd
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5-4
8f4cbbd
- Rebuild for Python 3.6
8f4cbbd
a1ab08c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
a1ab08c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
a1ab08c
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