5 Summary: A library for manipulating international phone numbers
6 Url: http://code.google.com/p/libphonenumber/
7 Group: Social & Content/Libraries
8 Source: libphonenumber-%{version}.tgz
10 %if "%{?tizen_profile_name}" == "tv"
11 ExcludeArch: %{arm} %ix86 x86_64
14 BuildRequires: gcc-c++
16 BuildRequires: gtest-devel
17 BuildRequires: re2-devel
18 BuildRequires: protobuf-devel
19 BuildRequires: boost-devel
20 BuildRequires: pkgconfig(icu-i18n)
23 Google's common Java, C++ and Javascript library for parsing,
24 formatting, storing and validating international phone numbers. The
25 Java version is optimized for running on smartphones, and is used by
26 the Android framework since 4.0 (Ice Cream Sandwich).
29 Summary: Devel package for library
30 Group: Social & Content/Libraries
31 Requires: libphonenumber = %{version}
32 Requires: protobuf-devel
35 Google's common Java, C++ and Javascript library for parsing,
36 formatting, storing and validating international phone numbers. The
37 Java version is optimized for running on smartphones, and is used by
38 the Android framework since 4.0 (Ice Cream Sandwich).
41 %setup -q -n libphonenumber
44 cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir} cpp
46 # Parallel builds are broken and/or not supported by upstream, don't
47 # use them. The generated Makefile lacks the geocoding_data.cc ->
48 # generate_geocoding_data dependency and thus code generator may still
49 # be producing the file when the C++ compiler is already parsing it.
53 %{__make} DESTDIR=%{buildroot} install
54 rm %{buildroot}/%{_libdir}/*.a
55 # Exported header has dependency on lock_posix.h but lock_posix.h is not installed.
56 cp cpp/src/phonenumbers/base/synchronization/lock_posix.h %{buildroot}/%{_includedir}/phonenumbers/base/synchronization/
58 %post -n libphonenumber -p /sbin/ldconfig
60 %postun -n libphonenumber -p /sbin/ldconfig
63 %files -n libphonenumber
64 %defattr(-, root, root, -)
67 %{_libdir}/libphonenumber.so.*
68 %{_libdir}/libgeocoding.so.*
71 %defattr(-, root, root, -)
72 %{_includedir}/phonenumbers
73 %{_libdir}/libphonenumber.so
74 %{_libdir}/libgeocoding.so