From 6a0794772aea61a73e46962a5e982d7533e1d3a3 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 25 Feb 2019 17:01:34 -0700 Subject: initial package --- .gitignore | 1 + python-portend.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 python-portend.spec create mode 100644 sources 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 - 2.3-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..8df5086 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (portend-2.3.tar.gz) = eb438c9967bd1540534bc9deb5bdb8b7ed41c7328aeee0c9376b00018ec6c07773c0d782efe3f460cf6e68bd4d899bceedf0c581dd29080cd3fe44a3a17b0004 -- cgit