%if 0%{?fedora} %global with_python3 1 %endif %{!?_licensedir: %global license %%doc} %if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %endif %global modname zanata2fedmsg %global sum A web app bridging zanata webhooks to fedmsg Name: python-zanata2fedmsg Version: 0.2 Release: 32%{?dist} Summary: %{sum} # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: http://pypi.python.org/pypi/zanata2fedmsg Source0: https://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools %endif %description %{sum} %if 0%{?with_python3} %package -n python3-%{modname} Summary: %{sum} %{?python_provide:%python_provide python3-%{modname}} Requires: python3-flask Requires: python3-fedmsg %description -n python3-%{modname} %{sum} %endif %prep %autosetup -n %{modname}-%{version} %build %if 0%{?with_python3} %py3_build %endif %install %if 0%{?with_python3} %py3_install %endif # This is just a dev tool. Don't package it. rm %{buildroot}/%{_bindir}/zanata2fedmsg-webhook-generator.py %if 0%{?with_python3} %files -n python3-%{modname} %doc README.rst %license COPYING %{python3_sitelib}/%{modname}.py* %{python3_sitelib}/%{modname}-%{version}* %{python3_sitelib}/__pycache__/*%{modname}* %endif %changelog * Fri Jul 26 2024 Miroslav Suchý - 0.2-32 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.2-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.2-30 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.2-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.2-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.2-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.2-26 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.2-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.2-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.2-23 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.2-20 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.2-17 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.2-15 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.2-14 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 10 2018 Miro Hrončok - 0.2-11 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.2-9 - Rebuilt for Python 3.7 * Mon Feb 12 2018 Iryna Shcherbina - 0.2-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Sep 12 2017 Jeremy Cline - 0.2-6 - Update the dependency on fedmsg to use python2-fedmsg and python3-fedmsg * Thu Jul 27 2017 Fedora Release Engineering - 0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.2-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.2-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Feb 22 2016 Ralph Bean - 0.1-1 - Initial package for Fedora