VMware-Photon-OS/SPECS/python-netaddr/python-netaddr.spec

76 lines
2.3 KiB
Plaintext

Name: python3-netaddr
Version: 0.8.0
Release: 3%{?dist}
Summary: A network address manipulation library for Python
License: BSD
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
URL: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
Source0: netaddr-%{version}.tar.gz
%define sha512 netaddr=a158bef87e862330c583f8b6709c4f575ec036dd31d725dad679e583ad4bef1a34f43225453bc93970ab720ae5f9f0fc2a6a3b92cbb922ed6f201414fd1e96d3
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-xml
%if 0%{?with_check}
BuildRequires: curl-devel
BuildRequires: openssl-devel
%endif
Requires: python3
BuildArch: noarch
%description
A network address manipulation library for Python
%prep
%autosetup -p1 -n netaddr-%{version}
%build
%py3_build
%install
%py3_install
mv %{buildroot}%{_bindir}/netaddr %{buildroot}%{_bindir}/netaddr3
%if 0%{?with_check}
%check
easy_install_3=$(ls %{_bindir} | grep easy_install | grep 3)
$easy_install_3 pytest
LANG=en_US.UTF-8 PYTHONPATH=./ python3 setup.py test
%endif
%files
%defattr(-,root,root,-)
%{_bindir}/netaddr3
%{python3_sitelib}/*
%changelog
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 0.8.0-3
- Bump version as a part of openssl upgrade
* Tue Sep 29 2020 Satya Naga Vasamsetty <svasamsetty@vmware.com> 0.8.0-2
- openssl 1.1.1
* Fri Jul 24 2020 Gerrit Photon <photon-checkins@vmware.com> 0.8.0-1
- Automatic Version Bump
* Fri Jun 19 2020 Tapas Kundu <tkudu@vmware.com> 0.7.19-7
- Mass removal python2
* Mon Dec 03 2018 Tapas Kundu <tkundu@vmware.com> 0.7.19-6
- Fixed make check.
* Tue Jul 25 2017 Divya Thaluru <dthaluru@vmware.com> 0.7.19-5
- Fixed test command and added patch to fix test issues.
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 0.7.19-4
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires.
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.7.19-3
- Separate python2 and python3 bindings
* Mon Mar 27 2017 Xiaolin Li <xiaolinl@vmware.com> 0.7.19-2
- Added python3 package.
* Fri Feb 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.7.19-1
- Initial version of python-netaddr package for Photon.