2be56ab379
Compressed manpages have different extension than those listed in the RECORD file, so they were not recognized when %%pyproject_save_files '+auto' flag was provided. To enable the path recognition, if the manpage extension matches the one listed in brp-compres, the extension is removed, and an asterisk is now added to the manpages filenames. Source: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_manpages Related: rhbz#1950291
51 lines
975 B
RPMSpec
51 lines
975 B
RPMSpec
Name: python-getmac
|
|
Version: 0.8.3
|
|
Release: 0%{?dist}
|
|
Summary: Get MAC addresses of remote hosts and local interfaces
|
|
License: MIT
|
|
URL: https://github.com/GhostofGoes/getmac
|
|
Source0: %{pypi_source getmac}
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
|
|
%global _description %{expand:
|
|
Test that manpages are correctly processed by %%pyproject_save_files '*' +auto.}
|
|
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-getmac
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-getmac %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n getmac-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires -r
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files '*' +auto
|
|
|
|
|
|
%check
|
|
%pyproject_check_import
|
|
# Internal check for our macros, assert there is a manpage:
|
|
test -f %{buildroot}%{_mandir}/man1/getmac.1*
|
|
|
|
|
|
%files -n python3-getmac -f %{pyproject_files}
|
|
|