%global _empty_manifest_terminate_build 0 Name: python-phonenumbers Version: 8.13.7 Release: 1 Summary: Python version of Google's common library for parsing, formatting, storing and validating international phone numbers. License: Apache License 2.0 URL: https://github.com/daviddrysdale/python-phonenumbers Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4e/fa/9f160f201eaef7df680dbf3740beba6006f020a4eaf7faced2e8e26eec6e/phonenumbers-8.13.7.tar.gz BuildArch: noarch %description [![Coverage Status](https://coveralls.io/repos/daviddrysdale/python-phonenumbers/badge.svg?branch=dev&service=github)](https://coveralls.io/github/daviddrysdale/python-phonenumbers?branch=dev) This is a Python port of [Google's libphonenumber library](https://github.com/google/libphonenumber) It supports Python 2.5-2.7 and Python 3.x (in the same codebase, with no [2to3](http://docs.python.org/2/library/2to3.html) conversion needed). Original Java code is Copyright (C) 2009-2015 The Libphonenumber Authors. Release [HISTORY](https://github.com/daviddrysdale/python-phonenumbers/blob/dev/python/HISTORY.md), derived from [upstream release notes](https://github.com/google/libphonenumber/blob/master/release_notes.txt). %package -n python3-phonenumbers Summary: Python version of Google's common library for parsing, formatting, storing and validating international phone numbers. Provides: python-phonenumbers BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-phonenumbers [![Coverage Status](https://coveralls.io/repos/daviddrysdale/python-phonenumbers/badge.svg?branch=dev&service=github)](https://coveralls.io/github/daviddrysdale/python-phonenumbers?branch=dev) This is a Python port of [Google's libphonenumber library](https://github.com/google/libphonenumber) It supports Python 2.5-2.7 and Python 3.x (in the same codebase, with no [2to3](http://docs.python.org/2/library/2to3.html) conversion needed). Original Java code is Copyright (C) 2009-2015 The Libphonenumber Authors. Release [HISTORY](https://github.com/daviddrysdale/python-phonenumbers/blob/dev/python/HISTORY.md), derived from [upstream release notes](https://github.com/google/libphonenumber/blob/master/release_notes.txt). %package help Summary: Development documents and examples for phonenumbers Provides: python3-phonenumbers-doc %description help [![Coverage Status](https://coveralls.io/repos/daviddrysdale/python-phonenumbers/badge.svg?branch=dev&service=github)](https://coveralls.io/github/daviddrysdale/python-phonenumbers?branch=dev) This is a Python port of [Google's libphonenumber library](https://github.com/google/libphonenumber) It supports Python 2.5-2.7 and Python 3.x (in the same codebase, with no [2to3](http://docs.python.org/2/library/2to3.html) conversion needed). Original Java code is Copyright (C) 2009-2015 The Libphonenumber Authors. Release [HISTORY](https://github.com/daviddrysdale/python-phonenumbers/blob/dev/python/HISTORY.md), derived from [upstream release notes](https://github.com/google/libphonenumber/blob/master/release_notes.txt). %prep %autosetup -n phonenumbers-8.13.7 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-phonenumbers -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Mar 09 2023 Python_Bot - 8.13.7-1 - Package Spec generated