]>
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 | 28 | BuildRequires: autoconf |
105bdcf7 | 29 | BuildRequires: automake |
30 | BuildRequires: expat-devel | |
7d38eb5a SS |
31 | BuildRequires: ffmpeg-devel |
32 | BuildRequires: libgsm-devel | |
aaf12cf0 | 33 | BuildRequires: libstdc++-devel |
7d38eb5a SS |
34 | BuildRequires: libtheora-devel |
35 | BuildRequires: libx264-devel | |
fda4b81c SS |
36 | BuildRequires: openssl-devel |
37 | BuildRequires: pkgconfig | |
7d38eb5a | 38 | BuildRequires: ptlib-devel >= 2.4.2-3 |
3ba5c27c | 39 | BuildRequires: sed >= 4.0 |
0b6b8659 | 40 | BuildRequires: speex-devel >= 1:1.1.5 |
105bdcf7 | 41 | BuildRequires: unixODBC-devel |
d2161d53 | 42 | %requires_eq ptlib |
aaf12cf0 PG |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
44 | ||
7d38eb5a SS |
45 | %define filterout_ld -Wl,--as-needed |
46 | ||
aaf12cf0 | 47 | %description |
296d779e | 48 | The OPAL project aims to create a full featured, interoperable, |
aaf12cf0 PG |
49 | Open Source implementation of the ITU H.323 teleconferencing protocol |
50 | that can be used by personal developers and commercial users without | |
51 | charge. | |
52 | ||
a2a27970 JR |
53 | %description -l pl.UTF-8 |
54 | Celem projektu OPAL jest stworzenie w pełni funkcjonalnej i | |
55 | wyposażonej implementacji protokołu telekonferencyjnego ITU H.323, | |
56 | który może być używany przez użytkowników prywatnych i komercyjnych | |
57 | bez opłat. | |
aaf12cf0 PG |
58 | |
59 | %package devel | |
60 | Summary: Opal development files | |
075bc36b | 61 | Summary(pl.UTF-8): Pliki dla developerów Opal |
aaf12cf0 | 62 | Group: Development/Libraries |
5e9f9381 | 63 | Requires: %{name} = %{version}-%{release} |
aaf12cf0 | 64 | Requires: libstdc++-devel |
514c2bd8 | 65 | Requires: ptlib-devel |
aaf12cf0 PG |
66 | |
67 | %description devel | |
68 | Header files and libraries for developing applications that use | |
296d779e | 69 | OPAL. |
aaf12cf0 | 70 | |
a2a27970 JR |
71 | %description devel -l pl.UTF-8 |
72 | Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji | |
73 | używających OPAL. | |
aaf12cf0 | 74 | |
0a847dbc | 75 | %package static |
296d779e | 76 | Summary: OPAL static libraries |
075bc36b | 77 | Summary(pl.UTF-8): Biblioteki statyczne OPAL |
0a847dbc | 78 | Group: Development/Libraries |
5e9f9381 | 79 | Requires: %{name}-devel = %{version}-%{release} |
aaf12cf0 | 80 | |
0a847dbc | 81 | %description static |
296d779e | 82 | OPAL static libraries. |
aaf12cf0 | 83 | |
a2a27970 | 84 | %description static -l pl.UTF-8 |
296d779e | 85 | Biblioteki statyczne OPAL. |
aaf12cf0 PG |
86 | |
87 | %prep | |
8db2f0fb | 88 | %setup -q |
fda4b81c SS |
89 | #patch0 -p1 |
90 | #patch1 -p1 | |
0dd5a601 | 91 | #%patch2 -p1 |
c0a25d84 | 92 | %patch3 -p1 |
aaf12cf0 PG |
93 | |
94 | %build | |
b0b5ec3f | 95 | PWLIBDIR=%{_prefix}; export PWLIBDIR |
296d779e | 96 | OPALDIR=`pwd`; export OPALDIR |
c1724659 | 97 | OPAL_BUILD="yes"; export OPAL_BUILD |
323ecc81 SS |
98 | %{__aclocal} |
99 | %{__autoconf} | |
7d38eb5a SS |
100 | %configure \ |
101 | --enable-ixj | |
b0b5ec3f | 102 | |
c1724659 | 103 | %{__make} %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
104 | CC="%{__cc}" \ |
105 | CPLUS="%{__cxx}" \ | |
106 | OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}" | |
b0b5ec3f | 107 | |
c0a25d84 | 108 | %{__cp} -a */libopal* . |
c1724659 | 109 | %{__make} -C samples/simple %{?debug:debug}%{!?debug:opt} \ |
296d779e JR |
110 | CC="%{__cc}" \ |
111 | CPLUS=%{__cxx} \ | |
c0a25d84 SS |
112 | CFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG} -I`pwd`/include" \ |
113 | LDFLAGS="%{rpmldflags} -L`pwd` -lpt -lopal" | |
aaf12cf0 PG |
114 | |
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
4733c726 | 117 | install -d $RPM_BUILD_ROOT%{_bindir} |
b0b5ec3f | 118 | |
119 | %{__make} install \ | |
120 | DESTDIR=$RPM_BUILD_ROOT | |
aaf12cf0 | 121 | |
4733c726 | 122 | install samples/simple/obj/simpleopal $RPM_BUILD_ROOT%{_bindir} |
aaf12cf0 PG |
123 | |
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post -p /sbin/ldconfig | |
128 | %postun -p /sbin/ldconfig | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
296d779e | 132 | %attr(755,root,root) %{_bindir}/* |
b0b5ec3f | 133 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
0dd5a601 | 134 | %dir %{_libdir}/opal-%{version} |
135 | %dir %{_libdir}/opal-%{version}/codecs | |
136 | %dir %{_libdir}/opal-%{version}/codecs/audio | |
137 | %dir %{_libdir}/opal-%{version}/codecs/video | |
138 | %dir %{_libdir}/opal-%{version}/lid | |
bc09e567 | 139 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g722_audio_pwplugin.so |
0dd5a601 | 140 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/g726_audio_pwplugin.so |
141 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/gsm0610_audio_pwplugin.so | |
142 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/gsmamrcodec_pwplugin.so | |
143 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/ilbc_audio_pwplugin.so | |
144 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/ima_adpcm_audio_pwplugin.so | |
145 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/lpc10_audio_pwplugin.so | |
146 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/audio/speex_audio_pwplugin.so | |
147 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h261-vic_video_pwplugin.so | |
bc09e567 | 148 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h263-1998_video_pwplugin.so |
0dd5a601 | 149 | #%attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h263-ffmpeg_video_pwplugin.so |
bc09e567 AM |
150 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h264_video_pwplugin_helper |
151 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/h264_video_pwplugin.so | |
152 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/mpeg4-ffmpeg_video_pwplugin.so | |
0dd5a601 | 153 | %attr(755,root,root) %{_libdir}/opal-%{version}/codecs/video/theora_video_pwplugin.so |
154 | %attr(755,root,root) %{_libdir}/opal-%{version}/lid/ixj_lid_pwplugin.so | |
155 | %attr(755,root,root) %{_libdir}/opal-%{version}/lid/vpb_lid_pwplugin.so | |
aaf12cf0 PG |
156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
aaf12cf0 | 159 | %attr(755,root,root) %{_libdir}/*.so |
4733c726 SS |
160 | %{_includedir}/opal |
161 | %{_pkgconfigdir}/opal.pc | |
aaf12cf0 | 162 | |
296d779e JR |
163 | %files static |
164 | %defattr(644,root,root,755) | |
165 | %{_libdir}/*.a |