## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 %global srcname shortuuid Name: python-%{srcname} Version: 1.0.13 Release: %autorelease Summary: A generator library for concise, unambiguous and URL-safe UUIDs License: BSD-3-Clause URL: https://github.com/skorokithakis/shortuuid Source0: %{pypi_source %{srcname}} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools # Test dependencies: BuildRequires: python3dist(django) BuildRequires: python3dist(pytest) # shortuuid.django_fields generates UUIDs for Django Enhances: python3dist(django) %global _description %{expand: shortuuid is a simple python library that generates concise, unambiguous, URL-safe UUIDs. Often, one needs to use non-sequential IDs in places where users will see them, but the IDs must be as concise and easy to use as possible. shortuuid solves this problem by generating uuids using Python's built-in uuid module and then translating them to base57 using lowercase and uppercase letters and digits, and removing similar-looking characters such as l, 1, I, O and 0.} %description %{_description} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %description -n python%{python3_pkgversion}-%{srcname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} # this file is wrongly copied rm %{buildroot}%{python3_sitelib}/COPYING %check %pytest -V %files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files} %license COPYING %doc README.md %{_bindir}/shortuuid %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.0.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.0.13-2 - Rebuilt for Python 3.13 * Mon Mar 11 2024 Packit - 1.0.13-1 - Update to 1.0.13 - Resolves rhbz#2269074 * Wed Mar 06 2024 Michel Lind - 1.0.12-2 - Fix test run, upstream no longer ships setup.py * Wed Mar 06 2024 Packit - 1.0.12-1 - Update to 1.0.12 - Resolves rhbz#2267121 * Mon Mar 04 2024 Michel Lind - 1.0.11-6 - Enable packit * Fri Jan 26 2024 Fedora Release Engineering - 1.0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 1.0.11-2 - Rebuilt for Python 3.12 * Mon Feb 27 2023 Michel Alexandre Salim - 1.0.11-1 - Update to 1.0.11 - Convert license declaration to SPDX * Fri Jan 20 2023 Fedora Release Engineering - 1.0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Oct 06 2022 Michel Alexandre Salim - 1.0.9-1 - Update to 1.0.9 * Fri Jul 22 2022 Fedora Release Engineering - 1.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 1.0.8-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 10 2021 Michel Alexandre Salim - 1.0.8-1 - Update to 1.0.8 - Adjust spec for latest packaging guidelines - Opt in to rpmautospec * Fri Jun 04 2021 Python Maint - 1.0.1-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.0.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.0.1-2 - Rebuilt for Python 3.9 * Sat Mar 07 2020 Peter Robinson - 1.0.1-1 - Update to 1.0.1 * Fri Mar 06 2020 Peter Robinson - 1.0.0-1 - Update to 1.0.0 * Thu Jan 30 2020 Fedora Release Engineering - 0.5.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.5.0-11 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.5.0-10 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 0.5.0-7 - 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.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.5.0-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 30 2018 Iryna Shcherbina - 0.5.0-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 1 2017 Peter Robinson 0.5.0-1 - Update to 0.5.0 * Sat Feb 11 2017 Fedora Release Engineering - 0.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Jan 7 2017 Peter Robinson 3.0.1-1 - initial packaging ## END: Generated by rpmautospec