%global tag .infinidat %global python3_pkgversion 3.11 %global __python3 /usr/bin/python%{python3_pkgversion} %global srcname infi.dtypes.nqn %global pkgname infi-dtypes-nqn Name: python%{python3_pkgversion}-%{pkgname} Version: 0.1.0 Release: 1%{?tag}%{?dist} Summary: NQN datatype NVMe-oF Group: Applications/System License: Python Vendor: Infinidat URL: https://github.com/Infinidat/%{srcname} Source: %{pypi_source} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-rpm-macros BuildRequires: python%{python3_pkgversion}dist(pip) BuildRequires: python%{python3_pkgversion}dist(setuptools) %description NQN datatype in Python Datatype for NVMe-oF NQN in Python. %prep %autosetup -n %{srcname}-%{version} rm -rf %{srcname}.egg-info curl -fsSLO https://raw.githubusercontent.com/python/cpython/main/LICENSE curl -fsSLO https://raw.githubusercontent.com/Infinidat/%{srcname}/v0.1/README.md %build %py3_build %install %py3_install %files %license LICENSE %doc README.md %{python3_sitelib}/infi/dtypes/nqn %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}-nspkg.pth %changelog * Fri Apr 11 2025 Alexander Deiter - 0.1.0-1 - Initial RPM release