|
Lines 30-37
BuildRequires: protobuf-compiler
Link Here
|
| 30 |
BuildRequires: libprotobuf-devel |
30 |
BuildRequires: libprotobuf-devel |
| 31 |
# required libabseil-cpp built with -DCMAKE_POSITION_INDEPENDENT_CODE=ON |
31 |
# required libabseil-cpp built with -DCMAKE_POSITION_INDEPENDENT_CODE=ON |
| 32 |
BuildRequires: libabseil-cpp-devel >= 20211102.0-alt3 |
32 |
BuildRequires: libabseil-cpp-devel >= 20211102.0-alt3 |
| 33 |
BuildRequires: /proc /dev/pts /usr/bin/java |
33 |
BuildRequires: /proc /dev/pts |
| 34 |
#BuildRequires: /usr/bin/mvn junit mockito |
34 |
BuildRequires(pre): rpm-macros-java |
|
|
35 |
BuildRequires: java-21-openjdk-devel |
| 36 |
BuildRequires: maven-local |
| 37 |
BuildRequires: mvn(junit:junit) |
| 38 |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) |
| 39 |
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin) |
| 40 |
BuildRequires: mvn(org.mockito:mockito-core) |
| 35 |
%{?_enable_boost:BuildRequires: boost-devel} |
41 |
%{?_enable_boost:BuildRequires: boost-devel} |
| 36 |
%{?_enable_check:BuildRequires: ctest libgtest-devel} |
42 |
%{?_enable_check:BuildRequires: ctest libgtest-devel} |
| 37 |
|
43 |
|
|
Lines 49-54
Requires: %name = %EVR
Link Here
|
| 49 |
The %name-devel package contains libraries and header files for |
55 |
The %name-devel package contains libraries and header files for |
| 50 |
developing applications that use %name. |
56 |
developing applications that use %name. |
| 51 |
|
57 |
|
|
|
58 |
%package java |
| 59 |
Summary: Java library for international phone numbers |
| 60 |
Group: Development/Java |
| 61 |
BuildArch: noarch |
| 62 |
|
| 63 |
%description java |
| 64 |
Google's Java library for parsing, formatting and validating phone numbers. |
| 65 |
|
| 66 |
%package java-prefixmapper |
| 67 |
Summary: Phone number prefix mappings for libphonenumber |
| 68 |
Group: Development/Java |
| 69 |
BuildArch: noarch |
| 70 |
|
| 71 |
%description java-prefixmapper |
| 72 |
Shared prefix lookups for carrier mapping and offline geocoding. |
| 73 |
|
| 74 |
%package java-carrier |
| 75 |
Summary: Phone number carrier mapping for libphonenumber |
| 76 |
Group: Development/Java |
| 77 |
BuildArch: noarch |
| 78 |
|
| 79 |
%description java-carrier |
| 80 |
Looks up the original carrier associated with a phone number prefix. |
| 81 |
|
| 82 |
%package java-geocoder |
| 83 |
Summary: Offline phone number geocoder for libphonenumber |
| 84 |
Group: Development/Java |
| 85 |
BuildArch: noarch |
| 86 |
|
| 87 |
%description java-geocoder |
| 88 |
Looks up a geographic description for a phone number. |
| 89 |
|
| 90 |
%package java-javadoc |
| 91 |
Summary: API documentation for the libphonenumber Java libraries |
| 92 |
Group: Development/Documentation |
| 93 |
BuildArch: noarch |
| 94 |
|
| 95 |
%description java-javadoc |
| 96 |
API documentation for the libphonenumber Java libraries. |
| 97 |
|
| 52 |
%prep |
98 |
%prep |
| 53 |
%setup -n %name-%version/cpp |
99 |
%setup -n %name-%version/cpp |
| 54 |
%patch1 -b .link |
100 |
%patch1 -b .link |
|
Lines 60-65
developing applications that use %name.
Link Here
|
| 60 |
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt |
106 |
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt |
| 61 |
%endif |
107 |
%endif |
| 62 |
|
108 |
|
|
|
109 |
pushd ../java |
| 110 |
%pom_disable_module demo |
| 111 |
%pom_remove_plugin org.sonatype.central:central-publishing-maven-plugin |
| 112 |
%pom_remove_plugin :maven-source-plugin |
| 113 |
%pom_remove_plugin :maven-javadoc-plugin |
| 114 |
# The Animal Sniffer check requires an unavailable Java 5 signature. |
| 115 |
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin \ |
| 116 |
carrier geocoder internal/prefixmapper libphonenumber |
| 117 |
popd |
| 118 |
|
| 63 |
%build |
119 |
%build |
| 64 |
# since abseil-cpp-20260107.1 |
120 |
# since abseil-cpp-20260107.1 |
| 65 |
%add_optflags -Wno-error=deprecated-declarations |
121 |
%add_optflags -Wno-error=deprecated-declarations |
|
Lines 72-80
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt
Link Here
|
| 72 |
%nil |
128 |
%nil |
| 73 |
%cmake_build |
129 |
%cmake_build |
| 74 |
|
130 |
|
|
|
131 |
pushd ../java |
| 132 |
%mvn_package :libphonenumber-parent java |
| 133 |
%mvn_package :libphonenumber java |
| 134 |
%mvn_package :libphonenumber:jar:no-metadata java |
| 135 |
%mvn_package :prefixmapper java-prefixmapper |
| 136 |
%mvn_package :carrier java-carrier |
| 137 |
%mvn_package :geocoder java-geocoder |
| 138 |
%mvn_build -s |
| 139 |
popd |
| 140 |
|
| 75 |
%install |
141 |
%install |
| 76 |
%cmake_install |
142 |
%cmake_install |
| 77 |
|
143 |
|
|
|
144 |
pushd ../java |
| 145 |
%mvn_install |
| 146 |
popd |
| 147 |
|
| 78 |
%check |
148 |
%check |
| 79 |
%cmake_build -t tests |
149 |
%cmake_build -t tests |
| 80 |
|
150 |
|
|
Lines 89-94
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt
Link Here
|
| 89 |
%_libdir/%name.so |
159 |
%_libdir/%name.so |
| 90 |
%_libdir/cmake/%name/ |
160 |
%_libdir/cmake/%name/ |
| 91 |
|
161 |
|
|
|
162 |
%files java -f ../java/.mfiles-java |
| 163 |
%doc ../LICENSE |
| 164 |
|
| 165 |
%files java-prefixmapper -f ../java/.mfiles-java-prefixmapper |
| 166 |
|
| 167 |
%files java-carrier -f ../java/.mfiles-java-carrier |
| 168 |
|
| 169 |
%files java-geocoder -f ../java/.mfiles-java-geocoder |
| 170 |
|
| 171 |
%files java-javadoc -f ../java/.mfiles-javadoc |
| 172 |
|
| 92 |
%changelog |
173 |
%changelog |
| 93 |
* Wed Nov 18 2026 Yuri N. Sedunov <aris@altlinux.org> 9.0.44-alt1 |
174 |
* Wed Nov 18 2026 Yuri N. Sedunov <aris@altlinux.org> 9.0.44-alt1 |
| 94 |
- 9.0.44 |
175 |
- 9.0.44 |