## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 9; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without tests %global srcname tweepy %global forgeurl https://github.com/tweepy/tweepy Version: 4.7.0 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Python interface to the Twitter API License: MIT URL: %forgeurl Source0: %forgesource # NOTE(mhayden): Temporary workaround until RHBZ#2067264 is fixed. Patch0: tweepy-allow-older-oauthlib.patch BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: Python interface to the Twitter API.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %pyproject_extras_subpkg -n python3-%{srcname} async socks %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-t} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files tweepy %if %{with tests} %check %tox %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc *.md examples %changelog ## START: Generated by rpmautospec * Fri Jan 26 2024 Fedora Release Engineering - 4.7.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 4.7.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 4.7.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Python Maint - 4.7.0-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 4.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 4.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 15 2022 Python Maint - 4.7.0-3 - Rebuilt for Python 3.11 * Wed Mar 23 2022 Major Hayden - 4.7.0-2 - Add comment about patch * Wed Mar 23 2022 Major Hayden - 4.7.0-1 - Initial import (#2043173) ## END: Generated by rpmautospec