diff --git a/ephemeral-port-reserve.spec b/ephemeral-port-reserve.spec new file mode 100644 index 0000000..79ee925 --- /dev/null +++ b/ephemeral-port-reserve.spec @@ -0,0 +1,37 @@ +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 - 1.1.4-1 +- Package init \ No newline at end of file diff --git a/v1.1.4.tar.gz b/v1.1.4.tar.gz new file mode 100644 index 0000000..eec1b31 Binary files /dev/null and b/v1.1.4.tar.gz differ