diff options
author | Ken Dreyer <kdreyer@redhat.com> | 2019-02-25 17:01:34 -0700 |
---|---|---|
committer | Ken Dreyer <kdreyer@redhat.com> | 2019-02-25 17:04:03 -0700 |
commit | 6a0794772aea61a73e46962a5e982d7533e1d3a3 (patch) | |
tree | 274d955c9bef066a695cb94bd9206e3aae77c853 | |
download | python-portend-master.tar.gz python-portend-master.tar.xz python-portend-master.zip |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-portend.spec | 52 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47dd471 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/portend-2.3.tar.gz diff --git a/python-portend.spec b/python-portend.spec new file mode 100644 index 0000000..81eff18 --- /dev/null +++ b/python-portend.spec @@ -0,0 +1,52 @@ +%global pypi_name portend + +Name: python-%{pypi_name} +Version: 2.3 +Release: 1%{?dist} +Summary: TCP port monitoring utilities +License: MIT +URL: https://github.com/jaraco/portend +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3dist(pytest) >= 3.5 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools-scm) >= 1.15.0 +BuildRequires: python3dist(tempora) >= 1.8 + +%global _description\ +Use portend to monitor TCP ports for bound or unbound states. + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} + +sed -i 's/--flake8//' pytest.ini +sed -i 's/--doctest-modules//' pytest.ini + +%build +SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%{py3_build} + +%install +%{py3_install} + +%check +py.test-%{python3_version} -v + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Mon Feb 25 2019 Ken Dreyer <kdreyer@redhat.com> - 2.3-1 +- Initial package. @@ -0,0 +1 @@ +SHA512 (portend-2.3.tar.gz) = eb438c9967bd1540534bc9deb5bdb8b7ed41c7328aeee0c9376b00018ec6c07773c0d782efe3f460cf6e68bd4d899bceedf0c581dd29080cd3fe44a3a17b0004 |