Browse code

pkg/kamailio/obs: Added phonenum package

Sergey Safarov authored on 26/02/2019 20:27:06
Showing 1 changed files
... ...
@@ -17,6 +17,7 @@
17 17
 %bcond_without memcached
18 18
 %bcond_without mongodb
19 19
 %bcond_without perl
20
+%bcond_without phonenum
20 21
 %bcond_without rabbitmq
21 22
 %bcond_without redis
22 23
 %bcond_without ruby
... ...
@@ -40,6 +41,7 @@
40 41
 %bcond_without memcached
41 42
 %bcond_without mongodb
42 43
 %bcond_without perl
44
+%bcond_without phonenum
43 45
 %bcond_without rabbitmq
44 46
 %bcond_without redis
45 47
 %bcond_without ruby
... ...
@@ -63,6 +65,7 @@
63 65
 %bcond_without memcached
64 66
 %bcond_without mongodb
65 67
 %bcond_without perl
68
+%bcond_without phonenum
66 69
 %bcond_without rabbitmq
67 70
 %bcond_without redis
68 71
 %bcond_without ruby
... ...
@@ -86,6 +89,7 @@
86 89
 %bcond_without memcached
87 90
 %bcond_without mongodb
88 91
 %bcond_without perl
92
+%bcond_without phonenum
89 93
 %bcond_without rabbitmq
90 94
 %bcond_without redis
91 95
 %bcond_without ruby
... ...
@@ -109,6 +113,7 @@
109 113
 %bcond_without memcached
110 114
 %bcond_with mongodb
111 115
 %bcond_without perl
116
+%bcond_with phonenum
112 117
 %bcond_with rabbitmq
113 118
 %bcond_with redis
114 119
 %bcond_with ruby
... ...
@@ -133,6 +138,7 @@
133 138
 %bcond_without memcached
134 139
 %bcond_without mongodb
135 140
 %bcond_without perl
141
+%bcond_without phonenum
136 142
 %bcond_without rabbitmq
137 143
 %bcond_without redis
138 144
 %bcond_without ruby
... ...
@@ -156,6 +162,7 @@
156 162
 %bcond_without memcached
157 163
 %bcond_with mongodb
158 164
 %bcond_without perl
165
+%bcond_with phonenum
159 166
 %bcond_with rabbitmq
160 167
 %bcond_without redis
161 168
 %bcond_without ruby
... ...
@@ -179,6 +186,7 @@
179 186
 %bcond_with memcached
180 187
 %bcond_with mongodb
181 188
 %bcond_with perl
189
+%bcond_with phonenum
182 190
 %bcond_with rabbitmq
183 191
 %bcond_with redis
184 192
 %bcond_with ruby
... ...
@@ -202,6 +210,7 @@
202 210
 %bcond_with memcached
203 211
 %bcond_without mongodb
204 212
 %bcond_without perl
213
+%bcond_with phonenum
205 214
 %bcond_with rabbitmq
206 215
 %bcond_without redis
207 216
 %bcond_with ruby
... ...
@@ -668,6 +677,19 @@ Perl extensions and database driver for Kamailio.
668 677
 %endif
669 678
 
670 679
 
680
+%if %{with phonenum}
681
+%package    phonenum
682
+Summary:    Phonenum module the Kamailio
683
+Group:      %{PKGGROUP}
684
+Requires:   kamailio = %ver
685
+Requires:   libphonenumber
686
+BuildRequires:  libphonenumber-devel libicu-devel protobuf-devel
687
+
688
+%description    phonenum
689
+Phonenum module the Kamailio.
690
+%endif
691
+
692
+
671 693
 %package    postgresql
672 694
 Summary:    PostgreSQL database connectivity for Kamailio
673 695
 Group:      %{PKGGROUP}
... ...
@@ -798,7 +820,6 @@ SCTP transport for Kamailio.
798 820
 Summary:    Additional layer of security over our communications
799 821
 Group:      %{PKGGROUP}
800 822
 Requires:   kamailio = %ver
801
-#BuildRequires:  lksctp-tools-devel
802 823
 
803 824
 %description    secfilter
804 825
 Additional layer of security over our communications.
... ...
@@ -1106,6 +1127,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1106 1127
     kmysql koutbound \
1107 1128
 %if %{with perl}
1108 1129
     kperl \
1130
+%endif
1131
+%if %{with phonenum}
1132
+    kphonenum \
1109 1133
 %endif
1110 1134
     kpostgres kpresence kpython kradius \
1111 1135
 %if %{with redis}
... ...
@@ -1183,6 +1207,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1183 1207
     kmysql koutbound \
1184 1208
 %if %{with perl}
1185 1209
     kperl \
1210
+%endif
1211
+%if %{with phonenum}
1212
+    kphonenum \
1186 1213
 %endif
1187 1214
     kpostgres kpresence kpython kradius \
1188 1215
 %if %{with redis}
... ...
@@ -1855,6 +1882,14 @@ fi
1855 1882
 %endif
1856 1883
 
1857 1884
 
1885
+%if %{with phonenum}
1886
+%files      phonenum
1887
+%defattr(-,root,root)
1888
+%doc %{_docdir}/kamailio/modules/README.phonenum
1889
+%{_libdir}/kamailio/modules/phonenum.so
1890
+%endif
1891
+
1892
+
1858 1893
 %files      postgresql
1859 1894
 %defattr(-,root,root)
1860 1895
 %doc %{_docdir}/kamailio/modules/README.db_postgres