加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-ipgetter2.spec 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
liuliang_ml 提交于 2021-07-07 11:35 . Package init
Name: python-ipgetter2
Version: 1.1.11
Release: 1
Summary: Python library to fetch your external IP address
License: Apache-2.0
URL: https://github.com/starofrainnight/ipgetter2
Source0: https://github.com/starofrainnight/ipgetter2/archive/1.1.11/ipgetter2-1.1.11.zip
BuildArch: noarch
%description
Utility to fetch your external IP address. This module is designed to fetch
your external IP address from the internet. It is used mostly when behind
a NAT. It picks your IP randomly from a server list to minimize request
overhead on a single server.
%package -n python3-ipgetter2
Summary: Python library to fetch your external IP address
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest-runner
%{?python_provide:%python_provide python3-ipgetter2}
%description -n python3-ipgetter2
Python library to fetch your external IP address. This module is designed to
fetch your external IP address from the internet. It is used mostly when behind
a NAT. It picks your IP randomly from a server list to minimize request
overhead on a single server.
%package -n ipgetter2
Summary: Utility to fetch your external IP address
Requires: python3-ipgetter2 = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n ipgetter2
Utility to fetch your external IP address.
%prep
%autosetup -n ipgetter2-%{version}
rm -rf ipgetter2.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-ipgetter2
%license LICENSE
%doc README.rst CONTRIBUTING.rst HISTORY.rst AUTHORS.rst
%{python3_sitelib}/ipgetter2
%exclude %{python3_sitelib}/tests
%{python3_sitelib}/ipgetter2-%{version}-py*.egg-info
%files -n ipgetter2
%{_bindir}/ipgetter2
%changelog
* Wed Jul 7 2021 liuliang <liuliang1@kylinos.cn> - 1.1.11-1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化