1 Star 0 Fork 17

src-oepkgs-oE-rv/python-netaddr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-netaddr.spec 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
Name: python-netaddr
Version: 0.8.0
Release: 1
Summary: A pure Python network address representation and manipulation library
License: BSD
URL: http://github.com/drkjam/netaddr
Source0: https://pypi.python.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools python3-sphinx python3-pytest
%description
A network address manipulation library for Python
Provides support for:
Layer 3 addresses
* dealing with various ranges formats (CIDR, arbitrary ranges and globs, nmap)
* parsing a large variety of different formats and notations
Layer 2 addresses
* generating derived IPv6 addresses
%package -n python3-netaddr
Summary: A pure Python network address representation and manipulation library
%{?python_provide:%python_provide python3-netaddr}
%description -n python3-netaddr
Based on Python3 network address representation and operation library Package
%prep
%autosetup -n netaddr-%{version} -p1
sed -i 's/\r//' netaddr/*.py netaddr/ip/*.py netaddr/eui/*.idx
find netaddr -name "*.py" | xargs sed -i -e '1 {/^#!\//d}'
%build
%py3_build
#docs
cd docs
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source html
PYTHONPATH='../' sphinx-build-%{python3_version} -b html -d build/doctrees source python3/html
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-netaddr
%license COPYRIGHT
%doc AUTHORS CHANGELOG README.rst docs/python3/html
%{python3_sitelib}/*
%{_bindir}/netaddr
%changelog
* Thu Jul 15 2021 huangtianhua <[email protected]> - 0.8.0-1
- Upgrade to 0.8.0 to support OpenStack-W
* Mon Aug 10 2020 lingsheng<[email protected]> - 0.7.19-15
- Remove python2-netaddr subpackage
* Fri Feb 14 2020 gulining<[email protected]> - 0.7.19-14
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-oepkgs-oe-rv/python-netaddr.git
[email protected]:src-oepkgs-oe-rv/python-netaddr.git
src-oepkgs-oe-rv
python-netaddr
python-netaddr
master

搜索帮助