From 4c61f4cd3ca4e4902ebd9793a87de8c43d482712 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jun 26 2015 13:07:33 +0000 Subject: Latest upstream. Port to python3. --- diff --git a/.gitignore b/.gitignore index a7b1d32..7d5dfb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /mailman3-fedmsg-plugin-0.1.1.tar.gz +/mailman3-fedmsg-plugin-0.2.tar.gz diff --git a/mailman3-fedmsg-plugin.spec b/mailman3-fedmsg-plugin.spec index bf64b34..92d3e82 100644 --- a/mailman3-fedmsg-plugin.spec +++ b/mailman3-fedmsg-plugin.spec @@ -1,8 +1,14 @@ %global modname mailman3_fedmsg_plugin +%if 0%{?fedora} +%{!?python3_pkgversion: %global python3_pkgversion 3} +%else +%{!?python3_pkgversion: %global python3_pkgversion 34} +%endif + Name: mailman3-fedmsg-plugin -Version: 0.1.1 -Release: 4%{?dist} +Version: 0.2 +Release: 1%{?dist} Summary: Emit fedmsg messages from mailman3 Group: Development/Libraries @@ -12,10 +18,10 @@ Source0: http://pypi.python.org/packages/source/m/%{name}/%{name}-%{v BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-setuptools +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools -Requires: fedmsg +Requires: python%{python3_pkgversion}-fedmsg-core %description Publish notifications about mails to the fedmsg bus. @@ -41,17 +47,22 @@ adding them to a 'mailman.excluded_lists' list in /etc/fedmsg.d/:: rm -rf %{modname}.egg-info %build -%{__python} setup.py build +%{__python3} setup.py build %install -%{__python} setup.py install -O1 --skip-build --root=%{buildroot} +%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} %files %doc README.rst LICENSE -%{python_sitelib}/%{modname}.py* -%{python_sitelib}/%{modname}-%{version}* +%{python3_sitelib}/%{modname}.py* +%{python3_sitelib}/%{modname}-%{version}* %changelog +* Fri Jun 26 2015 Ralph Bean - 0.2-1 +- new version +- port to python3 only. +- accomodate python34 on epel7. + * Wed Jun 17 2015 Fedora Release Engineering - 0.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index e711e7f..49043c7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7de6197125d367f706a9e90ba71902b2 mailman3-fedmsg-plugin-0.1.1.tar.gz +3420e478c1fff79b5c1b22791bdd398f mailman3-fedmsg-plugin-0.2.tar.gz