37 lines
1001 B
RPMSpec
37 lines
1001 B
RPMSpec
Name: ephemeral-port-reserve
|
|
Version: 1.1.4
|
|
Release: 1
|
|
Summary: Bind to an ephemeral port, force it into the TIME_WAIT state, and unbind it.
|
|
License: MIT
|
|
URL: https://github.com/Yelp/ephemeral-port-reserve
|
|
Source0: https://github.com/Yelp/%{name}/archive/refs/tags/v%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-pip python3-wheel python3-flit
|
|
|
|
# Provide the python3-* namespace as the package
|
|
# can also be used as a library.
|
|
Provides: python3-ephemeral-port-reserve
|
|
|
|
%description
|
|
Bind to an ephemeral port, force it into the TIME_WAIT state, and unbind it.
|
|
|
|
%prep
|
|
%autosetup -p1 -n ephemeral-port-reserve-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n ephemeral-port-reserve
|
|
%{_bindir}/ephemeral-port-reserve
|
|
%{python3_sitelib}/*
|
|
%doc README.md
|
|
|
|
%changelog
|
|
* Wed May 17 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.1.4-1
|
|
- Package init |