diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6cdfe71 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/port-for-0.3.1.tar.gz +/port-for-0.4.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/python-port-for.spec b/python-port-for.spec new file mode 100644 index 0000000..6ed67a3 --- /dev/null +++ b/python-port-for.spec @@ -0,0 +1,74 @@ +%global pypi_name port-for +%global name_with_underscore port_for +%global sum Utility that helps with local TCP ports management + +Name: python-%{pypi_name} +Version: 0.4 +Release: 8%{?dist} +Summary: %{sum} + +License: MIT +URL: https://pypi.python.org/pypi/%{pypi_name} +Source0: https://pypi.python.org/packages/cd/68/57f6d5cae15125acc0f3e2a5117de5e2d83f4e96c4d97e088122557b3d70/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel + +%description +It can find an unused TCP local host port and remember the association. + +%package -n python3-%{pypi_name} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +It can find an unused TCP local host port and remember the association. + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install +mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/%{pypi_name}-3 + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE.txt +%{python3_sitelib}/%{name_with_underscore} +%{python3_sitelib}/%{name_with_underscore}-%{version}-py?.?.egg-info +%{_bindir}/%{pypi_name}-3 + +%changelog +* Mon Feb 25 2019 Miro Hrončok - 0.4-8 +- Subpackage python2-port-for has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 0.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.4-5 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.4-3 +- Fix creation of python2- subpackage + +* Thu Jul 27 2017 Fedora Release Engineering - 0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jul 21 2017 Sundeep Anand - 0.4-1 +- Update to upstream version 0.4 + +* Wed Jan 27 2016 Sundeep Anand - 0.3.1-2 +- Fix binary shebang in python3 package + +* Fri Jan 22 2016 Sundeep Anand - 0.3.1-1 +- Initial RPM Package diff --git a/sources b/sources new file mode 100644 index 0000000..38738ab --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (port-for-0.4.tar.gz) = 476b7273d868c84d7a0a6f49f93b4d0c8d4cd449adc800c7f587e5201d52234c89d6f768f9c20dbf61a55fc52d884146ab3b02db313ab2b4c6afd2f046b03c98