From d45db6d966034998f18350f22945c50fc4db21d4 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:22:27 +0100 Subject: [PATCH] package created using the webbuild interface [release 8.11.1-1mamba;Sat Jan 11 2020] --- README.md | 2 ++ libphonenumber.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 libphonenumber.spec diff --git a/README.md b/README.md index e1e87e3..9d62bb6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libphonenumber +Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. + diff --git a/libphonenumber.spec b/libphonenumber.spec new file mode 100644 index 0000000..6dcb134 --- /dev/null +++ b/libphonenumber.spec @@ -0,0 +1,75 @@ +Name: libphonenumber +Version: 8.11.1 +Release: 1mamba +Summary: Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/google/libphonenumber +## GITSOURCE https://github.com/google/libphonenumber.git v8.11.1 +Source: https://github.com/google/libphonenumber.git/v%{version}/libphonenumber-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libboost-devel +BuildRequires: libgcc +BuildRequires: libicu-devel +BuildRequires: libprotobuf-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build \ + ../cpp + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libgeocoding.so.* +%{_libdir}/libphonenumber.so.* +%doc AUTHORS LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/phonenumbers +%dir %{_includedir}/phonenumbers/base +%{_includedir}/phonenumbers/* +%{_libdir}/libgeocoding.a +%{_libdir}/libgeocoding.so +%{_libdir}/libphonenumber.a +%{_libdir}/libphonenumber.so +%doc README.md + +%changelog +* Sat Jan 11 2020 Silvan Calarco 8.11.1-1mamba +- package created using the webbuild interface