%global pkgname fedora-messaging %global srcname fedora_messaging %global desc \ Tools and APIs to make working with AMQP in Fedora easier. %{?python_enable_dependency_generator} Name: %{pkgname} Version: 3.4.1 Release: 3%{?dist} Summary: Set of tools for using Fedora's messaging infrastructure License: GPLv2+ URL: https://github.com/fedora-infra/fedora-messaging Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-blinker BuildRequires: python3-click BuildRequires: python3-crochet BuildRequires: python3-jsonschema BuildRequires: python3-toml BuildRequires: python3-twisted BuildRequires: python3-pytz BuildRequires: python3-pyOpenSSL BuildRequires: python3-pika BuildRequires: python3-service-identity # For testing BuildRequires: python3-pytest #BuildRequires: python3-pytest-twisted BuildRequires: python3-sphinx Requires: python3-%{pkgname} = %{version}-%{release} BuildRequires: systemd-rpm-macros %description %{desc} %package -n python3-%{pkgname} Summary: %{summary} %description -n python3-%{pkgname} %{desc} %package doc Summary: Documentation for %{pkgname} %description doc Documentation for %{pkgname}. %prep %autosetup -n %{srcname}-%{version} %build %py3_build # generate docs PYTHONPATH=${PWD} sphinx-build-3 -M html -d docs/_build/doctrees docs docs/_build/html PYTHONPATH=${PWD} sphinx-build-3 -M man -d docs/_build/doctrees docs docs/_build/man # remove the sphinx-build leftovers rm -rf docs/_build/*/.buildinfo %install %py3_install install -D -p -m 644 config.toml.example $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/config.toml install -D -p -m 644 configs/fedora.toml $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.toml install -D -p -m 644 configs/fedora.stg.toml $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg.toml install -D -p -m 644 configs/cacert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/cacert.pem # Yes, this is supposed to be a world-readable private key. It's for public Fedora broker access. install -D -p -m 644 configs/fedora-key.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora-key.pem install -D -p -m 644 configs/fedora-cert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora-cert.pem install -D -p -m 644 configs/stg-cacert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/stg-cacert.pem install -D -p -m 644 configs/fedora.stg-key.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg-key.pem install -D -p -m 644 configs/fedora.stg-cert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg-cert.pem install -D -p -m 644 docs/_build/man/fedora-messaging.1 $RPM_BUILD_ROOT%{_mandir}/man1/fedora-messaging.1 install -D -p -m 644 fm-consumer@.service $RPM_BUILD_ROOT%{_unitdir}/fm-consumer@.service %check #export PYTHONPATH=. #pytest-3 -vv %files %license LICENSE %doc README.rst %dir %{_sysconfdir}/fedora-messaging/ %config(noreplace) %{_sysconfdir}/fedora-messaging/config.toml %config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.toml %config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg.toml %config(noreplace) %{_sysconfdir}/fedora-messaging/cacert.pem %config(noreplace) %{_sysconfdir}/fedora-messaging/fedora-key.pem %config(noreplace) %{_sysconfdir}/fedora-messaging/fedora-cert.pem %config(noreplace) %{_sysconfdir}/fedora-messaging/stg-cacert.pem %config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg-key.pem %config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg-cert.pem %{_mandir}/man1/%{name}.* %{_bindir}/%{name} %{_unitdir}/fm-consumer@.service %files -n python3-%{pkgname} %license LICENSE %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-*.egg-info %files doc %license LICENSE %doc README.rst docs/*.rst docs/_build/html docs/sample_schema_package %changelog * Wed Jul 19 2023 Fedora Release Engineering - 3.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Python Maint - 3.4.1-2 - Rebuilt for Python 3.12 * Fri May 26 2023 Packit - 3.4.1-1 - Version 3.4.1 (Aurélien Bompard) - Fix CI for python 3.6, again (Aurélien Bompard) - Fix CI for python 3.6, again (Aurélien Bompard) - Fix CI on python 3.6 (Aurélien Bompard) - Fix integration tests after eba336ba (Aurélien Bompard) * Fri Mar 31 2023 Packit - 3.3.0-1 - Version 3.3.0 (Aurélien Bompard) - Add a Github action to update pre-commit linters (Aurélien Bompard) - Update pre-commit linters (Aurélien Bompard) - Add koji-fedoramessaging-messages in the known schemas list (Aurélien Bompard) - Update linters (Aurélien Bompard) - Add support for asyncio-based callbacks in the consumer (Aurélien Bompard) - Improve documentation (Aurélien Bompard) - Upgrade the github action for integration tests (Aurélien Bompard) - Add a `message.load_message()` function (Aurélien Bompard) * Thu Jan 19 2023 Fedora Release Engineering - 3.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Oct 17 2022 Packit - 3.2.0-5 - Version 3.2.0 (Aurélien Bompard) - Use tomllib from the standard library on Python 3.11 (Miro Hrončok) - Support for message priorities (Aurélien Bompard) - CI: run the checks with fedora-python's tox action (Aurélien Bompard) - Add a clear way to deprecate message schemas (Aurélien Bompard) * Tue Sep 13 2022 Packit - 3.1.0-5 - Version 3.1.0 (Aurélien Bompard) - Use the new `app_name` property in the schema documentation (Aurélien Bompard) - Add the `app_name` and `agent_name` properties to message schemas (Aurélien Bompard) - add groups property to message (Erol Keskin) - Add the CI message schemas (Aurélien Bompard) - Schema docs: handle Google-style docstrings (Aurélien Bompard) - Fix docs configuration (Aurélien Bompard) - Schema docs: fix the venv activation to exclude system-site-packages (Aurélien Bompard) - Add upstream version format (Akashdeep Dhar) - Fix changelog generation with towncrier (Aurélien Bompard) - Fix changelog (Aurélien Bompard) * Sun Jul 31 2022 Maxwell G - 3.0.2-5 - Remove python3-mock BR - Preserve mtimes * Thu Jul 21 2022 Fedora Release Engineering - 3.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 3.0.2-3 - Rebuilt for Python 3.11 * Mon May 23 2022 Packit - 3.0.2-2 - prep for release of 3.0.2 (Stephen Coady) - Correct sync list, add issue repo and version info (Akashdeep Dhar) - Remove fixi for rstcheck in Github CI (Aurélien Bompard) - Fix CI for real this time (Aurélien Bompard) - Ignore weird RST warnings in CI for now (Aurélien Bompard) - Fix formatting with Black (Aurélien Bompard) - Update pre-commit checkers (Aurélien Bompard) - Fix Github actions (Aurélien Bompard) * Thu May 12 2022 Packit - 3.0.1-2 - prep for the release of 3.0.1 (Stephen Coady) - Added Packit configuration (#259) (Akashdeep Dhar) - Add a badge for the tests status (Aurélien Bompard) - Adjust to a message change in Python 3.10 (Aurélien Bompard) - Change the example email addresses (Aurélien Bompard) - Add some schema packages to the docs (Aurélien Bompard) - Add copr-messaging to the known schemas (Aurélien Bompard) - Don't build universal wheels since we don't run on Python 2 anymore (Aurélien Bompard) - Improve the mergify config (Aurélien Bompard) * Thu Jan 20 2022 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 04 2022 Aurelien Bompard - 3.0.0-1 - Update to 3.0.0 * Wed Jul 21 2021 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.1.0-2 - Rebuilt for Python 3.10 * Wed May 12 2021 Aurelien Bompard - 2.1.0-1 - Update to 2.1.0 * Tue Jan 26 2021 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 04 2020 Aurelien Bompard - 2.0.2-1 - Update to 2.0.2 * Mon Jul 27 2020 Fedora Release Engineering - 2.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 2.0.1-3 - Rebuilt for Python 3.9 * Tue Jan 28 2020 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jan 03 2020 Aurelien Bompard - 2.0.1-1 - Update to 2.0.1 * Tue Dec 03 2019 Aurelien Bompard - 2.0.0-1 - Update to 2.0.0 - Until pytest-twisted is packaged, disable the tests in %%check. * Tue Sep 03 2019 Kevin Fenzi - 1.7.2-1 - Update to 1.7.2. Fixes bug #1742459 * Mon Aug 19 2019 Miro Hrončok - 1.7.1-3 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 1.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 25 2019 Jeremy Cline - 1.7.1-1 - Update to v1.7.1 * Wed Jun 19 2019 Pavel Raiskup - 1.7.0-3 - install sample schema documentation cited by https://fedora-messaging.readthedocs.io/en/latest/tutorial/schemas.html * Mon Jun 10 2019 Jeremy Cline - 1.7.0-2 - Include the stage config and credentials * Tue May 21 2019 Jeremy Cline - 1.7.0-1 - Update to v1.7.0 * Wed Apr 17 2019 Jeremy Cline - 1.6.1-1 - Update to v1.6.1 * Thu Apr 04 2019 Jeremy Cline - 1.6.0-1 - Update to v1.6.0 * Thu Mar 07 2019 Aurelien Bompard - 1.5.0-2 - Add the Systemd service template file. * Thu Jan 31 2019 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 24 2019 Jeremy Cline - 1.3.0-1 - Update to v1.3.0 * Mon Jan 21 2019 Jeremy Cline - 1.2.0-1 - Update to v1.2.0 * Thu Nov 15 2018 Jeremy Cline - 1.1.0-1 - Update to v1.1.0 * Wed Oct 10 2018 Jeremy Cline - 1.0.1-1 - Update to v1.0.1 * Wed Oct 10 2018 Jeremy Cline - 1.0.0-1 - Update to v1.0.0 * Fri Sep 07 2018 Jeremy Cline - 1.0.0-0.2b1 - Move dependency generator macro to top of file - Depend on version + release for the library - Add python_provide macro * Wed Aug 29 2018 Jeremy Cline - 1.0.0-0.1b1 - Update to 1.0.0b1 - Drop Python 2 package for Rawhide * Wed Aug 15 2018 Aurelien Bompard - 1.0.0-0.1.a1 - Initial package