]>
Commit | Line | Data |
---|---|---|
4811172d | 1 | # TODO: |
a7e6bfef | 2 | # SBC plugin is missing bluez_sbc subdir |
c0a25d84 | 3 | # fix static libname (libopal_s.a) |
7d38eb5a | 4 | # MPEG4 rate control correction requires libavcodec sources |
9008d5d2 | 5 | # NOTE: IPv6 support requires IPv6 support in ptlib |
5683c404 | 6 | # |
383877b6 | 7 | # WARNING: opal version should match Ekiga and ptlib versions |
5b46c6b6 | 8 | # Recommendations: http://wiki.ekiga.org/index.php/Download_Ekiga_sources |
b3e5ac67 | 9 | # (for ekiga 4.0.x it's ptlib 2.10.x + opal 3.10.x) |
383877b6 | 10 | # |
12913987 | 11 | # Conditional build: |
9008d5d2 | 12 | %bcond_with sip_fax_only # minimal build for t38modem + SIP |
a7e6bfef | 13 | %bcond_without celt # CELT codec support |
9008d5d2 | 14 | %bcond_without srtp # SRTP protocol support (mutually exclusive with zrtp) |
b3e5ac67 | 15 | %bcond_with zrtp # ZRTP protocol support (mutually exclusive with srtp; broken as of 3.10.9) |
764c99ce | 16 | %bcond_with capi # CAPI support |
00728d87 | 17 | %bcond_with vpb # Voicetronix VPB support |
b3f5804c JB |
18 | %bcond_with java # Java JNI interface (only swig wrapper, Java part not built) |
19 | %bcond_with ruby # Ruby interface (very initial, only swig wrapper) | |
12913987 | 20 | # |
9008d5d2 JB |
21 | %if %{with zrtp} |
22 | %undefine with_srtp | |
23 | %endif | |
24 | %if %{with sip_fax_only} | |
b3f5804c JB |
25 | %undefine with_java |
26 | %undefine with_ruby | |
9008d5d2 JB |
27 | %undefine with_srtp |
28 | %undefine with_zrtp | |
29 | %endif | |
aaf12cf0 | 30 | Summary: Open Phone Abstraction Library (aka OpenH323 v2) |
075bc36b | 31 | Summary(pl.UTF-8): Biblioteka Open Phone Abstraction Library (aka OpenH323 v2) |
aaf12cf0 | 32 | Name: opal |
611a8de6 JB |
33 | Version: 3.18.8 |
34 | Release: 1 | |
a7e6bfef | 35 | License: MPL v1.0 |
aaf12cf0 | 36 | Group: Libraries |
f7ddb932 | 37 | Source0: http://downloads.sourceforge.net/opalvoip/%{name}-%{version}.tar.bz2 |
611a8de6 | 38 | # Source0-md5: 1f48ea0bef4b0731b4af19928eb02c36 |
c9789360 | 39 | Patch0: celt.patch |
00728d87 | 40 | Patch1: g7221.patch |
611a8de6 JB |
41 | Patch2: %{name}-cxx11.patch |
42 | # domain suspended (2022.04) | |
43 | #URL: http://www.opalvoip.org/ | |
44 | URL: https://sourceforge.net/projects/opalvoip/ | |
a7e6bfef | 45 | BuildRequires: autoconf >= 2.50 |
105bdcf7 | 46 | BuildRequires: automake |
9008d5d2 | 47 | %{?with_capi:BuildRequires: capi4k-utils-devel} |
24ae7846 | 48 | %{?with_celt:BuildRequires: celt-devel} |
105bdcf7 | 49 | BuildRequires: expat-devel |
00728d87 | 50 | %{?with_srtp:BuildRequires: libsrtp2-devel} |
12913987 | 51 | BuildRequires: libstdc++-devel |
cee58fd7 | 52 | %{?with_zrtp:BuildRequires: libzrtp-devel} |
12913987 | 53 | BuildRequires: pkgconfig |
c9789360 | 54 | BuildRequires: ptlib-devel >= 1:2.18.5 |
12913987 | 55 | BuildRequires: sed >= 4.0 |
9008d5d2 | 56 | BuildRequires: speex-devel >= 1:1.2 |
63a4e767 | 57 | BuildRequires: speexdsp-devel >= 1.2 |
12913987 MM |
58 | %if %{without sip_fax_only} |
59 | BuildRequires: SDL-devel | |
a7e6bfef | 60 | # libavcodec >= 51.11.0 libavutil |
7d38eb5a | 61 | BuildRequires: ffmpeg-devel |
a7e6bfef | 62 | %{?with_java:BuildRequires: jdk} |
7d38eb5a | 63 | BuildRequires: libgsm-devel |
7d38eb5a | 64 | BuildRequires: libtheora-devel |
7b0f56bc | 65 | %{?with_vpb:BuildRequires: vpb-devel} |
a7e6bfef JB |
66 | # ABI 0.102 |
67 | BuildRequires: libx264-devel >= 0.1.3-1.20101031_2245.1 | |
611a8de6 | 68 | BuildRequires: openh264-devel |
fda4b81c | 69 | BuildRequires: openssl-devel |
a7e6bfef | 70 | %{?with_ruby:BuildRequires: ruby-devel} |
a7e6bfef JB |
71 | BuildRequires: spandsp-devel |
72 | BuildRequires: swig | |
105bdcf7 | 73 | BuildRequires: unixODBC-devel |
00728d87 | 74 | BuildRequires: webrtc-libilbc-devel |
12913987 | 75 | %endif |
d2161d53 | 76 | %requires_eq ptlib |
aaf12cf0 PG |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
79 | %description | |
0a401c5c CM |
80 | The OPAL project aims to create a full featured, interoperable, Open |
81 | Source implementation of the ITU H.323 teleconferencing protocol that | |
82 | can be used by personal developers and commercial users without | |
aaf12cf0 PG |
83 | charge. |
84 | ||
a2a27970 JR |
85 | %description -l pl.UTF-8 |
86 | Celem projektu OPAL jest stworzenie w pełni funkcjonalnej i | |
87 | wyposażonej implementacji protokołu telekonferencyjnego ITU H.323, | |
88 | który może być używany przez użytkowników prywatnych i komercyjnych | |
89 | bez opłat. | |
aaf12cf0 | 90 | |
7b0f56bc JR |
91 | %package lid-vpb |
92 | Summary: Opal LID plugin for Voicetronix VPB devices | |
93 | Summary(pl.UTF-8): Wtyczka Opal LID dla urządzeń VPB firmy Voicetronix | |
94 | Group: Libraries | |
95 | Requires: %{name} = %{version}-%{release} | |
96 | ||
97 | %description lid-vpb | |
98 | Opal LID plugin for Voicetronix VPB devices. | |
99 | ||
100 | %description lid-vpb -l pl.UTF-8 | |
101 | Wtyczka Opal LID dla urządzeń VPB firmy Voicetronix. | |
102 | ||
aaf12cf0 PG |
103 | %package devel |
104 | Summary: Opal development files | |
075bc36b | 105 | Summary(pl.UTF-8): Pliki dla developerów Opal |
aaf12cf0 | 106 | Group: Development/Libraries |
5e9f9381 | 107 | Requires: %{name} = %{version}-%{release} |
00728d87 JR |
108 | %{?with_capi:Requires: capi4k-utils-devel} |
109 | %{?with_srtp:Requires: libsrtp2-devel} | |
aaf12cf0 | 110 | Requires: libstdc++-devel |
00728d87 | 111 | %{?with_zrtp:Requires: libzrtp-devel} |
c9789360 | 112 | Requires: ptlib-devel >= 1:2.18.5 |
9008d5d2 | 113 | Requires: speex-devel >= 1:1.2 |
aaf12cf0 PG |
114 | |
115 | %description devel | |
0a401c5c | 116 | Header files and libraries for developing applications that use OPAL. |
aaf12cf0 | 117 | |
a2a27970 JR |
118 | %description devel -l pl.UTF-8 |
119 | Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji | |
120 | używających OPAL. | |
aaf12cf0 | 121 | |
0a847dbc | 122 | %package static |
296d779e | 123 | Summary: OPAL static libraries |
075bc36b | 124 | Summary(pl.UTF-8): Biblioteki statyczne OPAL |
0a847dbc | 125 | Group: Development/Libraries |
5e9f9381 | 126 | Requires: %{name}-devel = %{version}-%{release} |
aaf12cf0 | 127 | |
0a847dbc | 128 | %description static |
296d779e | 129 | OPAL static libraries. |
aaf12cf0 | 130 | |
a2a27970 | 131 | %description static -l pl.UTF-8 |
296d779e | 132 | Biblioteki statyczne OPAL. |
aaf12cf0 PG |
133 | |
134 | %prep | |
8db2f0fb | 135 | %setup -q |
e377535f | 136 | %patch0 -p1 |
00728d87 | 137 | %patch1 -p1 |
611a8de6 | 138 | %patch2 -p1 |
aaf12cf0 PG |
139 | |
140 | %build | |
b0b5ec3f | 141 | PWLIBDIR=%{_prefix}; export PWLIBDIR |
296d779e | 142 | OPALDIR=`pwd`; export OPALDIR |
c1724659 | 143 | OPAL_BUILD="yes"; export OPAL_BUILD |
b8ea5cae | 144 | cd plugins |
0a401c5c | 145 | %{__aclocal} |
b8ea5cae AM |
146 | %{__autoconf} |
147 | cd .. | |
12913987 | 148 | # Run grep '^OPAL_.*=' configure.ac|grep 'yes\|no' to check current defaults |
7d38eb5a | 149 | %configure \ |
b3f5804c | 150 | %{?with_java:JDK_ROOT=%{_jvmdir}/java} \ |
12913987 | 151 | %if %{with sip_fax_only} |
a7e6bfef JB |
152 | --disable-aec \ |
153 | --disable-g711plc \ | |
12913987 MM |
154 | --disable-h224 \ |
155 | --disable-h281 \ | |
a7e6bfef | 156 | --disable-h323 \ |
12913987 MM |
157 | --disable-h450 \ |
158 | --disable-h460 \ | |
159 | --disable-h501 \ | |
a7e6bfef | 160 | --disable-iax \ |
12913987 | 161 | --disable-ivr \ |
7b0f56bc | 162 | --disable-lid \ |
12913987 | 163 | --disable-plugins |
a7e6bfef JB |
164 | --disable-rfc4103 \ |
165 | --disable-rfc4175 \ | |
166 | --disable-sipim \ | |
167 | --disable-video \ | |
12913987 | 168 | %else |
b3f5804c JB |
169 | --enable-ixj \ |
170 | %endif | |
9008d5d2 | 171 | %{!?with_capi:--disable-capi} \ |
a7e6bfef | 172 | %{!?with_celt:--disable-celt} \ |
611a8de6 | 173 | --disable-dahdi \ |
b3f5804c JB |
174 | %{!?with_java:--disable-java} \ |
175 | %{!?with_ruby:--disable-ruby} \ | |
9008d5d2 | 176 | %{!?with_srtp:--disable-srtp} \ |
7b0f56bc | 177 | %{?with_vpb:--enable-vpb} \ |
cee58fd7 JB |
178 | %if %{with zrtp} |
179 | --enable-zrtp \ | |
180 | --with-bn-includedir=/usr/include \ | |
181 | --with-bn-libdir=%{_libdir} \ | |
182 | --with-zrtp-includedir=/usr/include/libzrtp \ | |
183 | --with-zrtp-libdir=%{_libdir} | |
184 | %endif | |
12913987 | 185 | |
c1724659 | 186 | %{__make} %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
187 | CC="%{__cc}" \ |
188 | CPLUS="%{__cxx}" \ | |
a7e6bfef JB |
189 | OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" \ |
190 | VERBOSE=1 | |
b0b5ec3f | 191 | |
aaf12cf0 PG |
192 | %install |
193 | rm -rf $RPM_BUILD_ROOT | |
00728d87 | 194 | install -d $RPM_BUILD_ROOT%{_libdir}/opal-%{version}/lid |
b0b5ec3f | 195 | |
196 | %{__make} install \ | |
197 | DESTDIR=$RPM_BUILD_ROOT | |
aaf12cf0 | 198 | |
aaf12cf0 PG |
199 | %clean |
200 | rm -rf $RPM_BUILD_ROOT | |
201 | ||
202 | %post -p /sbin/ldconfig | |
203 | %postun -p /sbin/ldconfig | |
204 | ||
205 | %files | |
206 | %defattr(644,root,root,755) | |
a7e6bfef | 207 | %attr(755,root,root) %{_libdir}/libopal.so.%{version} |
12913987 | 208 | %if %{without sip_fax_only} |
0dd5a601 | 209 | %dir %{_libdir}/opal-%{version} |
210 | %dir %{_libdir}/opal-%{version}/codecs | |
211 | %dir %{_libdir}/opal-%{version}/codecs/audio | |
24ae7846 | 212 | %{?with_celt:%attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/celt_ptplugin.so} |
24ae7846 JR |
213 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g7221_ptplugin.so |
214 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g7222_ptplugin.so | |
00728d87 | 215 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g722_ptplugin.so |
24ae7846 JR |
216 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g726_ptplugin.so |
217 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/gsm0610_ptplugin.so | |
218 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/gsmamrcodec_ptplugin.so | |
219 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/iLBC_ptplugin.so | |
220 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/ima_adpcm_ptplugin.so | |
00728d87 | 221 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/iSAC_ptplugin.so |
24ae7846 | 222 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/lpc10_ptplugin.so |
00728d87 | 223 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/opus_ptplugin.so |
24ae7846 JR |
224 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/silk_ptplugin.so |
225 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/speex_ptplugin.so | |
a7e6bfef | 226 | %dir %{_libdir}/opal-%{version}/codecs/video |
24ae7846 JR |
227 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h261_vic_ptplugin.so |
228 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h263_ffmpeg_ptplugin.so | |
bc09e567 | 229 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h264_video_pwplugin_helper |
24ae7846 JR |
230 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h264_x264_ptplugin.so |
231 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/mpeg4_ffmpeg_ptplugin.so | |
611a8de6 | 232 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/openh264_ptplugin.so |
24ae7846 | 233 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/theora_ptplugin.so |
00728d87 | 234 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/vp8_webm_ptplugin.so |
a7e6bfef JB |
235 | %dir %{_libdir}/opal-%{version}/fax |
236 | %attr(755,root,root) %{_libdir}/opal-%{version}/fax/spandsp_ptplugin.so | |
b3f5804c | 237 | %endif |
7b0f56bc JR |
238 | %dir %{_libdir}/opal-%{version}/lid |
239 | ||
240 | %if %{with vpb} | |
241 | %files lid-vpb | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/opal-%{version}/lid/vpb_ptplugin.so | |
244 | %endif | |
aaf12cf0 PG |
245 | |
246 | %files devel | |
247 | %defattr(644,root,root,755) | |
a7e6bfef | 248 | %attr(755,root,root) %{_libdir}/libopal.so |
4733c726 SS |
249 | %{_includedir}/opal |
250 | %{_pkgconfigdir}/opal.pc | |
279b44c8 | 251 | %{_datadir}/opal |
aaf12cf0 | 252 | |
296d779e JR |
253 | %files static |
254 | %defattr(644,root,root,755) | |
a7e6bfef | 255 | %{_libdir}/libopal_s.a |