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
11 BuildRequires: gtest-devel
12 BuildRequires: re2-devel
13 BuildRequires: protobuf-devel
14 BuildRequires: boost-devel
15 BuildRequires: pkgconfig(icu-i18n)
18 Google's common Java, C++ and Javascript library for parsing,
19 formatting, storing and validating international phone numbers. The
20 Java version is optimized for running on smartphones, and is used by
21 the Android framework since 4.0 (Ice Cream Sandwich).
24 Summary: Devel package for library
25 Group: Social & Content/Libraries
26 Requires: libphonenumber = %{version}
27 Requires: protobuf-devel
30 Google's common Java, C++ and Javascript library for parsing,
31 formatting, storing and validating international phone numbers. The
32 Java version is optimized for running on smartphones, and is used by
33 the Android framework since 4.0 (Ice Cream Sandwich).
36 %setup -q -n libphonenumber
39 cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir} cpp
41 # Parallel builds are broken and/or not supported by upstream, don't
42 # use them. The generated Makefile lacks the geocoding_data.cc ->
43 # generate_geocoding_data dependency and thus code generator may still
44 # be producing the file when the C++ compiler is already parsing it.
48 %{__make} DESTDIR=%{buildroot} install
49 rm %{buildroot}/%{_libdir}/*.a
51 %post -n libphonenumber -p /sbin/ldconfig
53 %postun -n libphonenumber -p /sbin/ldconfig
56 %files -n libphonenumber
57 %defattr(-, root, root, -)
60 %{_libdir}/libphonenumber.so.*
61 %{_libdir}/libgeocoding.so.*
64 %defattr(-, root, root, -)
65 %{_includedir}/phonenumbers
66 %{_libdir}/libphonenumber.so
67 %{_libdir}/libgeocoding.so