# Created by pyp2rpm-3.3.5 %global pypi_name pcicrawler %global common_description %{expand: pcicrawler is a CLI tool to display/filter/export information about PCI or PCI Express devices and their topology.} Name: python-%{pypi_name} Version: 1.0.0 Release: 13%{?dist} Summary: Display/filter/export information about PCI or PCI Express devices License: MIT URL: https://github.com/facebook/pcicrawler Source0: %{pypi_source} BuildArch: noarch BuildRequires: sed BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description %{common_description} %package -n %{pypi_name} Summary: %{summary} %if 0%{?fedora} == 32 || 0%{?rhel} == 8 %py_provides python3-%{pypi_name} %endif %description -n %{pypi_name} %{common_description} %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # Remove unnecessary shebang sed -e '\|#!/usr/bin/env python|d' -i */*.py %build %py3_build %install %py3_install %files -n %{pypi_name} %doc README.md %{_bindir}/pcicrawler %{python3_sitelib}/pci_lib %{python3_sitelib}/pci_vpd_lib %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1.0.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.0.0-12 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.0.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.0.0-8 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.0.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.0.0-2 - Rebuilt for Python 3.10 * Thu Mar 11 2021 Davide Cavalca - 1.0.0-1 - Initial package.