|
Lines 1-6
Link Here
|
| 1 |
%define sover 9 |
1 |
%define sover 9 |
| 2 |
%def_enable boost |
2 |
%def_enable boost |
| 3 |
%def_enable check |
3 |
%def_enable check |
|
|
4 |
%def_enable java |
| 4 |
|
5 |
|
| 5 |
%define stdxx 17 |
6 |
%define stdxx 17 |
| 6 |
|
7 |
|
|
Lines 32-37
BuildRequires: libprotobuf-devel
Link Here
|
| 32 |
BuildRequires: libabseil-cpp-devel >= 20211102.0-alt3 |
33 |
BuildRequires: libabseil-cpp-devel >= 20211102.0-alt3 |
| 33 |
BuildRequires: /proc /dev/pts /usr/bin/java |
34 |
BuildRequires: /proc /dev/pts /usr/bin/java |
| 34 |
#BuildRequires: /usr/bin/mvn junit mockito |
35 |
#BuildRequires: /usr/bin/mvn junit mockito |
|
|
36 |
%if_enabled java |
| 37 |
BuildRequires(pre): rpm-macros-java |
| 38 |
BuildRequires: java-21-openjdk-devel |
| 39 |
BuildRequires: maven-local |
| 40 |
BuildRequires: mvn(junit:junit) |
| 41 |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) |
| 42 |
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin) |
| 43 |
BuildRequires: mvn(org.mockito:mockito-core) |
| 44 |
%endif |
| 35 |
%{?_enable_boost:BuildRequires: boost-devel} |
45 |
%{?_enable_boost:BuildRequires: boost-devel} |
| 36 |
%{?_enable_check:BuildRequires: ctest libgtest-devel} |
46 |
%{?_enable_check:BuildRequires: ctest libgtest-devel} |
| 37 |
|
47 |
|
|
Lines 49-54
Requires: %name = %EVR
Link Here
|
| 49 |
The %name-devel package contains libraries and header files for |
59 |
The %name-devel package contains libraries and header files for |
| 50 |
developing applications that use %name. |
60 |
developing applications that use %name. |
| 51 |
|
61 |
|
|
|
62 |
%if_enabled java |
| 63 |
%package java |
| 64 |
Summary: Java library for international phone numbers |
| 65 |
Group: Development/Java |
| 66 |
BuildArch: noarch |
| 67 |
|
| 68 |
%description java |
| 69 |
Google's Java library for parsing, formatting and validating phone numbers. |
| 70 |
|
| 71 |
%package java-prefixmapper |
| 72 |
Summary: Phone number prefix mappings for libphonenumber |
| 73 |
Group: Development/Java |
| 74 |
BuildArch: noarch |
| 75 |
|
| 76 |
%description java-prefixmapper |
| 77 |
Shared prefix lookups for carrier mapping and offline geocoding. |
| 78 |
|
| 79 |
%package java-carrier |
| 80 |
Summary: Phone number carrier mapping for libphonenumber |
| 81 |
Group: Development/Java |
| 82 |
BuildArch: noarch |
| 83 |
|
| 84 |
%description java-carrier |
| 85 |
Looks up the original carrier associated with a phone number prefix. |
| 86 |
|
| 87 |
%package java-geocoder |
| 88 |
Summary: Offline phone number geocoder for libphonenumber |
| 89 |
Group: Development/Java |
| 90 |
BuildArch: noarch |
| 91 |
|
| 92 |
%description java-geocoder |
| 93 |
Looks up a geographic description for a phone number. |
| 94 |
|
| 95 |
%package java-javadoc |
| 96 |
Summary: API documentation for the libphonenumber Java libraries |
| 97 |
Group: Development/Documentation |
| 98 |
BuildArch: noarch |
| 99 |
|
| 100 |
%description java-javadoc |
| 101 |
API documentation for the libphonenumber Java libraries. |
| 102 |
%endif |
| 103 |
|
| 52 |
%prep |
104 |
%prep |
| 53 |
%setup -n %name-%version/cpp |
105 |
%setup -n %name-%version/cpp |
| 54 |
%patch1 -b .link |
106 |
%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 |
112 |
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt |
| 61 |
%endif |
113 |
%endif |
| 62 |
|
114 |
|
|
|
115 |
%if_enabled java |
| 116 |
pushd ../java |
| 117 |
%pom_disable_module demo |
| 118 |
%pom_remove_plugin org.sonatype.central:central-publishing-maven-plugin |
| 119 |
%pom_remove_plugin :maven-source-plugin |
| 120 |
%pom_remove_plugin :maven-javadoc-plugin |
| 121 |
# The Animal Sniffer check requires an unavailable Java 5 signature. |
| 122 |
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin \ |
| 123 |
carrier geocoder internal/prefixmapper libphonenumber |
| 124 |
popd |
| 125 |
%endif |
| 126 |
|
| 63 |
%build |
127 |
%build |
| 64 |
# since abseil-cpp-20260107.1 |
128 |
# since abseil-cpp-20260107.1 |
| 65 |
%add_optflags -Wno-error=deprecated-declarations |
129 |
%add_optflags -Wno-error=deprecated-declarations |
|
Lines 72-80
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt
Link Here
|
| 72 |
%nil |
136 |
%nil |
| 73 |
%cmake_build |
137 |
%cmake_build |
| 74 |
|
138 |
|
|
|
139 |
%if_enabled java |
| 140 |
pushd ../java |
| 141 |
%mvn_package :libphonenumber-parent java |
| 142 |
%mvn_package :libphonenumber java |
| 143 |
%mvn_package :libphonenumber:jar:no-metadata java |
| 144 |
%mvn_package :prefixmapper java-prefixmapper |
| 145 |
%mvn_package :carrier java-carrier |
| 146 |
%mvn_package :geocoder java-geocoder |
| 147 |
%mvn_build -s |
| 148 |
popd |
| 149 |
%endif |
| 150 |
|
| 75 |
%install |
151 |
%install |
| 76 |
%cmake_install |
152 |
%cmake_install |
| 77 |
|
153 |
|
|
|
154 |
%if_enabled java |
| 155 |
pushd ../java |
| 156 |
%mvn_install |
| 157 |
popd |
| 158 |
%endif |
| 159 |
|
| 78 |
%check |
160 |
%check |
| 79 |
%cmake_build -t tests |
161 |
%cmake_build -t tests |
| 80 |
|
162 |
|
|
Lines 89-94
sed -i 's/-Werror/-Wno-error/g' {,../tools/cpp/}CMakeLists.txt
Link Here
|
| 89 |
%_libdir/%name.so |
171 |
%_libdir/%name.so |
| 90 |
%_libdir/cmake/%name/ |
172 |
%_libdir/cmake/%name/ |
| 91 |
|
173 |
|
|
|
174 |
%if_enabled java |
| 175 |
%files java -f ../java/.mfiles-java |
| 176 |
%doc ../LICENSE |
| 177 |
|
| 178 |
%files java-prefixmapper -f ../java/.mfiles-java-prefixmapper |
| 179 |
|
| 180 |
%files java-carrier -f ../java/.mfiles-java-carrier |
| 181 |
|
| 182 |
%files java-geocoder -f ../java/.mfiles-java-geocoder |
| 183 |
|
| 184 |
%files java-javadoc -f ../java/.mfiles-javadoc |
| 185 |
%endif |
| 186 |
|
| 92 |
%changelog |
187 |
%changelog |
| 93 |
* Wed Nov 18 2026 Yuri N. Sedunov <aris@altlinux.org> 9.0.44-alt1 |
188 |
* Wed Nov 18 2026 Yuri N. Sedunov <aris@altlinux.org> 9.0.44-alt1 |
| 94 |
- 9.0.44 |
189 |
- 9.0.44 |