From 1e1d6721497056447057ed46cc54104ebd5ea830 Mon Sep 17 00:00:00 2001 From: Silvie Chlupova Date: Jul 29 2019 12:29:13 +0000 Subject: Initial import (#1730699). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8102cef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/copr-messaging-0.3.tar.gz diff --git a/copr-messaging.spec b/copr-messaging.spec new file mode 100644 index 0000000..16345e7 --- /dev/null +++ b/copr-messaging.spec @@ -0,0 +1,95 @@ +%global _description\ +Schemas for messages sent by Copr project, as described on \ +fedora-messaging documentation page \ +https://fedora-messaging.readthedocs.io/en/latest/messages.html#schema \ +\ +Package also provides several convenience methods for working with \ +copr messages. + +Name: copr-messaging +Version: 0.3 +Release: 1%{?dist} +Summary: Abstraction for Copr messaging listeners/publishers + +License: GPLv2+ +URL: https://pagure.io/copr/copr + +# Source is created by: +# git clone %url && cd copr +# tito build --tgz --tag %name-%version-%release +Source0: %name-%version.tar.gz + +BuildArch: noarch + +Requires: wget + + +BuildRequires: asciidoc +BuildRequires: libxslt +BuildRequires: util-linux + +BuildRequires: python3-copr-common +BuildRequires: python3-devel +BuildRequires: python3-fedora-messaging +BuildRequires: python3-pytest +BuildRequires: python3-sphinx + +%description %_description + + +%package -n python3-%name +Summary: %summary +Provides: %name = %version +%{?python_provide:%python_provide python3-%{name}} + +Requires: python3-copr-common +Requires: python3-fedora-messaging + +%description -n python3-%name %_description + +%package -n python3-%name-doc +Summary: Code documentation for copr messaging + +%description -n python3-%name-doc %_description + +This package contains documentation for copr-messaging. + + +%prep +%setup -q + + +%build +%py3_build +PYTHONPATH=${PWD} sphinx-build-3 docs html +rm -rf html/.{doctrees,buildinfo} + + +%install +%py3_install + + +%check +./runtests.sh + + +%files -n python3-%name +%license LICENSE +%doc README.md +%python3_sitelib/copr_messaging +%python3_sitelib/copr_messaging*egg-info + +%files -n python3-%name-doc +%license LICENSE +%doc html + + +%changelog +* Thu Jul 25 2019 Pavel Raiskup 0.3-1 +- mention how to create Source0 tarball + +* Wed Jul 24 2019 Pavel Raiskup 0.2-1 +- apply review fixes (by Silvie) + +* Wed Jul 17 2019 Pavel Raiskup 0.1-1 +- copr_messaging: new package for working with copr messages diff --git a/sources b/sources new file mode 100644 index 0000000..348437b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (copr-messaging-0.3.tar.gz) = 366ae2171c86bc2941c1f18517e449f907eb92c6dc35b5b26799ce2f5d1e213ce03a1c3f92032955d5b91a81d378fc582f9ac623ca969fd4356be8c055318955