Add BSD-2.0 license at spec file
[platform/upstream/libphonenumber.git] / packaging / libphonenumber.spec
index 6afa9d2..dbb330d 100644 (file)
@@ -1,11 +1,16 @@
 Name:           libphonenumber
-Version:        6.2.2
+Version:        7.0.6
 Release:        1
-License:        Apache-2.0
+License:        Apache-2.0 and BSD-2.0
 Summary:        A library for manipulating international phone numbers
 Url:            http://code.google.com/p/libphonenumber/
 Group:          Social & Content/Libraries
 Source:         libphonenumber-%{version}.tgz
+
+%if "%{?tizen_profile_name}" == "tv"
+ExcludeArch: %{arm} %ix86 x86_64
+%endif
+
 BuildRequires:  gcc-c++
 BuildRequires:  cmake
 BuildRequires:  gtest-devel
@@ -47,6 +52,8 @@ cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LI
 %install
 %{__make} DESTDIR=%{buildroot} install
 rm %{buildroot}/%{_libdir}/*.a
+# Exported header has dependency on lock_posix.h but lock_posix.h is not installed.
+cp cpp/src/phonenumbers/base/synchronization/lock_posix.h %{buildroot}/%{_includedir}/phonenumbers/base/synchronization/
 
 %post   -n libphonenumber -p /sbin/ldconfig
 
@@ -57,10 +64,8 @@ rm %{buildroot}/%{_libdir}/*.a
 %defattr(-, root, root, -)
 %doc AUTHORS
 %license LICENSE
-%{_libdir}/libphonenumber.so.6
-%{_libdir}/libphonenumber.so.6.2
-%{_libdir}/libgeocoding.so.6
-%{_libdir}/libgeocoding.so.6.2
+%{_libdir}/libphonenumber.so.*
+%{_libdir}/libgeocoding.so.*
 
 %files devel
 %defattr(-, root, root, -)