Accepting request 718164 from home:Vogtinator:ktrip
New package, used in the future OBS-URL: https://build.opensuse.org/request/show/718164 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libphonenumber?expand=0&rev=1
This commit is contained in:
commit
934e5dbb86
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
libphonenumber-8.10.15.tar.gz
Normal file
3
libphonenumber-8.10.15.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8f73ce45f4075935b46532ba64cab64dfcb73c8e4a411cba4885de4e0e46593f
|
||||
size 7300463
|
4
libphonenumber.changes
Normal file
4
libphonenumber.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 24 08:27:42 UTC 2019 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
- Initial commit
|
99
libphonenumber.spec
Normal file
99
libphonenumber.spec
Normal file
@ -0,0 +1,99 @@
|
||||
#
|
||||
# spec file for package libphonenumber
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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.10.15
|
||||
Release: 0
|
||||
%define lib_ver 8
|
||||
%define lib_ver2 8.10
|
||||
Summary: Library for parsing, formatting, and validating international phone numbers
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: https://github.com/google/libphonenumber
|
||||
Source0: https://github.com/google/libphonenumber/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
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
|
||||
%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
|
Loading…
x
Reference in New Issue
Block a user