Compare commits
No commits in common. "a9" and "c10s" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/ifaddr-0.1.7.tar.gz
|
||||
/ifaddr-0.2.0.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
a74dd735a96427020774df550b997d1ad034743d SOURCES/ifaddr-0.1.7.tar.gz
|
@ -1,91 +0,0 @@
|
||||
%global srcname ifaddr
|
||||
%global _description \
|
||||
ifaddr is a small Python library that allows you to find all the IP addresses\
|
||||
of the computer.
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.1.7
|
||||
Release: 9%{?dist}
|
||||
Summary: Python library that allows you to find all the IP addresses of the computer
|
||||
|
||||
License: MIT
|
||||
URL: https://pypi.org/project/ifaddr/
|
||||
Source: %{pypi_source}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description -n python3-%{srcname} %{_description}
|
||||
|
||||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{srcname}/
|
||||
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.7-7
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.7-4
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat Jul 18 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 0.1.7-1
|
||||
- Update to 0.1.7
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-7
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-5
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-4
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Dec 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.6-1
|
||||
- Initial package
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
# recipients: abokovoy, frenaud, kaleem, ftrivino, rjeffman
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
59
python-ifaddr.spec
Normal file
59
python-ifaddr.spec
Normal file
@ -0,0 +1,59 @@
|
||||
%global srcname ifaddr
|
||||
%global _description \
|
||||
ifaddr is a small Python library that allows you to find all the IP addresses\
|
||||
of the computer.
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.2.0
|
||||
Release: 4%{?dist}
|
||||
Summary: Python library that allows you to find all the IP addresses of the computer
|
||||
|
||||
License: MIT
|
||||
URL: https://pypi.org/project/ifaddr
|
||||
Source: %{pypi_source}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description -n python3-%{srcname} %{_description}
|
||||
|
||||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{srcname}/
|
||||
%{python3_sitelib}/%{srcname}-*.egg-info/
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.2.0-4
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Sep 23 2024 Rafael Jeffman <rjeffman@redhat.com> - 0.2.0-3
|
||||
- Bump version for re-tagging due to beta release.
|
||||
Resolves: RHEL-39531
|
||||
|
||||
* Tue Sep 19 2024 Rafael Jeffman <rjeffman@redhat.com> - 0.2.0-2
|
||||
- Bump version for release rebuild.
|
||||
Resolves: RHEL-39531
|
||||
|
||||
* Mon Aug 26 2024 Rafael Jeffman <rjeffman@redhat.com> - 0.2.0-1
|
||||
- Inital RHEL import
|
||||
Resolves: RHEL-39531
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (ifaddr-0.2.0.tar.gz) = 02597c0fda81addebbc52893d2f1f5a5f1e99820360202652c433b4869f751901c0931a9fcf8cf0b1b4f1a95c438f238e5b1cfc84511785e7a2a42d5f81bb0d6
|
14
tests/test_ifaddr.py
Normal file
14
tests/test_ifaddr.py
Normal file
@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
import ifaddr
|
||||
|
||||
|
||||
def test_get_adapters():
|
||||
"""Test 'get_adapters' against 'lo' interface."""
|
||||
lo_ips = [
|
||||
n.ip if not isinstance(n.ip, tuple) else n.ip[0]
|
||||
for a in ifaddr.get_adapters() if a.name == "lo"
|
||||
for n in a.ips
|
||||
]
|
||||
assert "127.0.0.1" in lo_ips
|
||||
assert "::1" in lo_ips
|
13
tests/tests.yml
Normal file
13
tests/tests.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
required_packages:
|
||||
- python-ifaddr
|
||||
- python3-pytest
|
||||
tests:
|
||||
- unittests:
|
||||
dir: "."
|
||||
run: pytest-3 test_ifaddr.py
|
Loading…
Reference in New Issue
Block a user