From b49d1ed8b2beb98890c53137a48c5dfddc497d26 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 25 2019 10:19:48 +0000 Subject: Update the spec file for python3 and the new code Signed-off-by: Pierre-Yves Chibon --- diff --git a/python-ci-resultsdb-listener.spec b/python-ci-resultsdb-listener.spec index c34b7da..fa1cf52 100644 --- a/python-ci-resultsdb-listener.spec +++ b/python-ci-resultsdb-listener.spec @@ -1,9 +1,9 @@ %global modname resultsdb_listener Name: python-ci-resultsdb-listener -Version: 0.3 +Version: 1.0 Release: 1%{?dist} -Summary: A fedmsg consumer that sents Atomic CI pipeline messages to resultsdb +Summary: A fedora-messaging consumer uploading results to resultsdb Group: Development/Libraries License: GPLv2+ @@ -12,15 +12,17 @@ Source0: https://releases.pagure.org/ci-resultsdb-listener/%{modname} BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: fedmsg +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-fedora-messaging -Requires: fedmsg +Requires: python3-fedora-messaging +Requires: python3-resultsdb_api %description -This application listens for messages sent by the Atomic CI pipeline running -in ci.centos.org and uploads the messages it sees to resultsdb. +This application listens for ci messages sent by ci.centos.org for Fedora +packages in the fedora-messaging message bus and upload their results to +resultsdb. %prep %setup -q -n %{modname}-%{version} @@ -29,14 +31,10 @@ in ci.centos.org and uploads the messages it sees to resultsdb. rm -rf %{modname}.egg-info %build -%{__python2} setup.py build +%{__python3} setup.py build %install -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} - -# Install the fedmsg config file -mkdir -p %{buildroot}%{_sysconfdir}/fedmsg.d/ -cp -p fedmsg.d/ci-resultsdb-listener.py %{buildroot}%{_sysconfdir}/fedmsg.d/ci-resultsdb-listener.py +%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} # Install the application config file mkdir -p %{buildroot}%{_sysconfdir}/ci-resultsdb-listener/ @@ -45,11 +43,10 @@ cp -p conf/listener.cfg.example %{buildroot}%{_sysconfdir}/ci-resultsdb-listener %files %doc README.rst %license LICENSE -%config(noreplace) %{_sysconfdir}/fedmsg.d/ci-resultsdb-listener.py* %config(noreplace) %{_sysconfdir}/ci-resultsdb-listener/listener.cfg -%{python2_sitelib}/%{modname}/* -%{python2_sitelib}/%{modname}-%{version}* +%{python3_sitelib}/%{modname}/* +%{python3_sitelib}/%{modname}-%{version}* %changelog