Sync from SUSE:SLFO:Main libphonenumber revision 088436645412f065fc3d482e55ff680d

This commit is contained in:
Adrian Schröter 2024-05-03 15:28:57 +02:00
commit f7a6e70854
6 changed files with 184 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/google/libphonenumber.git</param>
<param name="scm">git</param>
<param name="revision">v8.12.23</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<!-- Contains binary .jars with legally questionable content -->
<param name="exclude">*/java/*</param>
</service>
<service name="set_version" mode="disabled" />
<service name="tar" mode="buildtime" />
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

BIN
libphonenumber-8.12.23.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

36
libphonenumber.changes Normal file
View File

@ -0,0 +1,36 @@
-------------------------------------------------------------------
Thu May 20 16:16:04 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to version 8.12.23:
* Updated phone metadata for region code(s): BF, CI, RW, SG, UG, US, UZ
* Updated short number metadata for region code(s): DZ
* New geocoding data for country calling code(s): 1572 (en)
* Updated geocoding data for country calling code(s): 225 (en)
* Updated carrier data for country calling code(s):
65 (en), 225 (en), 226 (en), 250 (en), 256 (en), 998 (en)
* Updated / refreshed time zone meta data
-------------------------------------------------------------------
Thu May 6 09:17:03 UTC 2021 - Fabian Vogt <fvogt@suse.com>
- Update to v8.12.22:
* See https://github.com/google/libphonenumber/blob/v8.12.22/release_notes.txt
-------------------------------------------------------------------
Tue Sep 22 13:16:46 UTC 2020 - Fabian Vogt <fvogt@suse.com>
- Update to v8.12.10:
* See https://github.com/google/libphonenumber/blob/v8.12.10/release_notes.txt
- The upstream repo and tarball include binary .jar archives with legally
questionable content. Switch to a _service and exclude those.
-------------------------------------------------------------------
Sat Sep 19 05:21:08 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v8.12.9
* see https://github.com/google/libphonenumber/blob/v8.12.9/release_notes.txt
-------------------------------------------------------------------
Wed Jul 24 08:27:42 UTC 2019 - Fabian Vogt <fabian@ritter-vogt.de>
- Initial commit for v8.10.15

5
libphonenumber.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: libphonenumber
version: 8.12.23
mtime: 1620724866
commit: 8767b3e904f2864c1874f3b8e39eeb8bca7d7238

100
libphonenumber.spec Normal file
View File

@ -0,0 +1,100 @@
#
# spec file for package libphonenumber
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: libphonenumber
Version: 8.12.23
Release: 0
%define lib_ver 8
%define lib_ver2 8.12
Summary: Library for parsing, formatting, and validating international phone numbers
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/google/libphonenumber
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: java
BuildRequires: libboost_date_time-devel
BuildRequires: libboost_system-devel
BuildRequires: libboost_thread-devel
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(icu-i18n) >= 4.4
BuildRequires: pkgconfig(icu-uc) >= 4.4
BuildRequires: pkgconfig(protobuf) >= 2.4
%description
Google's common Java, C++ and JavaScript library for parsing, formatting,
and validating international phone numbers.
%package -n %{name}%{lib_ver}
Summary: Library for parsing, formatting, and validating international phone numbers
Group: System/Libraries
%description -n %{name}%{lib_ver}
Google's common Java, C++ and JavaScript library for parsing, formatting,
and validating international phone numbers. The Java version is optimized
for running on smartphones, and is used by the Android framework since 4.0
(Ice Cream Sandwich).
%package devel
Summary: Library for parsing, formatting, and validating international phone numbers
Group: Development/Libraries/C and C++
Requires: %{name}%{lib_ver} = %{version}
Requires: pkgconfig(protobuf) >= 2.4
%description devel
Google's common Java, C++ and JavaScript library for parsing, formatting,
and validating international phone numbers. The Java version is optimized
for running on smartphones, and is used by the Android framework since 4.0
(Ice Cream Sandwich).
This package provides libraries and header files for developing applications
that use libphonenumber.
%prep
%autosetup -p1
%build
cd cpp
# Enabling the geocoder breaks quite a lot due to broken cmakelists
# (https://github.com/google/libphonenumber/pull/2556)
%cmake -DBUILD_STATIC_LIB=OFF -DBUILD_SHARED_LIB=ON -DBUILD_TESTING=ON -DBUILD_GEOCODER=OFF
%make_jobs
%install
cd cpp
%cmake_install
%check
cd cpp/build
%make_jobs tests
%post -n %{name}%{lib_ver} -p /sbin/ldconfig
%postun -n %{name}%{lib_ver} -p /sbin/ldconfig
%files -n %{name}%{lib_ver}
%license LICENSE*
%{_libdir}/libphonenumber.so.%{lib_ver}
%{_libdir}/libphonenumber.so.%{lib_ver2}
%files devel
%{_libdir}/libphonenumber.so
%{_includedir}/phonenumbers/
%changelog