diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:01:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:01:02 +0000 |
commit | 0980602c71489090773dbc58fd45d41bbfac7f65 (patch) | |
tree | 1d7f15cd1a7e7a2d67d943742aad9b9c7a5ffeda | |
parent | 74138b9deffa90d4f69ea5a7f536865146f8ad61 (diff) |
automatic import of python-phonenumbers
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-phonenumbers.spec | 90 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/phonenumbers-8.13.7.tar.gz diff --git a/python-phonenumbers.spec b/python-phonenumbers.spec new file mode 100644 index 0000000..2ce3a31 --- /dev/null +++ b/python-phonenumbers.spec @@ -0,0 +1,90 @@ +%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 +[](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 +[](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 +[](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 <Python_Bot@openeuler.org> - 8.13.7-1 +- Package Spec generated @@ -0,0 +1 @@ +0ebb59e4f77871b373388679c9181687 phonenumbers-8.13.7.tar.gz |