diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 13:50:48 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 13:50:48 +0000 |
| commit | 27cb9dae3bd0d1b86a7eafb2a462fe2c2ae096a2 (patch) | |
| tree | d2e2357dafeed2772af8c818db1676ab3bf5e6ce | |
| parent | e111afdca873d95a23be68bbcb4f858cc0492e31 (diff) | |
automatic import of python-phonenumberslite
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-phonenumberslite.spec | 90 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/phonenumberslite-8.13.8.tar.gz diff --git a/python-phonenumberslite.spec b/python-phonenumberslite.spec new file mode 100644 index 0000000..2bdc33c --- /dev/null +++ b/python-phonenumberslite.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-phonenumberslite +Version: 8.13.8 +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/1d/11/2896a1303e44ac2fdb177a688120525beb308f370df781a72dfe280e6350/phonenumberslite-8.13.8.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-phonenumberslite +Summary: Python version of Google's common library for parsing, formatting, storing and validating international phone numbers. +Provides: python-phonenumberslite +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-phonenumberslite +[](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 phonenumberslite +Provides: python3-phonenumberslite-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 phonenumberslite-8.13.8 + +%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-phonenumberslite -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 8.13.8-1 +- Package Spec generated @@ -0,0 +1 @@ +150b3c3ecbcf35e8f670451241cde335 phonenumberslite-8.13.8.tar.gz |
