diff --git a/python-phonenumbers-8.12.6.tar.gz b/python-phonenumbers-8.12.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..017e56d899eb5a7f9ee5e9e6aa0639169b57eead Binary files /dev/null and b/python-phonenumbers-8.12.6.tar.gz differ diff --git a/python-phonenumbers.spec b/python-phonenumbers.spec new file mode 100644 index 0000000000000000000000000000000000000000..750ddacd0a4d26cc4a9010f40c4d30c5969e87c5 --- /dev/null +++ b/python-phonenumbers.spec @@ -0,0 +1,124 @@ +%global pypi_name phonenumbers + +%global desc A Python port of libphonenumber, Google's common Java, C++, and\ +JavaScript library for parsing, formatting, and validating international phone\ +numbers.\ + + +Name: python-%{pypi_name} +Version: 8.12.6 +Release: 1 +Summary: A Python port of Google's libphonenumber + +License: ASL 2.0 +URL: https://github.com/daviddrysdale/%{name} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch + +%description +%{desc} + + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{desc} + + +%prep +%autosetup + +# Snip the #! from the util.py module +sed -i -e '/^#!\//, 1d' python/%{pypi_name}/util.py + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-*.egg-info + + +%changelog +* Thu Jul 9 2021 hannannan - 8.12.6-1 +- init package + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +