]>
Commit | Line | Data |
---|---|---|
4811172d | 1 | # TODO: |
c0a25d84 | 2 | # fix static libname (libopal_s.a) |
7d38eb5a SS |
3 | # IPv6 support requires IPv6 support in ptlib |
4 | # x264+ffmpeg detection sucks - it doesn't work with --as-needed | |
5 | # SpanDSP FAX support requires t38_indicator symbol | |
6 | # MPEG4 rate control correction requires libavcodec sources | |
7 | # CAPI support | |
5683c404 JR |
8 | # |
9 | # Don't touch this! strip removes all symbols from library | |
10 | %define no_install_post_strip 1 | |
11 | # | |
aaf12cf0 | 12 | Summary: Open Phone Abstraction Library (aka OpenH323 v2) |
075bc36b | 13 | Summary(pl.UTF-8): Biblioteka Open Phone Abstraction Library (aka OpenH323 v2) |
aaf12cf0 | 14 | Name: opal |
bc09e567 | 15 | Version: 3.6.6 |
6fe7dc51 | 16 | Release: 2 |
aaf12cf0 PG |
17 | License: MPL |
18 | Group: Libraries | |
0dd5a601 | 19 | Source0: http://ftp.gnome.org/pub/gnome/sources/opal/3.6/%{name}-%{version}.tar.bz2 |
bc09e567 | 20 | # Source0-md5: 43b363c860780e7f1a0361cfee8f9f4a |
a7fa741b | 21 | #Source0: http://www.ekiga.org/admin/downloads/latest/sources/sources/%{name}-%{version}.tar.gz |
0a847dbc | 22 | Patch0: %{name}-libname.patch |
c1724659 | 23 | Patch1: %{name}-mak_files.patch |
323ecc81 | 24 | Patch2: %{name}-ac.patch |
c0a25d84 | 25 | Patch3: %{name}-build.patch |
a1d65832 | 26 | URL: http://www.openh323.org/ |
fda4b81c | 27 | BuildRequires: SDL-devel |
323ecc81 SS |
28 | BuildRequires: automake |
29 | BuildRequires: autoconf | |
7d38eb5a SS |
30 | BuildRequires: ffmpeg-devel |
31 | BuildRequires: libgsm-devel | |
aaf12cf0 | 32 | BuildRequires: libstdc++-devel |
7d38eb5a SS |
33 | BuildRequires: libtheora-devel |
34 | BuildRequires: libx264-devel | |
fda4b81c SS |
35 | BuildRequires: openssl-devel |
36 | BuildRequires: pkgconfig | |
7d38eb5a | 37 | BuildRequires: ptlib-devel >= 2.4.2-3 |
3ba5c27c | 38 | BuildRequires: sed >= 4.0 |
0b6b8659 | 39 | BuildRequires: speex-devel >= 1:1.1.5 |
d2161d53 | 40 | %requires_eq ptlib |
aaf12cf0 PG |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
7d38eb5a SS |
43 | %define filterout_ld -Wl,--as-needed |
44 | ||
aaf12cf0 | 45 | %description |
296d779e | 46 | The OPAL project aims to create a full featured, interoperable, |
aaf12cf0 PG |
47 | Open Source implementation of the ITU H.323 teleconferencing protocol |
48 | that can be used by personal developers and commercial users without | |
49 | charge. | |
50 | ||
a2a27970 JR |
51 | %description -l pl.UTF-8 |
52 | Celem projektu OPAL jest stworzenie w pełni funkcjonalnej i | |
53 | wyposażonej implementacji protokołu telekonferencyjnego ITU H.323, | |
54 | który może być używany przez użytkowników prywatnych i komercyjnych | |
55 | bez opłat. | |
aaf12cf0 PG |
56 | |
57 | %package devel | |
58 | Summary: Opal development files | |
075bc36b | 59 | Summary(pl.UTF-8): Pliki dla developerów Opal |
aaf12cf0 | 60 | Group: Development/Libraries |
5e9f9381 | 61 | Requires: %{name} = %{version}-%{release} |
aaf12cf0 | 62 | Requires: libstdc++-devel |
514c2bd8 | 63 | Requires: ptlib-devel |
aaf12cf0 PG |
64 | |
65 | %description devel | |
66 | Header files and libraries for developing applications that use | |
296d779e | 67 | OPAL. |
aaf12cf0 | 68 | |
a2a27970 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji | |
71 | używających OPAL. | |
aaf12cf0 | 72 | |
0a847dbc | 73 | %package static |
296d779e | 74 | Summary: OPAL static libraries |
075bc36b | 75 | Summary(pl.UTF-8): Biblioteki statyczne OPAL |
0a847dbc | 76 | Group: Development/Libraries |
5e9f9381 | 77 | Requires: %{name}-devel = %{version}-%{release} |
aaf12cf0 | 78 | |
0a847dbc | 79 | %description static |
296d779e | 80 | OPAL static libraries. |
aaf12cf0 | 81 | |
a2a27970 | 82 | %description static -l pl.UTF-8 |
296d779e | 83 | Biblioteki statyczne OPAL. |
aaf12cf0 PG |
84 | |
85 | %prep | |
8db2f0fb | 86 | %setup -q |
fda4b81c SS |
87 | #patch0 -p1 |
88 | #patch1 -p1 | |
0dd5a601 | 89 | #%patch2 -p1 |
c0a25d84 | 90 | %patch3 -p1 |
aaf12cf0 PG |
91 | |
92 | %build | |
b0b5ec3f | 93 | PWLIBDIR=%{_prefix}; export PWLIBDIR |
296d779e | 94 | OPALDIR=`pwd`; export OPALDIR |
c1724659 | 95 | OPAL_BUILD="yes"; export OPAL_BUILD |
323ecc81 SS |
96 | %{__aclocal} |
97 | %{__autoconf} | |
7d38eb5a SS |
98 | %configure \ |
99 | --enable-ixj | |
b0b5ec3f | 100 | |
c1724659 | 101 | %{__make} %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
102 | CC="%{__cc}" \ |
103 | CPLUS="%{__cxx}" \ | |
104 | OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" | |
b0b5ec3f | 105 | |
c0a25d84 | 106 | %{__cp} -a */libopal* . |
c1724659 | 107 | %{__make} -C samples/simple %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
108 | CC="%{__cc}" \ |
109 | CPLUS=%{__cxx} \ | |
c0a25d84 SS |
110 | CFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG} -I`pwd`/include" \ |
111 | LDFLAGS="%{rpmldflags} -L`pwd` -lpt -lopal" | |
aaf12cf0 PG |
112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
4733c726 | 115 | install -d $RPM_BUILD_ROOT%{_bindir} |
b0b5ec3f | 116 | |
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
aaf12cf0 | 119 | |
4733c726 | 120 | install samples/simple/obj/simpleopal $RPM_BUILD_ROOT%{_bindir} |
aaf12cf0 PG |
121 | |
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
128 | %files | |
129 | %defattr(644,root,root,755) | |
296d779e | 130 | %attr(755,root,root) %{_bindir}/* |
b0b5ec3f | 131 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
0dd5a601 | 132 | %dir %{_libdir}/opal-%{version} |
133 | %dir %{_libdir}/opal-%{version}/codecs | |
134 | %dir %{_libdir}/opal-%{version}/codecs/audio | |
135 | %dir %{_libdir}/opal-%{version}/codecs/video | |
136 | %dir %{_libdir}/opal-%{version}/lid | |
bc09e567 | 137 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g722_audio_pwplugin.so |
0dd5a601 | 138 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g726_audio_pwplugin.so |
139 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/gsm0610_audio_pwplugin.so | |
140 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/gsmamrcodec_pwplugin.so | |
141 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/ilbc_audio_pwplugin.so | |
142 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/ima_adpcm_audio_pwplugin.so | |
143 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/lpc10_audio_pwplugin.so | |
144 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/speex_audio_pwplugin.so | |
145 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h261-vic_video_pwplugin.so | |
bc09e567 | 146 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h263-1998_video_pwplugin.so |
0dd5a601 | 147 | #%attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h263-ffmpeg_video_pwplugin.so |
bc09e567 AM |
148 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h264_video_pwplugin_helper |
149 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h264_video_pwplugin.so | |
150 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/mpeg4-ffmpeg_video_pwplugin.so | |
0dd5a601 | 151 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/theora_video_pwplugin.so |
152 | %attr(755,root,root) %{_libdir}/opal-%{version}/lid/ixj_lid_pwplugin.so | |
153 | %attr(755,root,root) %{_libdir}/opal-%{version}/lid/vpb_lid_pwplugin.so | |
aaf12cf0 PG |
154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
aaf12cf0 | 157 | %attr(755,root,root) %{_libdir}/*.so |
4733c726 SS |
158 | %{_includedir}/opal |
159 | %{_pkgconfigdir}/opal.pc | |
aaf12cf0 | 160 | |
296d779e JR |
161 | %files static |
162 | %defattr(644,root,root,755) | |
163 | %{_libdir}/*.a |