libphonenumber/libphonenumber.spec

82 lines
2.3 KiB
RPMSpec

Name: libphonenumber
Version: 8.12.3
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 <silvan.calarco@mambasoft.it>
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
* Tue Jun 02 2020 Automatic Build System <autodist@mambasoft.it> 8.12.3-1mamba
- automatic version update by autodist
* Sun Mar 08 2020 Automatic Build System <autodist@mambasoft.it> 8.11.5-1mamba
- automatic version update by autodist
* Sat Jan 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 8.11.1-1mamba
- package created using the webbuild interface