Summary: Library to handle international phone numbers
Summary(pl.UTF-8): Biblioteka do obsługi międzynarodowych numerów telefonów
Name: libphonenumber
-Version: 8.12.42
+Version: 8.13.8
Release: 1
License: Apache v2.0 with BSD parts
Group: Libraries
#Source0Download: https://github.com/google/libphonenumber/releases/
Source0: https://github.com/google/libphonenumber/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 8b071ea1d220018aa731d79794a00249
+# Source0-md5: 51d98312d1ea9287b9a008223314157d
Patch0: %{name}-link.patch
+Patch1: %{name}-no-fetch.patch
+Patch2: no-static.patch
URL: https://github.com/google/libphonenumber/
+BuildRequires: abseil-cpp-devel
BuildRequires: boost-devel >= 1.40.0
-BuildRequires: cmake >= 2.8.5
+BuildRequires: cmake >= 3.11
BuildRequires: gtest-devel
BuildRequires: jre
BuildRequires: libicu-devel >= 4.4
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 6:7
BuildRequires: pkgconfig
BuildRequires: protobuf-devel >= 2.4
%{?with_re2:BuildRequires: re2-devel}
+BuildRequires: rpmbuild(macros) >= 1.605
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
install -d build/cpp
%attr(755,root,root) %{_libdir}/libgeocoding.so
%attr(755,root,root) %{_libdir}/libphonenumber.so
%{_includedir}/phonenumbers
+%{_libdir}/cmake/libphonenumber
%if %{with static_libs}
%files static