From cca4513838831f12615958b13f4c98501100c2ac Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jan 31 2020 03:48:00 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..48da1ad --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pynetbox-4.2.4.tar.gz diff --git a/python-pynetbox.spec b/python-pynetbox.spec new file mode 100644 index 0000000..a457ea3 --- /dev/null +++ b/python-pynetbox.spec @@ -0,0 +1,53 @@ +%global srcname pynetbox + +Name: python-%{srcname} +Version: 4.2.4 +Release: 1%{?dist} +Summary: Python API client library for Netbox + +License: ASL 2.0 +URL: https://github.com/digitalocean/pynetbox +Source: %{pypi_source} + +BuildArch: noarch + +%global _description \ +%{summary}. + +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: (python3.8dist(requests) >= 2.20 with python3.8dist(requests) < 3) +BuildRequires: (python3.8dist(six) >= 1 with python3.8dist(six) < 2) + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{srcname}-%{version} +rm -vr *.egg-info + +%build +%py3_build + +%install +%py3_install +rm -vr %{buildroot}%{python3_sitelib}/tests + +%check +%python3 -m unittest discover + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md CHANGELOG.md +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-*.egg-info/ + +%changelog +* Thu Jan 30 2020 Igor Raits - 4.2.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7989a7f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pynetbox-4.2.4.tar.gz) = 0cff4ce0c8bdd4525a6cedb691ad2735aece567f4acb763b2421068ef0bc3f3264d037fda69c1d3f385b7fedc44e8e0b9b383e21214d13b5b9af91718f4e54a5